Sadia Mehrose_INFO6066 Project One - Lifeboats F2023
.docx
keyboard_arrow_up
School
Fanshawe College *
*We aren’t endorsed by this school
Course
1021
Subject
Computer Science
Date
Feb 20, 2024
Type
docx
Pages
5
Uploaded by sadia.meh1234
Course:
INFO-6066 Coding for Test
Project:
Project #1 – Lifeboats
Due Date:
Oct. 14
th
, 2023 at 11:59 pm
Submitting:
Please see the last page for instructions.
Professor:
Shelley Lapkowski
Student Name:
Sadia Mehrose Islam___________________
Student ID#:
__1187398_______________________
How will my project be marked?
If the program fails to compile, a Mark of 0 will be entered.
This project accounts for 10% of your final mark and will be marked as follows: Marks
Available
What are the Marks Awarded For?
Mark Assigned
If the program fails to compile, a mark of 0 will be entered.
2
Correctly typed variables are created with good descriptive names to hold the input data
2
User is prompted to enter data and data is successfully read from the keyboard and assigned to the variables
2
Calculation of number of lifeboats needed is correct in all cases
2
Calculations of the number of people rescued and drowned are correct
2
Calculation of number of any additional spaces (extra capacity) is correct and only displayed if the number of people drowned is zero
2
Results are neatly displayed to the user and are complete 1
Program documentation header is present and complete
2
Good coding style including proper indentation and suitable comments
15
Total
Fanshawe College
Page 1 of 5
INFO-6066
Problem Description: Read Carefully
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.
Specifications: 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 ship
c.
The maximum number of people that can be carried by one lifeboat assuming all the lifeboats on the ship are the same size
d.
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 people
b.
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 board
c.
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. Fanshawe College
Page 2 of 5
INFO-6066
Sample Output and Calculations
:
Example 1:
If there are 800 people, and each lifeboat can carry 90 people, then we need 9 lifeboats. With
9 lifeboats up to 9 x 90 = 810 people can be carried. Note that 8 lifeboats can only carry 720 people which is not enough!
If there are 7 lifeboats available then only 7 x 90 = 630 people will be rescued (100 x 630 / 800 = 78.75%). This means 800 – 630 = 170 people will drown (100 x 170 / 800 = 21.25%).
Example 2:
If there are 800 people, and each lifeboat can carry 100 people, then we need 8 lifeboats. With 8 lifeboats up to 8 x 100 = 800 people can be rescued.
If there are 9 lifeboats available then 9 x 100 = 900 people could
be rescued, but there are only 800 people so only 800 will be saved (100%) and nobody drowns (0%).
With 9 lifeboats the excess capacity would be 900 – 800 = 100 additional people.
Fanshawe College
Page 3 of 5
INFO-6066
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
NOTE: If you choose this project you need to prepare/submit SRS and design document.
Online Lecture Scheduling Application
Project Domain/Category: Web application.
Abstract/Introduction
This application will generate the schedule of lectures for the courses being offered in a semester of an educational institute. Usually, for every semester, a lecture schedule is manually developed keeping in view the students enrolled in different courses, faculty members teaching those courses, and classrooms or labs where those lectures are delivered. It is also considered that if a student is enrolled in more than one courses, then those courses must not be scheduled on the same day same time. Same is the case with a faculty member teaching more than one courses. Similarly, a classroom or lab cannot be used for scheduling more than one courses on same day same time. In order to generate the lecture schedule, user will be required to provide list of offered courses, list of students enrolled…
arrow_forward
SUPPLIER
PRODUCT
ProductCode
ProductnName
unitPrice
SupCode
supCode
(Number, 3)
SupName
(text, 20)
АВC LLC
(Number, 10)
[Char(10)]
(>0)
1111111
Calculator
10
111
111
2222222
Notebook
2.5
777
222
ХҮX LLC
3333333
Book-AI
20
222
3333
PQR LLC
4444444
Pen
-2.0
222
222
AXL LLC
5555555
Pencil
.500
111
Eraser
.500
222
arrow_forward
Student Companion ™ is your personal academic guide that provides the following basic information for each course while a student at the USC. Courses done, grades earned, Course outline attachments, course notes etc.This is a simple application to keep track of each course you are doing/have done and can serve as a personal test timetable for the course which has final quiz, keep track of your courses that have etc. The concept is like a personal check sheet system blended with a simple quiz timetable.
This also solves a problem that often shows up when students have completed their program and need to revert back to data pertaining to their academic life from their viewpoint. Please note this does not replace a transcript, which is an official University Document.
1. Create a Class Diagram of at least six (6) major entities for your application. For entities with a large number of attributes you are allowed to limit your attributes to a max of six (6). All operations within each class…
arrow_forward
just do what you can from the project
arrow_forward
Expert Q&A
Done
create a project with at list 15 buttons based on
this database and include insert, delete and
update in visual studio
22:33
C&A PROJECT.pdf
D.O.B
NAME
Dpt ID
Dpt
GENDER
ID
Name
LOCATION
ADDRESS
EMPLOYEE
WORKS
DEPARTMENT
FOR
Number of
EMPLOYEE
CONTROLS
MANAGES
PROJECT
WORKS
ON
PROJECT
PROJECT
NAME
ID
it is a database about a security service and it has
to be in visual studio in c# language
arrow_forward
BO
File
Page 1 of 1
Home Insert Design
114 words
Layout
References Mailings Review View Help
Accessibility: Investigate
Assignment #9
9. Suppose five processes A, B, C, D and E arrive at the times indicated, and each of them is executed
for the amount of time specified against it in the table below:
Process
A
determine:
B
C
CS304 ASSIGNMENT 9 - Word
D
E
Arrival Time
0
2
5
Tell me what you want to do
9
11
For each of the following three scheduling schemes,
•
First-come-first-served (FCFS),
Round-Robin (RR) with a time quantum, q = 4
Service Time
7
4
5
4
6
(1). the finish time for each process.
(ii). the turnaround time for each process
(iii). the normalized turnaround time for each process.
(iv). the mean turnaround time for all processes
(v). the mean normalized turnaround time for all processes.
delinki asylum
F
I
+
9
+
x
100%
arrow_forward
Alreej College
Computer
Application
Student Name Student_ID
Math
En
Ahmed Omar
Huda
20f20
45
10
35
20f21
50
45
45
Muhmmed
20f22
20f23
20f24
20f25
46
20
50
Amira
50
35
50
Huda Ahemd
20
50
33
Noora Ali
33
45
46
Figure-1
1) Prepare and format your MS-Excel Document as shown above.
2) The total number of student marks for each Module during the semester needs to be calculated.
Explain how you will do it. Your answer should include cell references to indicate the cells where the
calculations will be done, the cells that will be required for the calculations, and the formula to be
used. Use Microsoft Excel to test your explanations.
3) Explain how you will calculate the Average for each students. Your answer should include cell
references to indicate the cells where the calculations will be done, the cells that will be required for
the calculations, and the formula to
be used. Use Microsoft Excel to test your
explanations.
arrow_forward
Estem.org/courses/64525/assignments/9460783?module_item_id=18078917
The following information can help you get started:
• Invitation Details: it boils down to when and where
o When: Time and date
• Where: Address
• Invitee List: Name and email
• Name: First Name, or First Name and Last Name
Email: Email address
. Other considerations:
After you complete your invitation, answer the following questions:
1. What type of data are time, date, and place? How are they different from the other data types on the
invite and guest list?
F4
A
Additional information worth including: dress code, directions, gifting, how to contact you.
. How will you know who is showing up? RSVP?
. Is there a theme to your invitation/design?
x
F5
%
F6
F7
DELL
F8
F9
ROMNA
F10
F11
PrtScr
arrow_forward
6
DO NOT COPY FROM OTHER WEBSITES
Correct and detailed answer will be Upvoted else downvoted. Thank you!
arrow_forward
Mt noy Modify the Octave script that you wrote for Task 1 to generate the
following figure. It may look difficult at first, but if you really understand the code
that you wrote for Task 1, it shouldn't be that difficult to generate the figure
below.
arrow_forward
Submission & Rubric
Description
↑
Purpose
Each module will have a group discussion that will
help you to see how the math we are studying in this
class may be applied to various majors including your
own. By actively participating in a conversation with
your classmates about these posts, you will gain a
deeper understanding of the course content and
improve your ability to express your ideas in writing.
Use these directions to guide your participation in
each discussion.
Prompt
Throughout the course, you have been exploring just
how mathematics can and is used in your major.
Share with the class at least one way that
mathematics is used in your major or explain what
you learned about how mathematics is used in your
field of study. Be sure to include your area of study in
your post.
arrow_forward
Business Rules:
Each musician at NewTalent should have a name, address, and phone number on the system. The Instruments used in the songs have a unique name, musical genre (i.e. rock, pop, hip hop), and type (i.e. string, piano, guitar). Every album recorded under the NewTalent label has a title, copyright date, format, and an album identifier. Each song recorded has a title and an author. Musicians can play several instruments, and an instrument can be played by multiple musicians. Every album contains several songs, but a song can only appear on one album. Songs are performed by one or more musicians, and a musician can perform numerous songs. Each album has one musician acting as its producer, although a musician can produce multiple albums.
Create an ERD for the above scenario that describes its business rules.
Use Crow's Foot notations and make sure to include all of the following:
All entities correctly identified with Primary key and any foreign key attributes.…
arrow_forward
File
Home
Insert
Draw
Page Layout
Formulas
Data
Review
View
Help
A Share
P Comments
14
fe
A
E
G
H
J
K
L
M
Q
R
1 Semeste Course NumbelCoure NameCredit Hours Letter Grad Grade Points
Directions
Create a spreadsheet that correctly
calculates your GPA - must use formulas for
GPA =
full credit. You need to inlcude grades for
two semesters. If you do not already have
two semesters worth of grades assume this
semesters grades and one future semester
worth of grades.
2
3
4
To calculate GPA dividing the total amount
5
of grade points earned by the total amount
of credit hours attempted. Your grade point
6
7
8
average may range from 0.0 to a 4.0.
9
Grade Points - multiply credit hours of
course by the number associated with the
3
letter grade you earned.
• A = 4
B = 3
C = 2
5
-7
D = 1
F = 0
1
Wine Sales
Cinderella's
Grades
Your GPA
+
+ 95%
arrow_forward
PYTHON PROGRAMMING ONLY PLEASE
I am doing a patient portal/record keeping system i already have the layout need help writing the code.
Here is my layout below
Menu:
View personal information
Update personal information
View medical history
Update medical history
Exit
DECISION BLOCKS
View personal information:
View patient personal information( Name, Date of Birth, Address, Phone Number)
Press Console: "You have chosen to view your personal information."
Update personal information:
Ask the patient to update personal information
Update the patient personal information
Print to the console: "You have chosen to update your personal information."
View historical medical information:
View patient medical history (medical history, surgery, medications, allergies, etc.)
Prints to console: "You have chosen to view your medical history."
Update medical history:
Prompt patient to enter updated medical information
Update the patient's medical history
Print to the console: "You have…
arrow_forward
Just draw the UML diagram
MyWellness is an -health application that allows you to monitor your health status and details.
The application also allows you to get in touch with your doctors for quick consultations and
questions, in addition to getting appointments. The application has three main users:
Administrator, Patient, and Doctor.
Patients need to have an account to interact with the application. They can register by providing a
username and a password, then proceed to create their protiles by entering intormation such as full
name, email, phone number, address, and birthdate. In addition to the regular profile, patients have
a medical profile that contains the following information: height, weight, insurance (yes/no),
allergies, disabilities, and different previous medical conditions. Patients also have access to the
history of visits; they can see the general (for all doctors) history and the history per doctor. In this
history, they see the date of the visit and the…
arrow_forward
ER diagram for the following use cases:
Intro/Homepage: This first case will be used to give the user the first look at what the whole project is about. They see the beginning stage and interact with all the links to the movies, characters, and descriptions.
Browse MCU Shows: This case will be for the customers and users to be able to navigate through the feature and see what they are specifically. They can use it to find which exact Marvel Cinematic Universe movie/show they wish to watch and see what character they like.
View MCU Movie Details: This case will be for users to get more information about specific Marvel movies/shows. It will give more details like the cast, the run time, the review score, the characters involved and etc.
arrow_forward
user stories
I need 5 different user stories about Online Crime Management for my project
For example, user stories might look like that:
I don't wanna just a police officer it is just an exampleAs a police officer, i would like to be able to check for past records with an ID number(like a passport), so that I don’t have to use the name of the person
second example
“As a [persona], I [want to], [so that].”Breaking this down:"As a [persona]": Who are we building this for? We’re not just after a job title, we’re after the persona of the person. Max. Our team should have a shared understanding of who Max is. We’ve hopefully interviewed plenty of Max’s. We understand how that person works, how they think and what they feel. We have empathy for Max.“Wants to”: Here we’re describing their intent — not the features they use. What is it they’re actually trying to achieve? This statement should be implementation free — if you’re describing any part of the UI and not the user goal, you're…
arrow_forward
Computer Science
Create a spreadsheet similar to the NOAA_Solar_Calculations_year spreadsheet but do the calculations using the equations shown in the PowerPoints. Have the spreadsheet accept as input the Latitude, Longitude, Time Zone, and Local Time. You will not need to know the year, but assume it is not a leap year. Make the calculations for the local time entered for every day of the year. Make sure your spreadsheet calculates at least the following variables: declination, hour angle, altitude angle (elevation angle), zenith angle, azimuth angle, sunrise, sunset, equation of time, local time for sunrise, sunset, and solar noon. Enter the information for Lafayette, LA at 6 AM local time.
arrow_forward
ObjectiveTo develop a simple database application using modern programming tools.ToolsStudents should use Visual studio for their codes and They can also choose either one of the database management systems SQLite, MySQL, PostgreSQL, and Microsoft SQL Server.GuidelinesEach student should agree to work with one student from the class as a teammate. Otherwise, the student works alone and gets penalized by getting at most 75% of the project grade. Teams should work independently toward the same project goal. Each team has to prepare a report presenting all the details about the work done and the job division. The number of pages should not pass twenty.Description of the ProjectThe project is to develop a simple university management system. The application should let three different kinds of users to work, namely, the student, the instructor, and the faculty coordinator. Users should have the following functionalities in the system:Faculty coordinator Log in to the system Add a new…
arrow_forward
Using C# in Visual Studio:
Create the graphical user interfaces as shown below. Provide appropriate names for all the controls.
arrow_forward
Instructions are on the image. Using
ANDROID STUDIO
please provide the java code screenshot and
5 output of the application. Thank you
arrow_forward
ObjectiveTo develop a simple database application using modern programming tools.ToolsStudents should use python as their main development platform. They can also choose either one of the database management systems SQLite, MySQL, PostgreSQL, and Microsoft SQL Server.GuidelinesEach student should agree to work with one student from the class as a teammate. Otherwise, the student works alone and gets penalized by getting at most 75% of the project grade. Teams should work independently toward the same project goal. Each team has to prepare a report presenting all the details about the work done and the job division. The number of pages should not pass twenty.Description of the ProjectThe project is to develop a simple university management system. The application should let three different kinds of users to work, namely, the student, the instructor, and the faculty coordinator. Users should have the following functionalities in the system:Faculty coordinator Log in to the system Add…
arrow_forward
SQL Injection “OWASP stands for the Open Web Application Security Project, an online community that produces articles, methodologies, documentation, tools, and technologies in the field of web application security.’ – OWASP Foundation, 2020. “The OWASP Top 10 is a standard awareness document for developers and web application security. It represents a broad consensus about the most critical security risks to web applications.” – OWASP Foundation, 2020. “Globally recognized by developers as the first step towards more secure coding.” – OWASP Foundation, 2020.
SQL injection is a prominent vulnerability that results in drastic damage to companies around the world.
1 Discuss, with examples, the concept of SQL injection. 2 Explain, with examples, any two defences against SQL injection that could be employed by database developers.
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Related Questions
- NOTE: If you choose this project you need to prepare/submit SRS and design document. Online Lecture Scheduling Application Project Domain/Category: Web application. Abstract/Introduction This application will generate the schedule of lectures for the courses being offered in a semester of an educational institute. Usually, for every semester, a lecture schedule is manually developed keeping in view the students enrolled in different courses, faculty members teaching those courses, and classrooms or labs where those lectures are delivered. It is also considered that if a student is enrolled in more than one courses, then those courses must not be scheduled on the same day same time. Same is the case with a faculty member teaching more than one courses. Similarly, a classroom or lab cannot be used for scheduling more than one courses on same day same time. In order to generate the lecture schedule, user will be required to provide list of offered courses, list of students enrolled…arrow_forwardSUPPLIER PRODUCT ProductCode ProductnName unitPrice SupCode supCode (Number, 3) SupName (text, 20) АВC LLC (Number, 10) [Char(10)] (>0) 1111111 Calculator 10 111 111 2222222 Notebook 2.5 777 222 ХҮX LLC 3333333 Book-AI 20 222 3333 PQR LLC 4444444 Pen -2.0 222 222 AXL LLC 5555555 Pencil .500 111 Eraser .500 222arrow_forwardStudent Companion ™ is your personal academic guide that provides the following basic information for each course while a student at the USC. Courses done, grades earned, Course outline attachments, course notes etc.This is a simple application to keep track of each course you are doing/have done and can serve as a personal test timetable for the course which has final quiz, keep track of your courses that have etc. The concept is like a personal check sheet system blended with a simple quiz timetable. This also solves a problem that often shows up when students have completed their program and need to revert back to data pertaining to their academic life from their viewpoint. Please note this does not replace a transcript, which is an official University Document. 1. Create a Class Diagram of at least six (6) major entities for your application. For entities with a large number of attributes you are allowed to limit your attributes to a max of six (6). All operations within each class…arrow_forward
- just do what you can from the projectarrow_forwardExpert Q&A Done create a project with at list 15 buttons based on this database and include insert, delete and update in visual studio 22:33 C&A PROJECT.pdf D.O.B NAME Dpt ID Dpt GENDER ID Name LOCATION ADDRESS EMPLOYEE WORKS DEPARTMENT FOR Number of EMPLOYEE CONTROLS MANAGES PROJECT WORKS ON PROJECT PROJECT NAME ID it is a database about a security service and it has to be in visual studio in c# languagearrow_forwardBO File Page 1 of 1 Home Insert Design 114 words Layout References Mailings Review View Help Accessibility: Investigate Assignment #9 9. Suppose five processes A, B, C, D and E arrive at the times indicated, and each of them is executed for the amount of time specified against it in the table below: Process A determine: B C CS304 ASSIGNMENT 9 - Word D E Arrival Time 0 2 5 Tell me what you want to do 9 11 For each of the following three scheduling schemes, • First-come-first-served (FCFS), Round-Robin (RR) with a time quantum, q = 4 Service Time 7 4 5 4 6 (1). the finish time for each process. (ii). the turnaround time for each process (iii). the normalized turnaround time for each process. (iv). the mean turnaround time for all processes (v). the mean normalized turnaround time for all processes. delinki asylum F I + 9 + x 100%arrow_forward
- Alreej College Computer Application Student Name Student_ID Math En Ahmed Omar Huda 20f20 45 10 35 20f21 50 45 45 Muhmmed 20f22 20f23 20f24 20f25 46 20 50 Amira 50 35 50 Huda Ahemd 20 50 33 Noora Ali 33 45 46 Figure-1 1) Prepare and format your MS-Excel Document as shown above. 2) The total number of student marks for each Module during the semester needs to be calculated. Explain how you will do it. Your answer should include cell references to indicate the cells where the calculations will be done, the cells that will be required for the calculations, and the formula to be used. Use Microsoft Excel to test your explanations. 3) Explain how you will calculate the Average for each students. Your answer should include cell references to indicate the cells where the calculations will be done, the cells that will be required for the calculations, and the formula to be used. Use Microsoft Excel to test your explanations.arrow_forwardEstem.org/courses/64525/assignments/9460783?module_item_id=18078917 The following information can help you get started: • Invitation Details: it boils down to when and where o When: Time and date • Where: Address • Invitee List: Name and email • Name: First Name, or First Name and Last Name Email: Email address . Other considerations: After you complete your invitation, answer the following questions: 1. What type of data are time, date, and place? How are they different from the other data types on the invite and guest list? F4 A Additional information worth including: dress code, directions, gifting, how to contact you. . How will you know who is showing up? RSVP? . Is there a theme to your invitation/design? x F5 % F6 F7 DELL F8 F9 ROMNA F10 F11 PrtScrarrow_forward6 DO NOT COPY FROM OTHER WEBSITES Correct and detailed answer will be Upvoted else downvoted. Thank you!arrow_forward
- Mt noy Modify the Octave script that you wrote for Task 1 to generate the following figure. It may look difficult at first, but if you really understand the code that you wrote for Task 1, it shouldn't be that difficult to generate the figure below.arrow_forwardSubmission & Rubric Description ↑ Purpose Each module will have a group discussion that will help you to see how the math we are studying in this class may be applied to various majors including your own. By actively participating in a conversation with your classmates about these posts, you will gain a deeper understanding of the course content and improve your ability to express your ideas in writing. Use these directions to guide your participation in each discussion. Prompt Throughout the course, you have been exploring just how mathematics can and is used in your major. Share with the class at least one way that mathematics is used in your major or explain what you learned about how mathematics is used in your field of study. Be sure to include your area of study in your post.arrow_forwardBusiness Rules: Each musician at NewTalent should have a name, address, and phone number on the system. The Instruments used in the songs have a unique name, musical genre (i.e. rock, pop, hip hop), and type (i.e. string, piano, guitar). Every album recorded under the NewTalent label has a title, copyright date, format, and an album identifier. Each song recorded has a title and an author. Musicians can play several instruments, and an instrument can be played by multiple musicians. Every album contains several songs, but a song can only appear on one album. Songs are performed by one or more musicians, and a musician can perform numerous songs. Each album has one musician acting as its producer, although a musician can produce multiple albums. Create an ERD for the above scenario that describes its business rules. Use Crow's Foot notations and make sure to include all of the following: All entities correctly identified with Primary key and any foreign key attributes.…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageMicrosoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,Np Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage