score is an int variable, consider the following if statement: if (score >= 90), cout << "Discount = 10%"; What is the output if the value of score is 95? What is the output if the value of score is 85?

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter5: Making Decisions
Section: Chapter Questions
Problem 19RQ
icon
Related questions
Question
Can anyone help me with this question
A Question Completion Status:
10 11 12 130
QUESTION 19
score is an int variable, consider the following if statement.
if (score >= 90).
cout << "Discount = 10%"
What is the output if the value of score is 95?
What is the output if the value of score is 85?
Transcribed Image Text:A Question Completion Status: 10 11 12 130 QUESTION 19 score is an int variable, consider the following if statement. if (score >= 90). cout << "Discount = 10%" What is the output if the value of score is 95? What is the output if the value of score is 85?
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
New Perspectives on HTML5, CSS3, and JavaScript
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage