Question
Create a C++ Code to represent the logic of your program that: Asks the user how many Darth Vader Check Print Silk Ties they want
Create a C++ Code to represent the logic of your program that:
Asks the user how many Darth Vader Check Print Silk Ties they want to buy. Each Darth Vader Check Print Silk Tie costs the user $64.99.
Calculate how much the user will spend. If the user spends over $200.00, they are a big spender. You will set the value of a character variable to indicate whether they are a big spender or not.
Display a message stating how much the user spent and if they are a big spender or not. Evaluate the value of your big spender variable to decide which message you will display.
You do not need to have any modules other than the main module in your program.
Your program will have variables to hold the following information:
quantity of Darth Vader Check Print Silk Ties user wants to buy
total amount user spends on Darth Vader Check Print Silk Ties
whether they are a big spender or not (Y = yes, N = no)
Your program will have a named constant to hold the following information:
cost of each Darth Vader Check Print Silk Tie
THIS IS THE PSEUDOCODE I HAVE
Main module()
Declare int numTies
Constant int perTie = 64.99
Display How many Darth Vader Check Print Silk Ties do you want to buy?
Input numTies
totalCost = numTies * perTie
If totalCost >= 200
bigSpender = Y
Else if total cost < 200
bigSpender = N
End if
If bigSpender == Y
Display User is a big spender and spent totalCost
Else if bigSpender ==N
Display User is not a big spender and spent totalCost
End if
End module
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started