Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a MARIE program to allow the user to input 8 integers (positive, negative, or zero) and then find the smallest and the largest and

Write a MARIE program to allow the user to input 8 integers (positive, negative, or zero) and
then find the smallest and the largest and print each of these out.


As an example, if the user enters the following decimal numbers as input (one after the other) 

23, -6, 78, 0, 36, 3, -250, –5


the program would output the following values as the maximum and minimum, respectively:
78
-250


Assume that the user will always provide valid numbers as input; that is, do not worry about
dealing with invalid input data.


Write comments within your program so that a reader can understand it easily.

Step by Step Solution

3.50 Rating (157 Votes )

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

Step: 3

blur-text-image

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

Physics for Scientists and Engineers A Strategic Approach with Modern Physics

Authors: Randall D. Knight

4th edition

978-0134092508, 134092503, 133942651, 978-0133942651

More Books

Students also viewed these Programming questions

Question

Find the lengths of the curves. x = (y 3 /12) + (1/y), 1 y 2

Answered: 1 week ago

Question

Develop a preliminary focus for your research.

Answered: 1 week ago