in c++ >>When is beneficial to use entry condition loop
(for loop) and when is it beneficial to use exit condition loop
(while loop). Give an example for each loops.
2.c++ if and loop statement Write a program that will count the
number of even number and odd numbers between two inputted numbers.
Display the numbers and compute the sum and average of all the even
numbers and the sum and average all the odd numbers.
Sample outputs:
Enter starting number:3 Enter starting number:4
Enter ending number:10 Enter ending number:10
odd numbers Even number
3 4
5 6
7 8
9 10
number of even numbers=4 number of even numbers=4...
(1) Explain that a counter-controlled loop is useful when you
know how many times a set of statements needs to be executed.
(2) Discuss the implementations of the Fibonacci Number program
at the end of this section to consolidate the students’
understanding of the while loop repetition structures.
4) (5pts) Why is coefficient of rd (reduction coefficient) used
when computing cyclic stress ratio?
please make it different from the answers on Chegg website
When should a regression model be used to make a prediction?
When should it not be used to make a prediction? What value tells
us how good the prediction will be?
What data type should be used to store a count of items
in a shopping cart?
Select one:
a. int
b. String
c. double
d. char
e. boolean
What data type should be used to store the dollar amount
in a shopping cart?
Select one:
a. boolean
b. char
c. String
d. int
e. double
Sentinel While Loop Lab
Convert Lab 11 from a counter controlled WHILE loop to a
sentinel WHILE loop. Do the following:
Prompts the user to enter a grade or a -1 to quit.
IF the user entered a -1 THEN
Display a message that the User is done entering grades
ELSE
Count each grade as it is entered.
Compute a running total of the grades entered.
END IF
After the user enters the sentinel of -1, calculate the average
of...