Need Help With HomeWork

Recently I missed class so now I am confused with the homework. Can someone point me in the right direction for these problems? TY


1.Read in a list of 10 numbers. Print out the list of numbers. Then sort the numbers. Print out the list of numbers sorted.


2.Each line contains the number of hours a person worked, payrate, and a bonus (add the bonus to the final pay). Compute a person's total pay. Our company pays double for any hours over 40 (Overtime) Your program should work for any number of lines of data.

Example;
50 10 100

would result in a total pay of $700.



So lost.
1. http://mathbits.com/mathbits/compsci/arrays/Selection.htm

2. Write a for loop that reads in the three numbers, does all the math, and spits out a number. Make the for loop stop only after reading all the lines in the file.
Thank You, Sir Paul!!
You are welcome.
Topic archived. No new replies allowed.