Create a single NOTEPAD or PDF file that restates the problem in your own words,
ID: 3586639 • Letter: C
Question
Create a single NOTEPAD or PDF file that restates the problem in your own words, specifies what input is needed for whomever is using the process, what output is expected, the step by step process (algorithm) to get the output from the input, and test data (input for which you know the expected output for each of the 3 problems given below. (Include all this information in one file) You should not write any code. Make sure the problem statement is in your own words and is descriptive enough so someone not reading the problem you were given will understand what is being done. Do not write any code.
Write a program that asks the user to enter today's sales for five stores. The program should then display a bar graph comparing each store's sales. Create each bar in the bar graph by displaying a row of asterisks. Each asterisk should represent $100 of sales.
Example:
Enter today's sales for store 1: 1000
Enter today's sales for store 2: 1200
Enter today's sales for store 3: 1800
Enter today's sales for store 4: 800
Enter today's sales for store 5: 1900
SALES BAR CHART
(Each * = $100)
Store 1: *********
Store 2: ************
Store 3: *****************
Store 4: ********
Store 5: ******************
Explanation / Answer
Solution:
Problem statement:
Given some input 5 numbers which represent sales of today from five stores the values are given in order from store 1 to store 5.
Task: You have to change those number in sales bar graph by using asterisks(*) 1 asterisk will represent $100
Output:
Output should be like this
Store 1: *********
Store 2: ************
Store 3: *****************
Store 4: ********
Store 5: ******************
Algorithm:
I hope this helps if you find any problem. Please comment below. Don't forget to give a thumbs up if you liked it. :)
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.