Question
1. Write pseudocode for solving the problem. Attempt to follow the conventions demonstrated in the pseudocode examples given in class. Be sure to identify the
1. Write pseudocode for solving the problem. Attempt to follow the conventions
demonstrated in the pseudocode examples given in class. Be sure to identify the inputs, outputs
and steps required to get from the input to the output. In cases where both a more abstract and a
less abstract version of pseudocode were given in lecture for some construct, you may use either
approach in your pseudocode.
2. Then, implement your pseudocode as a Java application program
Part B. Build a shopping list by having the user enter items for the list, one at-a-time, until they
enter the word done to indicate they have no more items. Output the final shopping list in a
multi-line dialogue box (one item per line).
Refer to the String class abbreviated API as needed to complete this part.
Run your program with the following inputs. Submit your pseudocode, source code, and
the output from running your program.
Run 1:
milk
eggs
bread
cheese
soda
done
Part C. For this part you will write a program that performs a count-down by 2s from a userinput
starting value, by doing the following:
1. Have the user input a positive integer starting value. Validate that they have input a
positive number, giving them as many chances as necessary to do so.
2. Count-down from the starting value by 2s, outputting one value at a time, and stopping
when the value becomes negative (see example output below).
3. Output DONE.
For example, if the user inputs a starting value of 6 your program output should look
something like the following (with each line output as a separate dialogue box):
Number is now: 6
Number is now: 4
Number is now: 2
Number is now: 0
DONE
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