Hi I'm new to programming and i need help with a lab, can someone PLEASE help me. By the way I'm learning c++ on mac
These are the directions: a program that asks the user how many hours they worked Next, modify the program so that it asks the user how many weeks are in the given pay-period, followed by that number of hourly inputs. The program should print the take-home pay for each of the weeks, then display the total for the month. Finding the total will require summing the weekly pay each time you go through the loop. Remember the total is zero to begin with.
Please help, I don;t even know what to do or how to start?
Think about how you would solve this problem. Write down what you need to do, then code it.
To start:
-Get user inputs for hours, pay, weeks. These will probably be doubles (data type) since you have decimals for dollars and hours.
-Figure out the basic math to calculate wage by the hour. So pay * hours worked * weeks.
-It's asking you to use a loop so watch a tutorial like @TarikNeaj recommended. This will help you figure out the code for loops.