Hey guys,I am in a computer systems technology course right now... but we only just started using eclipse and I am so lost.. I have written small programs such as the HelloWorld program. I was away from school for 1.5 weeks with mono and have so much to catch up on! My professors do not offer help/review sessions. This is soo hard to learn without being in those classes I missed This program is quite a bit more complicated. Can you guys give me a hand with the lines of code involved as per the following instructions? Thank you so much in advance!

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------When the Titanic embarked on her maiden voyage on April 10, 1912 there were 2,227 people on board. There were also only 20 lifeboats with an average capacity of about 59 people (maximum capacity was therefore about 20 x 59 = 1,180 people). Obviously it would have been ideal to have enough lifeboats to safely evacuate everyone on board ship! Your task is to write a Java program that will calculate the minimum number of lifeboats required to do this as well as the numbers of people who would be rescued or drowned given the number of available lifeboats. Your program should be flexible enough to work for any ship and size of lifeboat.

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Write a Java program called Lifeboats.java that will do all of the following:1. Display a title

2. Ask the user to enter the following values:a. The name of the ship (possibly including spaces like HMS Endurance) b. The number of people on board the shipc. The maximum number of people that can be carried by one lifeboat assuming all the lifeboats on the ship are the same sized. The actual number of lifeboats that are available on board the ship

3. Calculate and display the following results:a. The minimum number of lifeboats required to carry all the peopleb. The number of people that would be rescued if the available lifeboats were filled (but not beyond the number of people on board the ship) as well as the percentage that this represents of all the people on boardc. The number of people that would drown as well as the percentage that this represents of all the people on board d. If nobody drowns, then also display the number of additional people that could be carried by the lifeboats if they were all filled to capacity regardless of whether this number is greater than the number of people on board.

I apologize for not showing my first code writes. Here they are.And for future referance, I am not looking for someone to do my homework. How can I learn this language if someone does it all for me? I just need someone to help guide me. It was my bad for not being more clear with my current work in progress. Here is what I have so far.

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum