, 30.11.2022 14:57 paulonyemakonor549

# Write an algorithm, in pseudocode or program code, which asks a user to enter a number between 5 and 20. If they enter a number outside this range, the program asks them repeatedly to re-enter the number until they enter a valid number. If a valid number n is entered, the program asks the user to enter n temperatures (all integer values), then calculates and outputs the average temperature.

### Another question on Computers and Technology

Computers and Technology, 23.06.2019 10:50
The volume v and paper surface area a of a conical paper cup are given by where r is the radius of the base of the cone and h is the height of the cone. a. by eliminating h, obtain the expression for a as a function of r and v. b. create a user-de ned function that accepts r as the only argument and computes a for a given value of v. declare v to be global within the function. c. for v ! 10 in.3 , use the function with the fminbnd function to compute the value of r that minimizes the area a. what is the corresponding value of the height h? investigate the sensitivity of the solution by plotting v versus r. how much can r vary about its optimal value before the area increases 10 percent above its minimum value?