Question: Q1. 4 0 points (Programming Exercise 1 from Chapter 6) Watch the video for The Rectangle Area Problem: The Rectangle Area Problem (Links to an
Q1. 40 points (Programming Exercise 1 from Chapter 6) Watch the video for The Rectangle Area Problem:
The Rectangle Area Problem (Links to an external site.)
Write the pseudo code for this problem based on what you learned from the video. The purpose is to design a modular program that asks the user to enter the length and width, and then calculates the area. The formula is as follows:
Area = Width x Length
Q2. 60 points (Programming Exercise 4 from Chapter 6) - Maximum of Two Values
Design a function named findMax that accepts two integer values as arguments and returns the value that is the greater of the two. For example, if 7 and 12 are passed as arguments to the function, the function should return 12. In module Main ()) Prompts the user to enter two integer values. Pass the values to a function finxMax. This function should find the largest of two numbers and return the largest to Main ( ). The program should display the value that is the greater of the two. The following modules should be written:
findMax, that accepts two integer values and returns the value that is the greater of the two
showMaximum, that accepts three integer values and displays the largest.
The main module, that will get two numbers and pass them to findMax
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
