Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

$ 1 - An Appreciation ( Thank You ) E - mail You w 1 1 1 receive a thank - you email. $ 5

$1-An Appreciation (Thank You) E-mail "You w111 receive a thank-you email."
$5-Name Recognilion. "You will have your name put on a list of backers on our website."
$20-A Gif "You will receive a copy of the mobile app version of 'Cones of Dunshire',"
$50-A Git "You will receive a copy of the tabletop version of 'Cones of Dunshire'."
$100-A Git "You will receive the Founders Edition of the tabletop version of 'Cones of Dunshire'."
$150-A Gift "You will recelve the 'Cone of Dunshire" hat." 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 rickStarter.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). Do not use an if, if-else, if-else if-else statement.
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."
streamline the code (enhance readability).
eliminate redundant coding, and
Add a comment with your name, date, and program description at the top.
NOTE: the primary resources for this assignment.
HINT: tab as the primary resources regarding building-up (concatenating) a string for this assignment. constructed
An empty string ("') is a character sequence of zero characters assignment statement)!
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David M. Kroenke

1st Edition

0130086509, 978-0130086501

More Books

Students also viewed these Databases questions