Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a code to find the min and the max between 5 numbers (using repl.it if possible) o Tools Window Help 480% CO Mon 11:09

Write a code to find the min and the max between 5 numbers (using repl.it if possible) image text in transcribed
o Tools Window Help 480% CO Mon 11:09 PM a Ch3 Control Structures.v2.pdt (page 43 of 71) Given an array literal that has 5 float numbers, find the max and min numbers. Use "for" and "if/else" statements. (note: not two 'for' loops). Hint: Need to define two variables to store the max and min numbers Display the max number on console when 9, is typed and display the min number when '0' is typed. Display a warning message if any other number or letter is typed Optional: not use array literal, but some numbers manually input by the user. Note: Display a prompt message to inform the user to provide inputs; and display some info messages before popping out any outputs. o Tools Window Help 480% CO Mon 11:09 PM a Ch3 Control Structures.v2.pdt (page 43 of 71) Given an array literal that has 5 float numbers, find the max and min numbers. Use "for" and "if/else" statements. (note: not two 'for' loops). Hint: Need to define two variables to store the max and min numbers Display the max number on console when 9, is typed and display the min number when '0' is typed. Display a warning message if any other number or letter is typed Optional: not use array literal, but some numbers manually input by the user. Note: Display a prompt message to inform the user to provide inputs; and display some info messages before popping out any outputs

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 And Transaction Processing

Authors: Philip M. Lewis, Arthur Bernstein, Michael Kifer

1st Edition

0201708728, 978-0201708721

More Books

Students also viewed these Databases questions

Question

When do you retest?

Answered: 1 week ago