Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using C#: Danielle, Edward, and Francis are three salespeople at Holiday Homes. Write an application named HomeSales that prompts the user for a salesperson initial

Using C#:

Danielle, Edward, and Francis are three salespeople at Holiday Homes. Write an application named HomeSales that prompts the user for a salesperson initial (D, E, or F) input as a string. Either uppercase or lowercase initials are valid. While the user does not type Z, continue by prompting for the amount of a sale. Issue the error message "Sorry - invalid salesperson" for any invalid initials entered. Keep a running total of the amounts sold by each salesperson. After the user types Z or z for an initial, display each salespersons total, a grand total for all sales, and the name of the salesperson with the highest total unless there is a tie. If there is a tie, indicate this in the program's output with the message: "There was a tie".image text in transcribedimage text in transcribed

Programming Exercise 5-5 Instructions HomeSales.cs Danielle, Edward, and Francis are three salespeople at Holiday Homes. Write an application named Home Sales that prompts the user for a salesperson initial ( D, E, or F) input as a string. Either uppercase or lowercase initials are valid. While the user does not type Z, continue by prompting for the amount of a sale. Issue the error message "Sorry - invalid salesperson" for any invalid initials entered. Keep a running total of the amounts sold by each salesperson. After the user types Zor z for an initial, display each salesperson's total, a grand total for all sales, and the name of the salesperson with the highest total unless there is a tie. If there is a tie, indicate this in the program's output with the message: "There was a tie". An example of the program is shown below: Programming Exercise 5-5 HomeSales.cs + Instructions "There was a tie". An example of the program is shown below: Enter a salesperson initial >> D Enter amount of sale >> 10 Enter next salesperson intital or i Enter amount of sale >> 2 Enter next salesperson intital or i Enter amount of sale >> 15 Enter next salesperson intital or i Enter amount of sale >> 9 Enter next salesperson intital or i Danielle sold $12.00 Edward sold $15.00 Francis sold $9.00 Total sales were $36.00 Edward sold the most Grading When you have completed your program, click the Submit button to record your score. Programming Exercise 5-5 Instructions HomeSales.cs Danielle, Edward, and Francis are three salespeople at Holiday Homes. Write an application named Home Sales that prompts the user for a salesperson initial ( D, E, or F) input as a string. Either uppercase or lowercase initials are valid. While the user does not type Z, continue by prompting for the amount of a sale. Issue the error message "Sorry - invalid salesperson" for any invalid initials entered. Keep a running total of the amounts sold by each salesperson. After the user types Zor z for an initial, display each salesperson's total, a grand total for all sales, and the name of the salesperson with the highest total unless there is a tie. If there is a tie, indicate this in the program's output with the message: "There was a tie". An example of the program is shown below: Programming Exercise 5-5 HomeSales.cs + Instructions "There was a tie". An example of the program is shown below: Enter a salesperson initial >> D Enter amount of sale >> 10 Enter next salesperson intital or i Enter amount of sale >> 2 Enter next salesperson intital or i Enter amount of sale >> 15 Enter next salesperson intital or i Enter amount of sale >> 9 Enter next salesperson intital or i Danielle sold $12.00 Edward sold $15.00 Francis sold $9.00 Total sales were $36.00 Edward sold the most Grading When you have completed your program, click the Submit button to record your score

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional IPhone And IPad Database Application Programming

Authors: Patrick Alessi

1st Edition

0470636173, 978-0470636176

More Books

Students also viewed these Databases questions

Question

EXERCISE 12.2. Show that s, the rescaled frequency, must be real.

Answered: 1 week ago