Imagine your self to be working in a company and your bosses gave you this question, so how would you be tackling this?
What have you tried? where are you stuck? This is your very first time, you should be excited. Grab a pen and a paper, write down an algorithm which comes to your mind after reading the statement.
If you have a good flow chart you can start coding. Realize every thing step by step. Remember one thing the more help you take, the more you will be dependent on people for solutions.
Utilize this problem to develop your logic and skill. Mind starts developing from the very first problem itself.
Your question is :
Quote:
if someone could make this clearer and help with working out a pseudocode
But it should be :
Quote:
I am stuck at this line, whats wrong?
When you reach this level you wont even post where you are stuck.
I read that pdf, its a good one. The very first para says:
Quote:
Programming aspects to get familiarized with:
The use of decision structures
The use of repetition structure
Your teacher needs you to be familiar with the above 2 concepts. Dont take it as an assignment take it as a learning task. He wants you to learn them.
Quote:
decision structures
Start reading about if else :
http://www.tutorialspoint.com/cprogramming/c_decision_making.htm[
^]
Quote:
repetition structures
http://www.cs.fsu.edu/~myers/c++/notes/control2.html[
^]
Use of loops in all languages are same.
Find out how to take a user input from the console. You must know all the formulas related to AH-rating and stuff.
Write down the formula according to user input and translate it to a code. Enough hints start coding.