Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA PROGRAMING BEGIN ( work on Eclipse) For each of these, I want an OUTLINE like in the lecture. If you write out all the

JAVA PROGRAMING BEGIN ( work on Eclipse)

For each of these, I want an OUTLINE like in the lecture. If you write out all the code, you aren't clever, you just can't follow directions.

1)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.

2)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.

3)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.

4)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.

5)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

Step: 3

blur-text-image

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 Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

Was there an effort to involve the appropriate people?

Answered: 1 week ago