Question
(JAVA PROGRAMMING>>IAM USING ECLIPSE) Write a program for a robot cashier at Subway. Show a menu of three kinds of sandwich with prices. Let the
(JAVA PROGRAMMING>>IAM USING ECLIPSE)
Write a program for a robot cashier at Subway. Show a menu of three kinds of sandwich with prices. Let the user pick sandwiches until they choose to stop. Assume they then give you a twenty dollar bill. Calculate their change and print it out to the screen one piece of money at a time. If their order came to more than $20, tell them they should feel bad for wasting your time.
I'm thinking of a number between 1 and 100. The user keeps guessing until they get it right. After each wrong guess, the AI will say Higher or Lower.
Show a list of three names. Ask the user who they would like to vote for. Repeat this a maximum of 13 times, or stop when they want to quit. Afterward display which person won.
Write a vet program for the best corgi ever. Once at the start, ask for the weight and daily calorie intake required. Then begin a loop asking how many calories she eats each day. Every seven days, print her new weight. If she eats an extra 3500 calories, she gains a pound. If she is 3500 calories short, she loses a pound. She can be fractional pounds.
Count how many vowels (aeiou) are in a word the user types until they type "xxxxx".
So the one hard part and pretty much the only way to lose points here is to be too vague. Your duck can type, but is not good at programming. You need to be specific, but not just reading a program line by line. Your duck only knows C-- so you can't use any Java terms.
Every semester I get two or three people who answer all of them with "Step one, get input, step two, do program."
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