Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in c-programming: Q2 Dashboard X Homework-04-Spring-2- x XyDGQ2: (Weekly Pa Oreplit-EachExaltedPro C } | file://home/chronos/u-098f0a422b194aa432f0e5b77b6868e769e8f3ab/Downloads/Homework-04-Spring-2018.pdf E ESPN The Worldwi eComingSoon.net M IMDb Movies, TV a

in c-programming: Q2

image text in transcribed

Dashboard X Homework-04-Spring-2- x XyDGQ2: (Weekly Pa Oreplit-EachExaltedPro C } | file://home/chronos/u-098f0a422b194aa432f0e5b77b6868e769e8f3ab/Downloads/Homework-04-Spring-2018.pdf E ESPN The Worldwi eComingSoon.net M IMDb Movies, TV a O YouTube. Movies Movie Trail a Amazon com: Olin wr Wells Fargo Perso nWelcome to Facebo Capital necreditc Q2: (Weekly Pay Calculator) (25 points) Develop a program that calculates weekly pay for group of hourly workers. Design appropriate prompts and outputs of your own design. The program should prompt for the number of hours worked in the week and the hourly rate. Generate the gross weekly pay and print it. Hours over 40 should be paid at tiea a half hourly rate. Use a sentinel value to terminate data entry Note: For this program, it is acceptable to use float or double data types for monetary units. Howeve you should never use float and double data types for monetary unit. Bonus (5 points). Write a small progrmthlustrates the dangers of using floats (or doubles) for monetary units. Q3: (Bar Charts) (25 Points) Write a program that reads in a series of integers in the range of 1 to 40, with the first number indicating how many integers follow it. Print out a bar chart of the numbers entered. For example, if the following is entered at a prompt: Enter integers between 1 and 40 (first number indicates how many there are): 3 10 13 9 You should output the following 1:03 O

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

More Books

Students also viewed these Databases questions

Question

3. Describe the communicative power of group affiliations

Answered: 1 week ago