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++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter1: An Overview Of Computers And Programming Languages
Section: Chapter Questions
Problem 18SA: 18. Tom and Jerry opened a new lawn service. They provide three types of services: mowing,...
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
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning