Example 3: Draw a flowchart that performs the following: Ask a user to enter a number. If the number is between 0 and 10, write the word blue. If the number is between 10 and 20, write the word red. if the number is between 20 and 30, write the word green. If it is any other number, write that it is not a correct color option.
Example 4: Draw a flowchart to print all multiples of 5 between 1 and 100 (including both 1 and 100).
Example 5: Draw a flowchart that will count all the even numbers up to a user defined stopping point.
Example 6: Draw a flowchart that will perform the following.
a) Read in 5 separate numbers.
b) Calculate the average of the five numbers.
c) Find the smallest (minimum) and largest (maximum) of the five entered numbers.
d) Write out the results found from steps b and c with a message describing what they are
Question 3:
Question 4:
Question 5:
As per chegg guidelines for multiple questions we will provide answer for first question mandatory. I provide answer for first 3 questions. So to get answer for other questions you'll be able to post it again.
Example 3: Draw a flowchart that performs the following: Ask a user to enter a number....
Draw a flowchart that will perform the following.a) Read in 5 separate numbers.b) Calculate the average of the five numbers.c) Find the smallest (minimum) and largest (maximum) of the five entered numbers.d) Write out the results found from steps b and c with a message describing what they are
(write algorithm and draw flowchart) for this question Write a C program which has a function that takes two numbers and find the largest and the smallest number and find the result of the largest power of smallest.(for example If the entered numbers are 6 and 3 the result is 6³)
In C++ 2. Write a program that allows the user to enter a series of positive numbers between 1 and 100 and displays the smallest and largest of the numbers entered. The program should not store the numbers that were entered, only keep track of the smallest and largest ones. The program should continue accepting numbers until the value 0 is entered and then display the results. If a number out of range is entered, tell the user it is...
Q1. Draw flowchart to find the average of 10 positive numbers. [Hint: Read the number in a loop, add them if it is positive and then find average] Q2. Draw flowchart to read 5 numbers from a user and then find the second largest number of them.
Write a C++ program that does the following: Asks the user to enter 3 integers, Obtains the numbers from the user, Prints the largest number and then the smallest of the numbers, If the numbers are equal, prints the message: "These numbers are equal." Prints the sum, average, and product of the 3 numbers.
Using This Guideline The problem Initial Plan: Execution and Evaluation: Revised Plan: Execution and Evaluation Write a pseudocode algorithm based off C# that performs the following: a) Read in 5 separate numbers from the user. b) Calculate the average of the five numbers. c) Find the smallest (minimum) and largest (maximum) of the five entered numbers. d) Write out the results found from steps b and c with a message describing what the results were. The algorithm output is as...
In Python 3, Write a program that reads a set of floating-point values. Ask the user to enter the values, then print: The number of values entered. The smallest of the values The largest of the values. The average of the values. The range, that is the difference between the smallest and largest values. If no values were entered, the program should display “No values were entered” The program execution should look like (note: the bold values are sample user...
Create a CodeBlocks project "HW 9" Write the code to ask the user to enter the size of an array. Then create an integer array of that exact size. Ask the user to enter a maximum value and then write a loop to fill the array with random numbers with value in the range of 1 to the maximum value. For example, if the maximum value is 100, random numbers must have value 1 to 100 inclusive. Input size of...
This assignment is about data types and condition checking in C++. Ask the user to enter three numbers, one after each other. The numbers can be a decimal numbers (one or two decimal precision, such as 5.4 or 6.32) or integer between 0 and 10. Then find maximum of three numbers and message the user. Examples runs are given below. Example -1 Enter a number: 4.3 Enter a number: 0.5 Enter a number: 6.7 The max of three number: 6.7...
use C++ language Output the prime numbers between 1 and 1000 Ask the user for a color. If they choose "red", use a while loop to output "red" 5 times. If they choose "green", output "green" seven times with a for loop. If they choose anything else, tell them to choose a better color. Create a random number between 1 and 6