Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in c++ Using a while loop write a program that takes in a list of positive INTEGER values from the user. Once the user types

in c++ Using a while loop write a program that takes in a list of positive INTEGER values from the user. Once the user types in a negative value the program outputs the highest number the user typed in divided by the lowest number. You can assume the user never types in a 0 value. Copy and paste the cout in the output to ensure you are printing out in the same format as the output. Requirements 1) Program makes user cin integer values 2) Program utilizes a while loop correctly 3) Program outputs correct value of highest/lowest

if input is 10 5 -1

output will be

input a positive integer or a negative integer to stop the highest/lowest is:2 

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

Introduction To Constraint Databases

Authors: Peter Revesz

1st Edition

1441931554, 978-1441931559

More Books

Students also viewed these Databases questions

Question

5. Describe the visual representations, or models, of communication

Answered: 1 week ago