HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Repetition (Loops) > problem:


50312 - Sales Bar Chart

Guest
• Review clarifications (1)

Volume problems

• 50957 - Divisible by 3
• 50898 - Draw the Pattern
• 50896 - Sum of Even Numbers
• 51115 - Pascal Triangle
• 51116 - The Star Triangle
• 50303 - Pattern
• 50882 - FizzBuzz
• 50308 - IT Knowledge Seminars
• 50312 - Sales Bar Chart
• 50316 - Population Bar Chart
• 50313 - Pattern Displays
• 50320 - Random Sorted List
• 50336 - Buying Carpets
• 50338 - Convert Into Decimal
• 50295 - Weighted Average
• 50815 - Breaking the Bunker
• 50899 - How Many Years

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
Prepared by Halil Karimis.

Sales Bar Chart

Question:
Write a program that asks the user to enter the total sales of the day for the stores in three different cities of Albania (Tirana, Durres and Shkoder). The program should then display a bar graph comparing each store's sales.

Create each bar in the graph by displaying a row of asterisks. Each asterisk should represent $100 of sales.

Input specification
You will be given three integer numbers (sale) in three lines where 0 < sale < 1000.

Output specification
Show three lines containing Asterisk chars '*' for every $100 sale.

 Sample Run I  
  390
  610
  475

 Sample Output I  
***
******
****


Для отправки решений необходимо выполнить вход.

www.contester.ru