Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSE 110 Intro to Computer Science Lab # 1, Part 1-variable declarations, branching, and I/O (in class) Problem: Determine one employee's gross pay using the

image text in transcribedimage text in transcribed

CSE 110 Intro to Computer Science Lab # 1, Part 1-variable declarations, branching, and I/O (in class) Problem: Determine one employee's gross pay using the number of hours worked and the hourly pay rate The user will enter the hourly rate of pay (double) and the number of whole hours worked (integer). The program will compute the gross pay. 1. Create a project in Code:Blocks, and write a program that obtains user input, and computes gross pay. The output will include the hours worked, the hourly pay rate, and the gross pay. The program will output requests (prompts) to the user for the input. The program will provide output to the console. Good programming habits: The program should have a comment at the top with your name, and a brief description of the program. You should also decide on a good variable naming convention (upperCasing, underscores, etc.). You should also comment your code where appropriate. SAMPLE OUTPUT: Enter your hourly rate of pay: Enter the number of hours worked: Hours worked = x Hourly rate of pay = $xxx.xx Gross pay- $xxx.xx

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

What is meant by Career Planning and development ?

Answered: 1 week ago

Question

What are Fringe Benefits ? List out some.

Answered: 1 week ago