ranee
Nov 26, 2013, 02:56 PM
Can anyone help me in solving this problem please :
A fruits shop sells several types of fruits each day. Write a program that reads from user several lines of input. Each line includes a fruit's name, price per kilogram (as an integer), number of kilograms sold (as an integer). The program should calculate and print the earned money of all fruits sold and fruit that achieved the largest profit.
b. Give the exact output of your application. Provide 2 snapshots representing the exact output of 2 different inputs.
Hint:
You could assume that user will insert valid data
User could stop the program via entering the word "stop" as a fruits' name.
A fruits shop sells several types of fruits each day. Write a program that reads from user several lines of input. Each line includes a fruit's name, price per kilogram (as an integer), number of kilograms sold (as an integer). The program should calculate and print the earned money of all fruits sold and fruit that achieved the largest profit.
b. Give the exact output of your application. Provide 2 snapshots representing the exact output of 2 different inputs.
Hint:
You could assume that user will insert valid data
User could stop the program via entering the word "stop" as a fruits' name.