السلام عليكــم ورحمـة الله وبركاتــه ،،
ممكن تساعدوني في هالبرنامج
لم افهم من شيئااا
:wacko:
florist needs a program to calculate the total flowers sales after each week. There are three types of flowers- Viola, Rose, and Camellia. The flower price is 1BD, 1.5BD and 1.75BD respectively.
You receive a file that contains flower type and number of flowers. Due to confidentiality, the letter code V or v is used for Viola, R or r for Rose and C or c for Camellia. If the letter code is incorrect, print an appropriate message followed by the incorrect record and ends the program (Use break statement).
The first three lines in the file consist of the flower code followed by the price in BD. Thereafter, each line consists of a letter code followed by the number of flowers sold. The number of entries in the file is unknown.
Write a C++ program that computes and outputs the total number of flowers and total price for each type of flowers. Format your results to two decimal places