Write out an IF-THEN-ELSE statement for the following conditions: 1. A person has credit card points and if the number of points entered > 4,999 then output “Enough points for Selection” otherwise output “Not Enough points for Selection” using Variable Points Available. 4. A customer is buying a car for $20,000 and wants to upgrade the stereo speakers for an additional $100. However, if the customer gets the extended stereo package for $250 which includes the upgraded speakers, XM radio, and upgraded visual display. Use variables CarPrice, UpgradedSpeakers and ExtendedStereo for the IF statement. Show the calculation for the total cost of the car depending on options selected.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter5: Making Decisions
Section: Chapter Questions
Problem 13RQ
icon
Related questions
icon
Concept explainers
Question

Write out an IF-THEN-ELSE statement for the following conditions: 1. A person has credit card points and if the number of points entered > 4,999 then output “Enough points for Selection” otherwise output “Not Enough points for Selection” using Variable Points Available. 4. A customer is buying a car for $20,000 and wants to upgrade the stereo speakers for an additional $100. However, if the customer gets the extended stereo package for $250 which includes the upgraded speakers, XM radio, and upgraded visual display. Use variables CarPrice, UpgradedSpeakers and ExtendedStereo for the IF statement. Show the calculation for the total cost of the car depending on options selected.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 4 images

Blurred answer
Knowledge Booster
Control Structure
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
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT