Print your name, age and what course you are studying in C 2. Create a program to
Question:
Print your name, age and what course you are studying in C
2. Create a program to classify a student's grade into 3rd, 2:2, 2:1 and First from taking in a
percentage number (integers). 3rd is <50, 2:2 is <60, 2:1 is <70 and first is>=70.
3. Build on question two by using a list of percentages (integers) and classify all grades
4. Create a program which uses a while loop to print the first 50 triangular numbers. This
question requires two bits of research, one is the formula to detect a triangular number
(look online) and the other is to figure out when to stop. HINT - every time you print a
triangular number, increment the loop variable!
5. Create vending machine algorithm in C. For this program, you will need to start with 3
variables, one is the input (money put into the machine), cost (product/s total) and change
to be dispensed. Your program should print out the coin value and coin amount for the
change. For example, if my input was 250 pence (£2.50), the cost is 167 pence (£1.97), the
change is 53p. Your program should print the following
£2 x 0
£1 x 0
50p x 1
20p x 0
10p x 0
5 x 0
2 x 1
1 x 1
can i get help with these questions please they need to be written in C##..
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill