Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Ch 5 Lab Instructions (Protected View) - Word (Product Activation Failed) ences Mailings Review View Help Grammarly Tell me what you want to do contain

image text in transcribed
Ch 5 Lab Instructions (Protected View) - Word (Product Activation Failed) ences Mailings Review View Help Grammarly Tell me what you want to do contain viruses. Unless you need to edit, it's safer to stay in Protected View Enable Editing Chapter 5 Lab - Looping Sales Bar Chart - Write a program that asks the user to enter today's sales for each of three stores. The program should then produce a bar graph displaying each store's sales. Create each bar in the graphs by displaying a row of asterisks. Each asterisk should represent $100 of sales rounded to the nearest $100. NOTE: You may want to use the round function found in the math library. You will need to include math.h and declare your sales variables as floats. Validation: Validate that each sales figure entered is >= 0 using a validation loop. Sample Dialog: Enter today's sales for store 1: -90 Please enter a positive number for store 1: 789 Enter today's sales for store 2: 20 Enter today's sales for store 3: 230 DAILY SALES (each * $100) Store 1: ******** tore 2: tore 3: **

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Management Process

Authors: Lee Long

4th Edition

978-0201822939,0201822938

Students also viewed these Databases questions