Question: 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

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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!