Question: write a c + + code Class activity 7 . A Learning outcome: test students' ability to create a counting loop using while loop. Activity
write a c code Class activity A
Learning outcome: test students' ability to create a counting loop using while loop.
Activity description: counting from a given number
Use a while or dowhile loop to display a range of number.
The initial number is collected from the keyboard and print numbers from the initial number down to in a step of
The initial number must be between and inclusive.
Use while or dowhile loop to make sure that the initial is between and
If the initial number is not between and the program will ask the user to enter a valid number.
The program will print when the initial number is between and
Class activity B
Learning outcome: test students' ability to create an application using counting loop with break andor continue statement.
Activity description: average grade checker
Create a C program that will ask the user to enter grades and stop when the average of all grades is greater than or equal to The program should that the following requirements:
grades, which are entered by the user, have to be between and otherwise, the program will ask the user to enter another grade.
the average of the entered grades is calculated as:
average sum of all grades number of grades
when the average reaches more than the program will stop and display the total average:
The average for number of grades is
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
