Exercise 1 Write a code to check the number in the variable (NUM1). Using the lookup table; store 'E' in the RESULT variable if it is equal to 8, store L' if it is less than 8,otherwise store 'A'.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter2: Problem Solving Using C++using
Section2.3: Data Types
Problem 5E
icon
Related questions
Question
Exercise 1
Write a code to check the number in the variable (NUM1). Using the lookup table;
store 'E' in the RESULT variable if it is equal to 8, store 'L' if it is less than
8,otherwise store 'A'.
Transcribed Image Text:Exercise 1 Write a code to check the number in the variable (NUM1). Using the lookup table; store 'E' in the RESULT variable if it is equal to 8, store 'L' if it is less than 8,otherwise store 'A'.
Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
Datatypes
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.
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning