Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

My task is to create a simple payroll program in C++. The tax rate is 10%. Employee Id: 5896, Hours Worked: 40, and Hourly Rate:

My task is to create a simple payroll program in C++. The tax rate is 10%. Employee Id: 5896, Hours Worked: 40, and Hourly Rate: 15.00

This is the program I wrote. The compile showed no errors, but when I run it, the output only says ENTER THE EMPLOYEE ID: 5896

Where is the issue in my program and how do I fix it?

image text in transcribed

2 NRNSEHER i #include using namespace std; 3o main() { int employeeid; int hoursworked; float hourlyrate, grosspay, taxamount, netpay; float const TAXRATE = 0.10; cout > employeeid; cout > hoursworked; cout > hourlyrate; grosspay = hoursworked * hourlyrate; taxamount = grosspay * TAXRATE; netpay = grosspay - taxamount; cout

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

Fundamentals Of Database Systems

Authors: Ramez Elmasri, Shamkant B. Navathe

7th Edition Global Edition

1292097612, 978-1292097619

More Books

Students also viewed these Databases questions

Question

Organize and support your main points

Answered: 1 week ago

Question

Move smoothly from point to point

Answered: 1 week ago

Question

Outlining Your Speech?

Answered: 1 week ago