Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This is for chapter 2 in Joyce Farrel Objected Oriented Programming using C++. W

ID: 3551367 • Letter: T

Question

This is for chapter 2 in Joyce Farrel Objected Oriented Programming using C++.


Write a C++ program in which you declare variables that holds an hourly wage, a number of hours worked, and a withholding percentage. Prompt the user to enter values for each of these fields. Compute and display net weekly pay, which is calculated as hours times rate, minus the percentage of the gross pay that is withhholding.



***Please only use things learned in the first two chapters. I dont need any extra code or any code that I have not learned. Points will be awarded promptly.

Explanation / Answer

#include<iostream>

using namespace std;

int main()

{

int hourlyWage,numHours,percent,netWeeklyPay;

cout<<"Enter hourlywage, number of hours and withholdiong percentage:";

cin>>hourlyWage>>numHours>>percent;

netWeeklyPay=numHours*hourlyWage - percent;

cout<<netWeeklyPay<<endl;

return 0';

}


Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote