Question: in java Write a program that takes a string and an integer as input, and outputs a sentence using the input values as shown in
in java Write a program that takes a string and an integer as input, and outputs a sentence using the input values as shown in the example below. The program repeats until the input string is quit and disregards the integer input that follows.
Ex: If the input is:
apples shoes quit
the output is:
Eating apples a day keeps you happy and healthy. Eating shoes a day keeps you happy and healthy.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
