Question: Pseudocode: get ( a ) and ( b ) value check if ( a ) is greater than

Pseudocode:
get \( a \) and \( b \) value
check if \( a \) is greater than \( b \)
print "a is greatest"
else
print "b is greatest"
3. Your Assignment
(1) From the example above, update the flowchart and pseudocode above considering the case when the values of two numbers a and b are the same. In that case, print " a and b are same". Submit the updated ones to MUOnline before due.
(2) Draw a flowchart and pseudocode to print the sum of positive integer number from 1 to \( n \)(swn \(=1+2+\ldots+n)\).\( n \) is entered by the user at the prompt.
(3) Submission
The assignment submission should in a zip file format including:
- Drawings of (1) and (2)
You can draw flowcharts by hand on the paper and take a picture of it (pdf),
Or use MS Word, Visio, or other free software to draw them.
- Pseudocode of (1) and (2) in MS word
Use a name convention of "CS210_U2_HW_yourLastName" (ex. CS210_U2_HW_Yoo).
Pseudocode: get \ ( a \ ) and \ ( b \ ) value

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!