Question
I want the java programming code for these problems 1. The Jumpin Jive coffee shop charges $2.00 for a cup of coffee, and offers the
I want the java programming code for these problems
1. The Jumpin Jive coffee shop charges $2.00 for a cup of coffee, and offers the add-ins shown in Table 6-2. Product Price ($) Whipped cream 0.89 Cinnamon 0.25 Chocolate sauce 0.59 Amaretto 1.50 Irish whiskey 1.75 Table 6-2 Add-in list for Jumpin Jive coffee shop Design the logic for an application that allows a user to enter ordered add-ins continuously until a sentinel value is entered. After each item, display its price or the message Sorry, we do not carry that as output. After all items have been entered, display the total price for the order. 2. Create the logic for an application that contains an array of 10 multiple-choice questions related to your favorite hobby. Each question contains three answer choices. Also create a parallel array that holds the correct answer to each questionA, B, or C. Display each question and verify that the user enters only A, B, or C as the answerif not, keep prompting the user until a valid response is entered. If the user responds to a question correctly, display Correct!; otherwise, display The correct answer is and the letter of the correct answer. After the user answers all the questions, display the number of correct and incorrect answers. 3. Design the logic for the game Hangman, in which the user guesses letters in a hidden word. Store the letters of a word in an array of characters. Display a dash for each missing letter. Allow the user to continuously guess a letter until all the letters in the word are guessed correctly. As the user enters each guess, display the word again, filling in the guess if it was correct. For example, if the hidden word is computer, first display a series of eight dashes: --------. After the user guesses p, the display becomes ---p---. Make sure that when a user makes a correct guess, all the matching letters are filled in. For example, if the word is banana and the user guesses a, all three a characters should be filled in.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Problem 1 Jumpin Jive Coffee Shop Code Explanation This Java code continuously asks the user for addins for their coffee It calculates the total cost and displays each items price or informs if it is ...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