Microsoft Visual C#
Microsoft Visual C#
7th Edition
ISBN: 9781337102100
Author: Joyce, Farrell.
Publisher: Cengage Learning,
Question
Book Icon
Chapter 6, Problem 9E
Program Plan Intro

Program Plan

1. Below mentioned variables are used

  • salesPerson[]− Array that stores the names of a salesperson.
  • initials[]− Array that stores the initials of a salesperson.
  • input − input variable that reads the initial of a salesperson as string value from the console.
  • salesValues[] - Array that stores the number of sales by each salesperson.
  • totalSaleAmount − Accumulated sales amount of all the salespeople.
  • saleAmount − Sale amount given as input by the user.

Program description:

This Program is for creating a console application that gets the initials of a salesperson and then gets the sale amount by that salesperson. It calculates the total sale amount of each person individually and then calculates the total sale amounts by the entire salespersons. Finally, the salesperson with the highest sales value is displayed.

Blurred answer
Students have asked these similar questions
do both tasks
You can assign the contents of one array to another by using the assignment operator. the equality operator. both array names. A and C together. none of the above.
Create a struct called Booking that consists of a 3 digit flight number (e.g. 234), type of seat (E or B), the price of a seat in economic class and the number of seats booked. Declare an array to store at least 30 Booking structs.
Knowledge Booster
Background pattern image
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Text book image
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT
Text book image
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Text book image
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Text book image
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning