Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(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

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

Beginning ASP.NET 2.0 And Databases

Authors: John Kauffman, Bradley Millington

1st Edition

0471781347, 978-0471781349

More Books

Students also viewed these Databases questions

Question

What is Accounting?

Answered: 1 week ago

Question

Define organisation chart

Answered: 1 week ago

Question

What are the advantages of planning ?

Answered: 1 week ago