Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
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