Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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 salesperson's total, atgrand 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: Enter a salesperson initial >0 Enter amount of sale os 10 Enter next salesperson intital or Z to Enter amount of sale 772 Enter next salesperson intital or Z to . Enter anount of sale $315 Enter next alesperson Intital or Z to . Enter anount of sale n 9 Linter next salesperson intital or Z to An example of the program is shown below: In order to prepend the $ to currency values, the program will need to use the CultureInfo. GetcultureInfo method. In order to do this, include the statement using System.Globalization; at the top of your program and format the output statements as follows: Writeline("This is an example: {0} ". value. Tostring("C", CultureInfo. GetCultureInfo("en

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_2

Step: 3

blur-text-image_3

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

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

Students also viewed these Databases questions

Question

Describe Table Structures in RDMSs.

Answered: 1 week ago