This Java program replicates the popular website KickStarter.com. Specifically, the project being considered is a tabletop game
Question:
This Java program replicates the popular website KickStarter.com. Specifically, the project being considered is a tabletop game called "The Cones of Dunshire". The funding follows the following model:
$1 - An Appreciation (Thank You) E-mail: "You will receive a thank-you email."
$5 - Name Recognition: "You will have your name put on a list of backers on our website."
$20 - A Gift: "You will receive a copy of the mobile app version of 'Cones of Dunshire'."
$50 - A Gift: "You will receive a copy of the tabletop version of 'Cones of Dunshire'."
$100 - A Gift: "You will receive the Founders Edition of the tabletop version of 'Cones of Dunshire'."
$150 - A Gift: "You will receive the 'Cone of Dunshire' hat."
The way that this KickStarter is configured will award all backers with all the rewards at the lower levels, too. For instance, if someone contributes $5, they will receive both the name on their website (the reward for a $5 backing) as well as the email.
If a backer contributes $100, then they will receive the rewards for the $100 level, the $50 level, the $20 level, the $5 level, and the $1 level.
SPECIFICATIONS:
The starter code has been provided for this lab.
File name: KickStarter.java
The starter code does contain questions at the bottom that must be addressed.
The starter code does contain formatting mistakes (including outside the method that students must add code) that must be addressed.
The code to complete the task should be in a separate method that is called by the main method.
A switch-statement is required to display the reward(s).
The switch-statement must use a String object to build-up (concatenate) the "acknowledgement-statement(s)"; the switch-statement must not include a print-statement.
The last line of this program must be "Thanks for backing 'Cones of Dunshire'."
The only valid donations are the discrete values of $1, $5, $20, $50, $100, and $150; any other amount must result in the following error message: "You did not enter a valid amount."
Consider initializing the String object that stores the "acknowledgement-statement(s)" with an empty string ("") or a carriage return because the purpose of the switch-statement is to build-up (concatenate) potentially a series of messages; in order to build-up (concatenate) upon a string, the string must be initialized to a value (an empty string ("") rather than simply constructed.
An empty string ("") is a character sequence of zero characters.
SAMPLE OUTPUT:
=======================
Welcome to Kickstarter!
How much would you like to contribute to the 'Cones of Dunshire' project? 5
You will have your name put on a list of backers on our website. You will receive a thank-you email. Thanks for backing 'Cones of Dunshire'.
==========
Welcome to Kickstarter!
How much would you like to contribute to the 'Cones of Dunshire' project? 20
You will receive a copy of the mobile app version of 'Cones of Dunshire'. You will have your name put on a list of backers on our website. You will receive a thank-you email.
Thanks for backing 'Cones of Dunshire'.
==========
Welcome to Kickstarter!
How much would you like to contribute to the 'Cones of Dunshire' project? 4
You did not enter a valid amount.
Thanks for backing 'Cones of Dunshire'.
Accounting Information Systems
ISBN: 978-0133428537
13th edition
Authors: Marshall B. Romney, Paul J. Steinbart