Dev - C++ - 1111

 
Vista:

1111

Publicado por elma (1 intervención) el 19/04/2005 01:26:42
Write a program that shows a menu of different items with different sale prices. This menu will ask how many items the user will buy and store the selected items prices into a double array. The program must be able to calculate the total sum of the items, including a 5% of sale tax in each one of them. An agree option will be prompted to the user if he/she wants to pay the total price. If the user is not agreed, the program must have the option that let the user discard one item from the list and bring the new total result. Create at least two functions.

1- A function that receives the list of items the user wants to buy and calculate the total sum of the list. In this step include the 5 % sale tax of the items. Calculate this value as follow:

ItemTax = ItemPrice * Tax
ItemPrice_plusTax = Item + ItemTax

2- A function that receives the array of items and let the user to discard an item from the list.

Use the following data to test your program:

Computer Items Menu:
ATX Motherboard ……………..….89.99
Processor 1.6GHz …………………149.99
RAM memory 512MB……………..65.59
Hard Drive 80 GB………………….99.99
16X-DVD/CD ROM……………….37.82
Sound Card…………………………29.99
Video Card 64MB…………………..49.99



por favor lo mas sencillo posible
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder