Need help with declare hours worked as an integer, declare pay rate as a float,
ID: 3626857 • Letter: N
Question
Need help with declare hours worked as an integer, declare pay rate as a float, declare wages as a float and write assignment statement to compute wages. All other part of the code are ok as is. Thanks#include <iostream>
using namespace std ;
int main()
{
declare hours_worked as an integer ;//No. of hrs worked during week
declare pay_rate as a float ; //Pay rate: dollars per hour
declare wages as a float ; //Weekly wages
// read in the hours worked
cout << endl ;
cout << "Number of hours worked during"
<< " the week (integer) = " ;
cin >> hours_worked ;
// read in the pay rate
cout << "Hourly pay rate (specify two digits "
<< "after the decimal point) = " ;
cin >> pay_rate ;
// compute wages
write assignment statement to compute wages ;