Write pseudocode that will add all the even numbers


Pseudocode Algorithms Assignment: Programming and Problem Solving Lab

Problem 1: Write a pseudocode algorithm 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 shown below.

Sample Output:

Average of all numbers = 56
Maximum number: 68
Minimum number: 23

Program 2: Write pseudocode that will add all the even numbers from 0 up to a user defined stopping point (inclusive if even). Output the stopping point, and the sum of all even numbers up to the stopping point (inclusive if even). The algorithm output is as shown below.

Sample Outputs:

Stopping point: 12
Sum of all evens = 42

Stopping point: 9
Sum of all evens = 20

Program 3: Write a pseudocode algorithm that asks someone how old they are today, and display their current age. Then perform the calculation and display how old they will be in 20 years. The algorithm output is as shown below.

Sample Outputs:

Your age today = 19
Your age in 20 years = 39

Your age today = 34
Your age in 20 years = 54

Program 4: Write a pseudocode algorithm that performs the following task: Ask a user to enter a number. If the number is between 0 and 10, exclusively, write the word "Blue". If the number is between 10 and 20, exclusively, write the word "Red". If the number is between 20 and 30, exclusively, write the word "Green". If it is any other number, write the message "This is not a correct color option". The algorithm output is as shown below.

Sample Outputs:

You entered: 15
Your color: Red

You entered: 41
Your color: This is not a correct color option.

Program 5: Write a pseudocode algorithm to add the prices of an order of fries, a burger, and a drink, calculate the tax (assume 10%), and tell the customer their total. Use the prices shown below for each menu item. The algorithm output is as shown below.

Sample Output:

Fries price: 3 dollars
Burger price: 6 dollars
Dink price: 1 dollar
Tax: 1 dollar
Total cost: 11 dollars

Format your assignment according to the following formatting requirements:

1. The answer should be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides.

2. The response also include a cover page containing the title of the assignment, the student's name, the course title, and the date. The cover page is not included in the required page length.

3. Also Include a reference page. The Citations and references should follow APA format. The reference page is not included in the required page length.

Solution Preview :

Prepared by a verified Expert
Computer Engineering: Write pseudocode that will add all the even numbers
Reference No:- TGS02963496

Now Priced at $35 (50% Discount)

Recommended (94%)

Rated (4.6/5)