Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help in my program I am stuck part (e.g. 2 and 6.78 are acceptable The user can enter numbers with or without a fractional

image text in transcribedNeed help in my program I am stuck
image text in transcribed
part (e.g. 2 and 6.78 are acceptable The user can enter numbers with or without a fractional . The value 0 which is entered to end the input sequence must not be considered as being in . The program must work for input sequences which contain numbers that are all positive, all input values). the input sequence negative, or a mixture of positive and negative. If there are no positive numbers, it mustn't display a minimum and maximum of positive numbers, but must instead give a message as shown in the sample run below. (And similarly if there are no negative numbers.) If the first number entered by the user iszero, the behavior must be as shown below. The prompts and output displayed by the program must be formatted as shown in the sample run below (e.g. blank lines, spacing, numbers with fractions displayed with 3 places after the decimal point). . A sample run of your program should look like: Entering 0 will terminate the sequence of input values. Enter a number 6 Enter a number: 2.3 Enter a number: -4 Enter a number 6 Enter a number: 2.3 Enter a number: -4 Enter a number: 98 Enter a number: -4.5 Enter a number: -22 Enter a number-1.3 Enter a number0 There are 3 values entered, with minimum 2.300, maximum 98.000 There are 4 negative values enteret, with minimum -22.000, maximum -1.300

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

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

Database 101

Authors: Guy Kawasaki

1st Edition

0938151525, 978-0938151524

More Books

Students also viewed these Databases questions

Question

What is the relationship between humans?

Answered: 1 week ago

Question

What is the orientation toward time?

Answered: 1 week ago