1. ## Help With HW

Okay so by now i have a whole bunch of scanf, and printf on my code but i want other people help, like how would you do it, and i forget what function i use if the number cant be a whole number here is the assignment.Am I on the right path or is there an easier way to approach this. My code is the bottom.

Write a program that reads in the name, hourly rate and number of hours worked for 5 people. Print the name of each person, the number of hours worked, their weekly pay based on the number of hours they worked and how much they owe in taxes. Assume that taxes take 20% of the paycheck. Don’t forget to take the taxes out of the pay check. If they work more than 40 hours they get overtime. The hourly rate is then 1.5 times normal for all hours past 40.

Example (Sample input & output for one person)
Enter name: Glenn
Enter hourly rate: 4.00
Enter hours worked: 75

Pay to: Glenn
Hourly rate: 4.00
Hours worked: 75.0
Amount paid: \$370.00
Taxes paid: \$74.00

Code:
```#include<stdio.h>
#include<conio.h>
int main (void)
{
int num1;
int num2;
int sum;
printf("Glenn\n");
printf("Enter Hourly Rate\n");
scanf("%d", &num1);
printf("Enter Hours Worked\n");
scanf("%d", &num2);
sum = num1 * num2;
printf(" The Total Is %d", sum);
getch();
}```

2. If you have covered them, this is probably best done with structures(Cprogramming.com Tutorial: Structures) and Loops(Cprogramming.com Tutorial: Loops). If not then this is could be quite a painful experience.

3. Start by giving your variables meaningful names, like hourlyRate and hoursWorked.

Then things like
if ( hoursWorked > 40 )

is likely to make a lot more sense than
if ( num2 > 40 )