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
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##..
Step by Step Solution
There are 3 Steps involved in it
Step: 1
I can help you with these questions in C Lets go through each question and provide the solutions Pri...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started