You must call the class Assignment3A and put it in a file called "Assignment3A.java", "Assignment3A.cs", or "Assignment3A.cpp" Hint: In Java and C#, you can't test if two strings are equal by using the == operator. Instead, you usually have to use something like .equals(). So, we've given you some code in the Appendix to help you out. Note, there are four possible outcomes... so make sure to use an IF...ELSE IF...ELSE statement. Again, make sure to use nested IF statements to complete this assignment. Your program should produce the following output based on different user input.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
C++
Sample Output #1:
Welcome to the KSU Bookstore!
Do you want to purchase Scrappy dolls?: No
Have a nice day!
Sample Output #2:
Welcome to the KSU Bookstore!
Do you want to purchase Scrappy dolls?: Yes
How many Scrappy dolls do you want to buy?: 0
Have a nice day!
Sample Output #3:
Welcome to the KSU Bookstore!
Do you want to purchase Scrappy dolls?: Yes
How many Scrappy dolls do you want to buy?: 3
3 Scrappy dolls cost $6.00. Thank you!
Have a nice day!
Sample Output #4:
Welcome to the KSU Bookstore!
Do you want to purchase Scrappy dolls?: Yes
How many Scrappy dolls do you want to buy?: 20
You earned a 10$ discount for buying in bulk!
20 Scrappy dolls cost $36.00. Thank you!
Have a nice day!
Assignment3B:
CILultanth: There is a popular saying to remember how many days each month ha
OLtho rest have thirty-one..."
Transcribed Image Text:Sample Output #1: Welcome to the KSU Bookstore! Do you want to purchase Scrappy dolls?: No Have a nice day! Sample Output #2: Welcome to the KSU Bookstore! Do you want to purchase Scrappy dolls?: Yes How many Scrappy dolls do you want to buy?: 0 Have a nice day! Sample Output #3: Welcome to the KSU Bookstore! Do you want to purchase Scrappy dolls?: Yes How many Scrappy dolls do you want to buy?: 3 3 Scrappy dolls cost $6.00. Thank you! Have a nice day! Sample Output #4: Welcome to the KSU Bookstore! Do you want to purchase Scrappy dolls?: Yes How many Scrappy dolls do you want to buy?: 20 You earned a 10$ discount for buying in bulk! 20 Scrappy dolls cost $36.00. Thank you! Have a nice day! Assignment3B: CILultanth: There is a popular saying to remember how many days each month ha OLtho rest have thirty-one..."
Ilving, so master it now.
Assignment3A:
Business Time! The bookstore has asked you to develop a small program to handle sales of
Scrappy plush dolls. Each doll costs 2 dollars (tax included). You will use nested IF
statements to handle the purchasing process. The general outline is as follows:
1) Ask if the user wants to purchase some Scrappy dolls
oIf "no", jump to step 5
2) Ask how many dolls the user wants to buy
o If "0", jump to step 5
3) If the user buys more than 5 dolls, apply a 10% discount automatically
4) Print out how much the total order costs
5) Print out "Have a nice day!"
You must call the class Assignment3A and put it in a file called "Assignment3A.java",
"Assignment3A.cs", or "Assignment3A.cpp"
Hint: In Java and C#, you can't test if two strings are equal by using the == operator. Instead,
you usually have to use something like .equals(). So, we've given you some code in the
Appendix to help you out. Note, there are four possible outcomes... so make sure to use an
IF...ELSE IF...ELSE statement.
Again, make sure to use nested IF statements to complete this assignment. Your program
should produce the following output based on different user input.
Sample Output #1:
Welcome to the KSU Bookstore!
Do you want to purchase Scrappy dolls?: No
Haye a nice day!
Transcribed Image Text:Ilving, so master it now. Assignment3A: Business Time! The bookstore has asked you to develop a small program to handle sales of Scrappy plush dolls. Each doll costs 2 dollars (tax included). You will use nested IF statements to handle the purchasing process. The general outline is as follows: 1) Ask if the user wants to purchase some Scrappy dolls oIf "no", jump to step 5 2) Ask how many dolls the user wants to buy o If "0", jump to step 5 3) If the user buys more than 5 dolls, apply a 10% discount automatically 4) Print out how much the total order costs 5) Print out "Have a nice day!" You must call the class Assignment3A and put it in a file called "Assignment3A.java", "Assignment3A.cs", or "Assignment3A.cpp" Hint: In Java and C#, you can't test if two strings are equal by using the == operator. Instead, you usually have to use something like .equals(). So, we've given you some code in the Appendix to help you out. Note, there are four possible outcomes... so make sure to use an IF...ELSE IF...ELSE statement. Again, make sure to use nested IF statements to complete this assignment. Your program should produce the following output based on different user input. Sample Output #1: Welcome to the KSU Bookstore! Do you want to purchase Scrappy dolls?: No Haye a nice day!
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 4 images

Blurred answer
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education