Write a program in C++ with a loop that lets the user enter a series of integers, followed by -99 to signal the end of the series. After all the numbers have been entered, the program should display the largest and smallest numbers entered. Also decide how the program should use a sentinel to quit the program. I have attached how the output should appear. Thanks so much for your help!

COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
1st Edition
ISBN:9780357392676
Author:FREUND, Steven
Publisher:FREUND, Steven
Chapter4: Financial Functions, Data Tables, And Amortization Schedules
Section: Chapter Questions
Problem 8AYK
icon
Related questions
Question
100%

Write a program in C++ with a loop that lets the user enter a series of integers, followed by -99 to signal the end of the series. After all the numbers have been entered, the program should display the largest and smallest numbers entered. Also decide how the program should use a sentinel to quit the program. I have attached how the output should appear. Thanks so much for your help!

C:\Users\laptop\Desktop\c++ 2019\Chapter 5 lesson and materials\cha5-12\D
Enter an integer (or -99 to quit): 10
Enter another integer (or -99 to quit): 20
Enter another integer (or -99 to quit): 30
Enter another integer (or -99 to quit): 40
Enter another integer (or -99 to quit): 50
Enter another integer (or -99 to quit): -99
The
The smallest number you entered was 10.
Press any key to continue
largest number you entered was 50.
Transcribed Image Text:C:\Users\laptop\Desktop\c++ 2019\Chapter 5 lesson and materials\cha5-12\D Enter an integer (or -99 to quit): 10 Enter another integer (or -99 to quit): 20 Enter another integer (or -99 to quit): 30 Enter another integer (or -99 to quit): 40 Enter another integer (or -99 to quit): 50 Enter another integer (or -99 to quit): -99 The The smallest number you entered was 10. Press any key to continue largest number you entered was 50.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Types of Loop
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage