JAVA Homework 4

JAVA Homework 4

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper
  • Due Friday by 11:59pm
  • Points 20
  • Submitting a file upload
  • File Types java

Do Business P4.29 and Business P4.31 on page 194 of your textbook.

is terminated by another zero value.
done
– Business P4.29 Your company has shares of stock it would like to sell when their value exceeds a
certain target price. Write a program that reads the target price and then reads the
current stock price until it is at least the target price. Your program should use a
Scanner to read a sequence of double values from standard input. Once the minimum
is reached, the program should report that the stock price exceeds the target price.
Business P4.31 You need to control the number of people who can be in an oyster bar at the same
time. Groups of people can always leave the bar, but a group cannot enter the bar
if they would make the number of people in the bar exceed the maximum of 100
occupants. Write a program that reads the sizes of the groups that arrive or depart.
Use negative numbers for departures. After each input, display the current number
of occupants. As soon as the bar holds the maximum number of people, report that
the bar is full and exit the program.

Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER