New to Programming

Hey, Everyone. I was put into programming class this semester. Professor is really slow talker and half of the class doesn't know what he is saying. He gave us this assignment to finish and i don't know where to start. My school doesn't have any tutor for this subject as well. Thank you. I just need something to begin with. Explaining the problems would be very helpful. Thank you again.

> Write a program that has user enter a salary. If salary 20000 or less, give 30% raise, if more than 20000 and less than 40000 give 20 % raise. If 40000 or more but less than 60000 give 10 % raise.

> Write a program that accepts numbers from the user, adds them, and outputs the average. The numbers should be summed until user enters -1.

> Use nested loops to output 6 rows of 7 stars in each row.

Hey =) A great place to start is here -
http://www.cplusplus.com/doc/tutorial/basic_io/


And you also need to learn about loops (specifically for-loops in this assignment) -
http://www.tutorialspoint.com/cplusplus/cpp_for_loop.htm


and if statements -
http://www.cprogramming.com/tutorial/lesson2.html


If you don't like your proffesor explaining things, you can easily find videos of everything about c++ on youtube. You can search for how loops work, how input and output works, how if statements work etc

Get started on this assignment and post your progress =) If you get stuck on something feel free to post and ask a question, if you get errors please make sure to post the full error message that your compiler gives you, and use code tags for all of your code to make it readable -
http://www.cplusplus.com/articles/jEywvCM9/
Topic archived. No new replies allowed.