Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Project question : Create MIPS program that prompt the user to enter several N numbers then print the following menu of tasks: 1.Average. 2.Odd Numbers.

image text in transcribed
image text in transcribed
Project question : Create MIPS program that prompt the user to enter several N numbers then print the following menu of tasks: 1.Average. 2.Odd Numbers. 3.Even Numbers. 4.Maximum Number. 5.Minimum Number. 6.Exit Enter your choice : Where the user should enter the digit of the task to be applied to the numbers entered earlier, this menu should continue be displayed after each task until the user enter number ( 6 ) then the program will stop and exit at this point. In each task you should display the array of numbers in one line and the requested result on another line followed by an appropriate messages, an example output screen should looks like the following: Enter how many numbers: 5 1.Average. Enter a number: 25 2.Odd Numbers. Enter a number: 12 3.Even Numbers. Enter a number: 34 4. Maximum Number Enter a number: 9 5. Minimum Number Enter a number: 56 6.Exit Enter your choice : 5 1.Average. 2.Odd Numbers. List of number are : 25. 12, 34,9.56 3.Even Numbers. The Minimum Number is :9 4. Maximum Number 5. Minimum Number. 1.Average. 6.Exit 2.Odd Numbers. Enter your choice : 1 3.Even Numbers. 4. Maximum Number List of number are: 25.12.34.9.56 5. Minimum Number The Average is : 27 6.Exit Enter your choice : 6 1.Average. 2.Odd Numbers Exit program!!, Good bye 3.Even Numbers 4. Maximum Number 5. Minimum Number. 6.Exit Enter your choice : 3 List of number are: 25, 12, 34,9.56 Even Numbers are: 12.34, 56 Important Note: your code should contain good explaining comments (-2 marks for missing comments) Project question : Create MIPS program that prompt the user to enter several N numbers then print the following menu of tasks: 1.Average. 2.Odd Numbers. 3.Even Numbers. 4.Maximum Number. 5.Minimum Number. 6.Exit Enter your choice : Where the user should enter the digit of the task to be applied to the numbers entered earlier, this menu should continue be displayed after each task until the user enter number ( 6 ) then the program will stop and exit at this point. In each task you should display the array of numbers in one line and the requested result on another line followed by an appropriate messages, an example output screen should looks like the following: Enter how many numbers: 5 1.Average. Enter a number: 25 2.Odd Numbers. Enter a number: 12 3.Even Numbers. Enter a number: 34 4. Maximum Number Enter a number: 9 5. Minimum Number Enter a number: 56 6.Exit Enter your choice : 5 1.Average. 2.Odd Numbers. List of number are : 25. 12, 34,9.56 3.Even Numbers. The Minimum Number is :9 4. Maximum Number 5. Minimum Number. 1.Average. 6.Exit 2.Odd Numbers. Enter your choice : 1 3.Even Numbers. 4. Maximum Number List of number are: 25.12.34.9.56 5. Minimum Number The Average is : 27 6.Exit Enter your choice : 6 1.Average. 2.Odd Numbers Exit program!!, Good bye 3.Even Numbers 4. Maximum Number 5. Minimum Number. 6.Exit Enter your choice : 3 List of number are: 25, 12, 34,9.56 Even Numbers are: 12.34, 56 Important Note: your code should contain good explaining comments (-2 marks for missing comments)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Management And Cost Accounting

Authors: Charles T. Horngren, Alnoor Bhimani, Srikant M. Datar, George Foster

1st Edition

0130805475, 978-0130805478

More Books

Students also viewed these Accounting questions