ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Разделы > Ad-Hoc > задача:


50312 - Sales Bar Chart

Гость
• Вопросы к жюри (1)

Задачи раздела

• 50253 - Timer
• 50294 - Centimeters to Yards
• 50298 - Coins
• 50303 - Pattern
• 50882 - FizzBuzz
• 50322 - Snake Pattern
• 50302 - Paper Scissors Rock
• 50312 - Sales Bar Chart
• 50313 - Pattern Displays
• 50375 - Area of Circles
• 50393 - Palindromic Numbers
• 50396 - Cinema Tickets - 1
• 50325 - How much time passed?
• 50366 - Student Averages (2 Grades)
• 50406 - Draw Pattern 178
• 50416 - Placing Dominoes on Chess...

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
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