Bob employs a painting company that wants to use your services to help create an invoice generating system. The painters submit an invoice weekly. They charge $30 per hour worked. They also charge tax – 15%. Bob likes to see an invoice that displays all the information – number of hours, the charge per hour, the total BEFORE tax and the total AFTER tax. Since this is an invoice, we also need to display the name of the company (Painting Xperts) at the top of the invoice. Display all of the information on the screen.
#include <iostream>
using namespace std;
int main()
{
double H;
cin>>H;
cout<<"Painting Xperts\n";
cout<<"Hours:"<<H<<'\n';
cout<<"Charge per hour:30$\n";
cout<<"Before tax:"<<H*30<<"$\n";
cout<<"After tax:"<<H*30*1.15<<"$\n";
return 0;
}
Comments
Leave a comment