Simple C# application with do while statements

A large company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9% of their gross sales for that week. For example, a salesperson who sells $5,000 worth of merchandise in a week receives $200 plus 9% of $5,000, or a total of $650. You’ve been supplied with a list of the items sold by each salesperson. The values of these items are as follows:

Item Value

1 239.99

2 129.75

3 99.95

4 350.89

Develop a C# application that inputs one salesperson’s items sold for the last week, then calculates and displays that salesperson’s total sales. There’s no limit to the number of items that can be sold by a salesperson. You do not have to implement this with classes and objects.

Technical Requirements:

Prompt the user to enter the salesperson’s name, and store this name in a variable.

Prompt the user to enter an item number and a quantity sold of that item. Store these two entries in two separate variables called “intItem” and “intQuantity”.

Using a DO-WHILE control structure, loop until the user enters -1 for the item number.

Calculate the amount of sales for an item and store the result in a variable called dblItemSales.

After the user enters an item number and a quantity, print to the screen: the salesperson’s name “has sold “ [intQuantity] “of item # [intItem].

Accumulate the total sales in a variable called dblTotalSales by using a SWITCH statement to select the correct value to be multiplied by the quantity sold and adding this result to a running total, which is stored in the variable dblTotalSales.

If the user enters a number other than 1, 2, 3, or 4, display the message “Invalid Entry” and re-prompt the user to enter an Item Number. Make sure you do not perform any calculations or prompt the user to enter a quantity if the item number is incorrect.

After accumulating the total sales for an employee (that is, after the user has entered a -1 to quit), print to the screen Salesperson [Salesperson’s name] sold a total of [ total sales ].

Compétences : Design de site internet

en voir plus : php simple sign application, simple blackberry application development, simple job application, c# while loop break, difference between while and do while loop in c#, c# do while true, do while loop c# example, for loop c#, c# do while multiple conditions, c# do while vs while, c# do while continue, simple j2me application layout, develop simple iphone application 2008, simple iphone application code, simple poll application, create a simple android application, simple c application, simple c# application, write a simple android application for automated folder copying, write a simple iosandroid application

Concernant l'employeur :
( 0 commentaires ) Elk River, United States

Nº du projet : #17696914

Décerné à:


hi sir, i have read the entire requirements for getting the salesperson name, his items sold and quantity and to display the total item and commision etc, will do in few hours, thanks

%selectedBids___i_sum_sub_4% %project_currencyDetails_sign_sub_5% USD en 1 jour
(62 Commentaires)

3 freelance font une offre moyenne de $27 pour ce travail


Hi, Thanks for reviewing my cover letter. I am more then 10 years experienced in Photoshop,Flash,Banner design,Graphic design/ HTML/DHTML/XHTML, CSS,Jquery, javascript,Website & Logo Designer and and I am pretty Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(11 Commentaires)

Greetings, I am interested in doing this job. I am BS-CS graduate and knows C# programming as well, because of which I can do this task with ease. Have worked on Visual Studio as well. Please do give me a chance to Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(3 Commentaires)