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...
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
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
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?
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...
A small current loop can be used as a compass. (a) When it's
placed in an external magnetic field, which plane will it be
rotated into, and in which direction will its magnetic dipole
moment p point? (b) Will the foop then be stretchedor compressedby
B? (c) lf B varies with position, will the loop be forced toward
positions where Bis greateror les!? (dl When a charged particle
orbits in a magnetic field (see Ex 27-7, pg 7151, p is...