You must learn some basic programming skills. Begin with some input with getline in the main function, after that calculate and show the results. And define for every calculation a function.
Example funciton:
const float REGULAR_PAY = 17.25;
float calculateGrossPay( float hours)
{
if( hours < 0 ) return 0; if( hours < 40 ) {
return REGULAR_PAY * hours;
}
}
Here is a tutorial for
getline. As you see there are a lot of tutorials at youtube. For the output use can use
printf with its formatting parameters, Take a look at the examples.
Good luck. ;-)