This document describes a final programming project assignment to analyze passenger data from the Titanic. Students are instructed to write a Java application that reads a data file containing Titanic passenger information and generates statistical results and lists. The application must provide functionality such as total passenger counts, survival rates by class and gender, and lists of passengers meeting certain criteria. It must also include menus, input validation, and output timing. Students are graded based on their program's design, functionality, testing, and adherence to coding style guidelines.
1 Final Project This assignment demonstrates your u.docxmercysuttle
1
Final Project
This assignment demonstrates your understanding of the concepts from the CMIS 141 class. This
homework consists of 1 programming assignment worth 25 points.
Before attempting this project, be sure you have completed all of the reading assignments, hands-on
labs, discussions, and assignments to date.
1. (25 points) Design a Java application that will read a file containing data related to the
passengers on the Titanic. The description of the file is shown below. The application should
provide statistical results on the passengers including:
a. Total number of passengers on the Titanic
b. Total number of passengers who perished on the Titanic
c. Total number of Passengers who survived the sinking of the Titanic
d. Number of passengers who survived the sinking of the Titanic as a function of the
passenger class (e.g. 1,2,3)
e. Number of passengers who survived the sinking of the Titanic as a function of the
passenger gender (e.g., male, female)
f. A list of the names of passengers who paid greater than $200 for their tickets
g. A list of the names of passengers who were less than 10 years old who survived the
sinking of the Titanic
h. A list of the names of passengers who were less than 10 years old who perished on the
Titanic
i. The count of the number of passengers as a function of the first letter of their last name.
(e.g., A: 13, B:33 …)
j. Additional statistical results you add to enhance the functionality
The following are some design criteria and specific requirements that need to be addressed:
a. Use command line arguments to send in the name of the Titanic file.
b. Use a 2D array to store the Titanic data. (Hint: You will probably need to store the array
as String values and then convert to other types as needed since some data is null)
c. You should create at least 2 Java classes – Titanic and TestTitanic. You are welcome to
create additional classes if you want to further separate the functionality.
d. You should create separate methods for each of the required functionality. (e.g.
getTotalPassengers() will return the total number of passengers on the Titanic.)
e. A user-friendly and well-organized menu should be used for users to select which data
to return. A sample menu is shown in run example. You are free to enhance your design
and you should add additional menu items and functionality.
f. The menu system should be displayed at the command prompt, and continue to
redisplay after results are returned or until Q is selected. If a user enters an invalid menu
item, the system should redisplay the menu with a prompt asking them to enter a valid
menu selection
g. The application should keep track of the elapsed time (in seconds) between once the
application starts and when the user quits the program. After the program is exited, the
2
application should provide a prompt thanking the user for trying the Titanic program
and providing the total tim ...
FOR MORE CLASSES VISIT
tutorialoutletdotcom
NameFirstNamePhoneNumberTranslator.java
Coin.java
LastNameFirstNameCoinDriver.java
ModifiedCoin.java Note 1: Unless otherwise mentioned, you are asked to upload ONLY your java source files through
blackboard. Email submission is not accepted, because of confusion in grading.
The best unix shell scripting interview questions 2018 learn now!mia avery
A script executed by name is not run in current process (a child process is created to run the script), so this method is suitable to be used only if the environment variables and globally defined aliases (in $HOME/.cshrc) should be known to the script.
1 Final Project This assignment demonstrates your u.docxmercysuttle
1
Final Project
This assignment demonstrates your understanding of the concepts from the CMIS 141 class. This
homework consists of 1 programming assignment worth 25 points.
Before attempting this project, be sure you have completed all of the reading assignments, hands-on
labs, discussions, and assignments to date.
1. (25 points) Design a Java application that will read a file containing data related to the
passengers on the Titanic. The description of the file is shown below. The application should
provide statistical results on the passengers including:
a. Total number of passengers on the Titanic
b. Total number of passengers who perished on the Titanic
c. Total number of Passengers who survived the sinking of the Titanic
d. Number of passengers who survived the sinking of the Titanic as a function of the
passenger class (e.g. 1,2,3)
e. Number of passengers who survived the sinking of the Titanic as a function of the
passenger gender (e.g., male, female)
f. A list of the names of passengers who paid greater than $200 for their tickets
g. A list of the names of passengers who were less than 10 years old who survived the
sinking of the Titanic
h. A list of the names of passengers who were less than 10 years old who perished on the
Titanic
i. The count of the number of passengers as a function of the first letter of their last name.
(e.g., A: 13, B:33 …)
j. Additional statistical results you add to enhance the functionality
The following are some design criteria and specific requirements that need to be addressed:
a. Use command line arguments to send in the name of the Titanic file.
b. Use a 2D array to store the Titanic data. (Hint: You will probably need to store the array
as String values and then convert to other types as needed since some data is null)
c. You should create at least 2 Java classes – Titanic and TestTitanic. You are welcome to
create additional classes if you want to further separate the functionality.
d. You should create separate methods for each of the required functionality. (e.g.
getTotalPassengers() will return the total number of passengers on the Titanic.)
e. A user-friendly and well-organized menu should be used for users to select which data
to return. A sample menu is shown in run example. You are free to enhance your design
and you should add additional menu items and functionality.
f. The menu system should be displayed at the command prompt, and continue to
redisplay after results are returned or until Q is selected. If a user enters an invalid menu
item, the system should redisplay the menu with a prompt asking them to enter a valid
menu selection
g. The application should keep track of the elapsed time (in seconds) between once the
application starts and when the user quits the program. After the program is exited, the
2
application should provide a prompt thanking the user for trying the Titanic program
and providing the total tim ...
FOR MORE CLASSES VISIT
tutorialoutletdotcom
NameFirstNamePhoneNumberTranslator.java
Coin.java
LastNameFirstNameCoinDriver.java
ModifiedCoin.java Note 1: Unless otherwise mentioned, you are asked to upload ONLY your java source files through
blackboard. Email submission is not accepted, because of confusion in grading.
The best unix shell scripting interview questions 2018 learn now!mia avery
A script executed by name is not run in current process (a child process is created to run the script), so this method is suitable to be used only if the environment variables and globally defined aliases (in $HOME/.cshrc) should be known to the script.
FellowBuddy.com is a platform which has been setup with a simple vision, keeping in mind the dynamic requirements of students.
Our Vision & Mission - Simplifying Students Life
Our Belief - “The great breakthrough in your life comes when you realize it, that you can learn anything you need to learn; to accomplish any goal that you have set for yourself. This means there are no limits on what you can be, have or do.”
Like Us - https://www.facebook.com/FellowBuddycom-446240585585480
· Assignment 1. Linear Programming Case StudyYour instruct.docxLynellBull52
· Assignment 1. Linear Programming Case Study
Your instructor will assign a linear programming project for this assignment according to the following specifications.
It will be a problem with at least three (3) constraints and at least two (2) decision variables. The problem will be bounded and feasible. It will also have a single optimum solution (in other words, it won’t have alternate optimal solutions). The problem will also include a component that involves sensitivity analysis and the use of the shadow price.
You will be turning in two (2) deliverables, a short writeup of the project and the spreadsheet showing your work.
Writeup.
Your writeup should introduce your solution to the project by describing the problem. Correctly identify what type of problem this is. For example, you should note if the problem is a maximization or minimization problem, as well as identify the resources that constrain the solution. Identify each variable and explain the criteria involved in setting up the model. This should be encapsulated in one (1) or two (2) succinct paragraphs.
After the introductory paragraph, write out the L.P. model for the problem. Include the objective function and all constraints, including any non-negativity constraints. Then, you should present the optimal solution, based on your work in Excel. Explain what the results mean.
Finally, write a paragraph addressing the part of the problem pertaining to sensitivity analysis and shadow price.
Excel.
As previously noted, please set up your problem in Excel and find the solution using Solver. Clearly label the cells in your spreadsheet. You will turn in the entire spreadsheet, showing the setup of the model, and the results.
Below is the grading rubric for this assignment.
Your work will be graded according to the following rubric.
Points: 110
Assignment 1: Linear Programming Case Study
Criteria
Unacceptable
Below 60% F
Meets Minimum Expectations
60-69% D
Fair
70-79% C
Proficient
80-89% B
Exemplary
90-100% A
Explain what type of problem this is and the approach you are taking (20%)
Did not explain what type of problem this is and the approach taken, or did so insufficiently.
Insufficiently explained what type of problem this is and the approach taken
Partially explained what type of problem this is and the approach taken
Satisfactorily explained what type of problem this is and the approach taken
Thoroughly explained what type of problem this is and the approach taken
Objective function specified correctly in writeup (10%)
Objective function is specified incorrectly, with both coefficients incorrect or missing.
Objective function is specified, but one (1) coefficient is incorrect.
Coefficients for objective function are correct, but whether this is a max or min problem is incorrect.
Objective function is specified correctly.
Constraints are specified correctly in writeup (10%)
Constraints are specified incorrectly or missing.
Some constraints are correctly specified.
Most co.
Article link httpiveybusinessjournal.compublicationmanaging-.docxfredharris32
Article link: http://iveybusinessjournal.com/publication/managing-global-risk-to-seize-competitive-advantage/
Requirements: Write one summary and study note both no longer than one pages should include all point of article. Then do a PPT and write a presenting paper only for 5 minutes.
Groups of students will create and offer two MS PowerPoint presentation summarizing the main points of one of the readings for this course along with a one page handout for the students in the class. The aim of the presentations and the handouts is to provide the audience with the main ideas of the article and study notes. Groups will bring to class enough copies of the handout for each student in the class. The handout should list the name of the author, the title of the article, the title of the journal, and the publication date and page numbers along with a summary of its main points. Please do not exceed one page for this material.
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.StringTokenizer;
/**
* Read a .dat file and reverse it.
*/
public class Reverse {
public static void main(String[]args) {
if (args.length != 3) {
System.err.println(" Incorrect number of arguments");
System.err.println(" Usage: ");
System.err.
println("\tjava Reverse <stack type> <input file> <output file>");
System.exit(1);
}
boolean useList = true;
if (args[0].compareTo("list")==0)
useList = true;
else if (args[0].compareTo("array")==0)
useList = false;
else {
System.err.println("\tSaw "+args[0]+" instead of list or array as first argument");
System.exit(1);
}
try {
//
// Set up the input file to read, and the output file to write to
//
BufferedReader fileIn =
new BufferedReader(new FileReader(args[1]));
PrintWriter fileOut =
new PrintWriter(new
BufferedWriter(new FileWriter(args[2])));
//
// Read the first line of the .dat file to get sample rate.
// We want to store the sample rate value in a variable,
// but we can ignore the "; Sample Rate" part of the line.
// Step through the first line one token (word) at a time
// using the StringTokenizer. The fourth token is the one
// we want (the sample rate).
//
StringTokenizer str;
String oneLine;
int sampleRate;
String strJunk;
oneLine = fileIn.readLine();
str = new StringTokenizer(oneLine);
strJunk = str.nextToken(); // Read in semicolon
strJunk = str.nextToken(); // Read in "Sample"
strJunk = str.nextToken(); // Read in "Rate"
// ...
1 Midterm Preview Time allotted 50 minutes CS 11.docxhoney725342
1
Midterm Preview
Time allotted: 50 minutes
CS 110, Programming Fundamentals I
Central Washington University
Computer Science
Instructions
There are five sections on this exam that contain 24 required questions, a sixth section that contains extra
credit questions, and a last, seventh section, with supplementary information that may be helpful in answering
some of the required questions. This midterm is worth 100 points. Each question in a section is worth the points
indicated at the beginning of the section.
• Pace yourself
• Do not spend too much time on any one question
• Partial credit will be given, if warranted
• Partial credit will NOT be given on the extra credit questions, and points will NOT be taken off for
incorrectly answering an extra credit question
This exam is a closed book, closed notes, no IPhones, no Internet, etc. exam. All that you need is a pen or
pencil.
Name (Print)
Honor Code Statement: I pledge that this submission is solely my work, and that I have neither
given to, nor received help from anyone.
Signature:
Section Question Type Question Numbers Points Possible Points Scored
I True / False 1-10 20
II Multiple Choice 11-15 20
III Find the Error 16 20
IV Short Answer 17-22 30
V One or More Answers 23-24 10
Total 100
VI Extra Credit
Total Including Extra Credit
2
Section I: True/False Each question is worth 2 points; no partial credit given
Circle either True or False.
1. True / False The following is a syntactically correct variable declaration and assignment
statement:
double int = 2.0;
2.
True / False
The diagram in Figure 1a is the decision structure logic of the Java statements in
Figure 1b.
if (Condition_1){
if (Condition_2){
Statement_B;
}else{
Statement_C;
}
}
if (! Condition_1){
Statement_A;
}
Figure 1a Figure 1b
3. True / False Java is a case sensitive programming language.
4. True / False Assuming that letter has been declared as a variable of type char, the below
statement is syntactically correct:
letter = “a”;
5. True / False For the logical AND operator, &&, which connects two boolean expressions, both
expressions must be false for the overall expression to be false.
6. True / False The below two pieces of code output the same thing to the console:
int someVariable = 0;
System.out.println(“Output : “ + someVariable);
int someVar1 = 1, someVar2 = 2;
System.out.println(“Output : “ + someVar1 / someVar2);
7. True / False Syntax errors are mistakes that the programmer has made that violate the rules of the
programming language.
3
8. True / False The following Java code is syntactically incorrect:
Scanner keyBoard = new Scanner(System.in);
int someValue = keyBoard.nextInt();
switch (someValue){
case 1:
case 2:
case 3:
System.out.println("Input is 1 or 2 or 3.");
break;
default:
Syst ...
FellowBuddy.com is a platform which has been setup with a simple vision, keeping in mind the dynamic requirements of students.
Our Vision & Mission - Simplifying Students Life
Our Belief - “The great breakthrough in your life comes when you realize it, that you can learn anything you need to learn; to accomplish any goal that you have set for yourself. This means there are no limits on what you can be, have or do.”
Like Us - https://www.facebook.com/FellowBuddycom-446240585585480
· Assignment 1. Linear Programming Case StudyYour instruct.docxLynellBull52
· Assignment 1. Linear Programming Case Study
Your instructor will assign a linear programming project for this assignment according to the following specifications.
It will be a problem with at least three (3) constraints and at least two (2) decision variables. The problem will be bounded and feasible. It will also have a single optimum solution (in other words, it won’t have alternate optimal solutions). The problem will also include a component that involves sensitivity analysis and the use of the shadow price.
You will be turning in two (2) deliverables, a short writeup of the project and the spreadsheet showing your work.
Writeup.
Your writeup should introduce your solution to the project by describing the problem. Correctly identify what type of problem this is. For example, you should note if the problem is a maximization or minimization problem, as well as identify the resources that constrain the solution. Identify each variable and explain the criteria involved in setting up the model. This should be encapsulated in one (1) or two (2) succinct paragraphs.
After the introductory paragraph, write out the L.P. model for the problem. Include the objective function and all constraints, including any non-negativity constraints. Then, you should present the optimal solution, based on your work in Excel. Explain what the results mean.
Finally, write a paragraph addressing the part of the problem pertaining to sensitivity analysis and shadow price.
Excel.
As previously noted, please set up your problem in Excel and find the solution using Solver. Clearly label the cells in your spreadsheet. You will turn in the entire spreadsheet, showing the setup of the model, and the results.
Below is the grading rubric for this assignment.
Your work will be graded according to the following rubric.
Points: 110
Assignment 1: Linear Programming Case Study
Criteria
Unacceptable
Below 60% F
Meets Minimum Expectations
60-69% D
Fair
70-79% C
Proficient
80-89% B
Exemplary
90-100% A
Explain what type of problem this is and the approach you are taking (20%)
Did not explain what type of problem this is and the approach taken, or did so insufficiently.
Insufficiently explained what type of problem this is and the approach taken
Partially explained what type of problem this is and the approach taken
Satisfactorily explained what type of problem this is and the approach taken
Thoroughly explained what type of problem this is and the approach taken
Objective function specified correctly in writeup (10%)
Objective function is specified incorrectly, with both coefficients incorrect or missing.
Objective function is specified, but one (1) coefficient is incorrect.
Coefficients for objective function are correct, but whether this is a max or min problem is incorrect.
Objective function is specified correctly.
Constraints are specified correctly in writeup (10%)
Constraints are specified incorrectly or missing.
Some constraints are correctly specified.
Most co.
Article link httpiveybusinessjournal.compublicationmanaging-.docxfredharris32
Article link: http://iveybusinessjournal.com/publication/managing-global-risk-to-seize-competitive-advantage/
Requirements: Write one summary and study note both no longer than one pages should include all point of article. Then do a PPT and write a presenting paper only for 5 minutes.
Groups of students will create and offer two MS PowerPoint presentation summarizing the main points of one of the readings for this course along with a one page handout for the students in the class. The aim of the presentations and the handouts is to provide the audience with the main ideas of the article and study notes. Groups will bring to class enough copies of the handout for each student in the class. The handout should list the name of the author, the title of the article, the title of the journal, and the publication date and page numbers along with a summary of its main points. Please do not exceed one page for this material.
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.StringTokenizer;
/**
* Read a .dat file and reverse it.
*/
public class Reverse {
public static void main(String[]args) {
if (args.length != 3) {
System.err.println(" Incorrect number of arguments");
System.err.println(" Usage: ");
System.err.
println("\tjava Reverse <stack type> <input file> <output file>");
System.exit(1);
}
boolean useList = true;
if (args[0].compareTo("list")==0)
useList = true;
else if (args[0].compareTo("array")==0)
useList = false;
else {
System.err.println("\tSaw "+args[0]+" instead of list or array as first argument");
System.exit(1);
}
try {
//
// Set up the input file to read, and the output file to write to
//
BufferedReader fileIn =
new BufferedReader(new FileReader(args[1]));
PrintWriter fileOut =
new PrintWriter(new
BufferedWriter(new FileWriter(args[2])));
//
// Read the first line of the .dat file to get sample rate.
// We want to store the sample rate value in a variable,
// but we can ignore the "; Sample Rate" part of the line.
// Step through the first line one token (word) at a time
// using the StringTokenizer. The fourth token is the one
// we want (the sample rate).
//
StringTokenizer str;
String oneLine;
int sampleRate;
String strJunk;
oneLine = fileIn.readLine();
str = new StringTokenizer(oneLine);
strJunk = str.nextToken(); // Read in semicolon
strJunk = str.nextToken(); // Read in "Sample"
strJunk = str.nextToken(); // Read in "Rate"
// ...
1 Midterm Preview Time allotted 50 minutes CS 11.docxhoney725342
1
Midterm Preview
Time allotted: 50 minutes
CS 110, Programming Fundamentals I
Central Washington University
Computer Science
Instructions
There are five sections on this exam that contain 24 required questions, a sixth section that contains extra
credit questions, and a last, seventh section, with supplementary information that may be helpful in answering
some of the required questions. This midterm is worth 100 points. Each question in a section is worth the points
indicated at the beginning of the section.
• Pace yourself
• Do not spend too much time on any one question
• Partial credit will be given, if warranted
• Partial credit will NOT be given on the extra credit questions, and points will NOT be taken off for
incorrectly answering an extra credit question
This exam is a closed book, closed notes, no IPhones, no Internet, etc. exam. All that you need is a pen or
pencil.
Name (Print)
Honor Code Statement: I pledge that this submission is solely my work, and that I have neither
given to, nor received help from anyone.
Signature:
Section Question Type Question Numbers Points Possible Points Scored
I True / False 1-10 20
II Multiple Choice 11-15 20
III Find the Error 16 20
IV Short Answer 17-22 30
V One or More Answers 23-24 10
Total 100
VI Extra Credit
Total Including Extra Credit
2
Section I: True/False Each question is worth 2 points; no partial credit given
Circle either True or False.
1. True / False The following is a syntactically correct variable declaration and assignment
statement:
double int = 2.0;
2.
True / False
The diagram in Figure 1a is the decision structure logic of the Java statements in
Figure 1b.
if (Condition_1){
if (Condition_2){
Statement_B;
}else{
Statement_C;
}
}
if (! Condition_1){
Statement_A;
}
Figure 1a Figure 1b
3. True / False Java is a case sensitive programming language.
4. True / False Assuming that letter has been declared as a variable of type char, the below
statement is syntactically correct:
letter = “a”;
5. True / False For the logical AND operator, &&, which connects two boolean expressions, both
expressions must be false for the overall expression to be false.
6. True / False The below two pieces of code output the same thing to the console:
int someVariable = 0;
System.out.println(“Output : “ + someVariable);
int someVar1 = 1, someVar2 = 2;
System.out.println(“Output : “ + someVar1 / someVar2);
7. True / False Syntax errors are mistakes that the programmer has made that violate the rules of the
programming language.
3
8. True / False The following Java code is syntactically incorrect:
Scanner keyBoard = new Scanner(System.in);
int someValue = keyBoard.nextInt();
switch (someValue){
case 1:
case 2:
case 3:
System.out.println("Input is 1 or 2 or 3.");
break;
default:
Syst ...
Premium MEAN Stack Development Solutions for Modern BusinessesSynapseIndia
Stay ahead of the curve with our premium MEAN Stack Development Solutions. Our expert developers utilize MongoDB, Express.js, AngularJS, and Node.js to create modern and responsive web applications. Trust us for cutting-edge solutions that drive your business growth and success.
Know more: https://www.synapseindia.com/technology/mean-stack-development-company.html
The world of search engine optimization (SEO) is buzzing with discussions after Google confirmed that around 2,500 leaked internal documents related to its Search feature are indeed authentic. The revelation has sparked significant concerns within the SEO community. The leaked documents were initially reported by SEO experts Rand Fishkin and Mike King, igniting widespread analysis and discourse. For More Info:- https://news.arihantwebtech.com/search-disrupted-googles-leaked-documents-rock-the-seo-world/
Implicitly or explicitly all competing businesses employ a strategy to select a mix
of marketing resources. Formulating such competitive strategies fundamentally
involves recognizing relationships between elements of the marketing mix (e.g.,
price and product quality), as well as assessing competitive and market conditions
(i.e., industry structure in the language of economics).
[Note: This is a partial preview. To download this presentation, visit:
https://www.oeconsulting.com.sg/training-presentations]
Sustainability has become an increasingly critical topic as the world recognizes the need to protect our planet and its resources for future generations. Sustainability means meeting our current needs without compromising the ability of future generations to meet theirs. It involves long-term planning and consideration of the consequences of our actions. The goal is to create strategies that ensure the long-term viability of People, Planet, and Profit.
Leading companies such as Nike, Toyota, and Siemens are prioritizing sustainable innovation in their business models, setting an example for others to follow. In this Sustainability training presentation, you will learn key concepts, principles, and practices of sustainability applicable across industries. This training aims to create awareness and educate employees, senior executives, consultants, and other key stakeholders, including investors, policymakers, and supply chain partners, on the importance and implementation of sustainability.
LEARNING OBJECTIVES
1. Develop a comprehensive understanding of the fundamental principles and concepts that form the foundation of sustainability within corporate environments.
2. Explore the sustainability implementation model, focusing on effective measures and reporting strategies to track and communicate sustainability efforts.
3. Identify and define best practices and critical success factors essential for achieving sustainability goals within organizations.
CONTENTS
1. Introduction and Key Concepts of Sustainability
2. Principles and Practices of Sustainability
3. Measures and Reporting in Sustainability
4. Sustainability Implementation & Best Practices
To download the complete presentation, visit: https://www.oeconsulting.com.sg/training-presentations
Discover the innovative and creative projects that highlight my journey throu...dylandmeas
Discover the innovative and creative projects that highlight my journey through Full Sail University. Below, you’ll find a collection of my work showcasing my skills and expertise in digital marketing, event planning, and media production.
An introduction to the cryptocurrency investment platform Binance Savings.Any kyc Account
Learn how to use Binance Savings to expand your bitcoin holdings. Discover how to maximize your earnings on one of the most reliable cryptocurrency exchange platforms, as well as how to earn interest on your cryptocurrency holdings and the various savings choices available.
Personal Brand Statement:
As an Army veteran dedicated to lifelong learning, I bring a disciplined, strategic mindset to my pursuits. I am constantly expanding my knowledge to innovate and lead effectively. My journey is driven by a commitment to excellence, and to make a meaningful impact in the world.
VAT Registration Outlined In UAE: Benefits and Requirementsuae taxgpt
Vat Registration is a legal obligation for businesses meeting the threshold requirement, helping companies avoid fines and ramifications. Contact now!
https://viralsocialtrends.com/vat-registration-outlined-in-uae/
Kseniya Leshchenko: Shared development support service model as the way to ma...Lviv Startup Club
Kseniya Leshchenko: Shared development support service model as the way to make small projects with small budgets profitable for the company (UA)
Kyiv PMDay 2024 Summer
Website – www.pmday.org
Youtube – https://www.youtube.com/startuplviv
FB – https://www.facebook.com/pmdayconference
Kseniya Leshchenko: Shared development support service model as the way to ma...
CMIS 141 CMIS141 FINAL PROJECT
1. Buy here:
http://theperfecthomework.com/cmis-141-cmis141-final-
project/
Final Project
This assignment demonstrates your understanding of the concepts from the CMIS 141 class.
This homework consists of 1 programming assignment worth 25 points.
Before attempting this project, be sure you have completed all of the reading assignments,
hands-on labs, discussions, and assignments to date.
1. (25 points) Design a Java application that will read a file containing data related to the
passengers on the Titanic. The description of the file is shown below. The application should
provide statistical results on the passengers including:
a. Total number of passengers on the Titanic
b. Total number of passengers who perished on the Titanic
c. Total number of Passengers who survived the sinking of the Titanic
d. Number of passengers who survived the sinking of the Titanic as a function of the
passenger class (e.g. 1,2,3)
e. Number of passengers who survived the sinking of the Titanic as a function of the
passenger gender (e.g., male, female)
f. A list of the names of passengers who paid greater than $200 for their tickets
g. A list of the names of passengers who were less than 10 years old who survived the
sinking of the Titanic
h. A list of the names of passengers who were less than 10 years old who perished on the
Titanic
2. i. The count of the number of passengers as a function of the first letter of their last name.
(e.g., A: 13, B:33 …)
j. Additional statistical results you add to enhance the functionality
The following are some design criteria and specific requirements that need to be addressed:
a. Use command line arguments to send in the name of the Titanic file.
b. Use a 2D array to store the Titanic data. (Hint: You will probably need to store the array as
String values and then convert to other types as needed since some data is null)
c. You should create at least 2 Java classes – Titanic and TestTitanic. You are welcome to
create additional classes if you want to further separate the functionality.
d. You should create separate methods for each of the required functionality. (e.g.
getTotalPassengers() will return the total number of passengers on the Titanic.)
e. A user-friendly and well-organized menu should be used for users to select which data to
return. A sample menu is shown in run example. You are free to enhance your design and
you should add additional menu items and functionality.
f. The menu system should be displayed at the command prompt, and continue to redisplay
after results are returned or until Q is selected. If a user enters an invalid menu item, the
system should redisplay the menu with a prompt asking them to enter a valid menu selection
g. The application should keep track of the elapsed time (in seconds) between once the
application starts and when the user quits the program. After the program is exited, the
application should provide a prompt thanking the user for trying the Titanic program and
providing the total time elapsed.
Here is sample run:
java TestTitanic Titanic.txt
********** Welcome to the Titanic Statistical Application **************************
3. Enter the number of the question you want answered. Enter ‘Q’ to quit the program :
1. How many passengers were on the Titanic?
2. What percentage of passengers perished on the Titanic?
3. What percentage passengers survived the sinking of the Titanic?
4. What percentage of passengers survived for each of the three classes?
5. What percentage of passengers survived as a function of gender?
6. What specific passengers paid more than $200 for their tickets?
7. What specific passengers who were less than 10 years old perished on the titanic?
8. What specific passengers who were less than 10 years old survived the sinking of the
titanic?
9. For each letter in the alphabet, how many passengers last names started with that letter?
Q. Quit the program
Enter your selection: 1
There were 1310 Passengers on the Titanic.
Enter the number of the question you want answered. Enter ‘Q’ to quit the program :
1. How many passengers were on the Titanic?
2. What percentage of passengers perished on the Titanic?
3. What percentage passengers survived the sinking of the Titanic?
4. What percentage of passengers survived for each of the three classes?
5. What percentage of passengers survived as a function of gender?
4. 6. What specific passengers paid more than $200 for their tickets?
7. What specific passengers who were less than 10 years old perished on the titanic?
8. What specific passengers who were less than 10 years old survived the sinking of the
titanic?
9. For each letter in the alphabet, how many passengers last names started with that letter?
Q. Quit the program
Enter your selection: 6
The following passengers paid more than $200 for their tickets:
Allen, Miss. Elisabeth Walton
Astor, Col. John Jacob
Astor, Mrs. John Jacob (Madeleine Talmadge Force)
Baxter, Mr. Quigg Edmond
Baxter, Mrs. James (Helene DeLaudeniere Chaput)
Bidois, Miss. Rosalie
Bird, Miss. Ellen
Bowen, Miss. Grace Scott
Cardeza, Mr. Thomas Drake Martinez
Cardeza, Mrs. James Warburton Martinez (Charlotte Wardle Drake)
Chaudanson, Miss. Victorine
Douglas, Mrs. Frederick Charles (Mary Helene Baxter)
5. Endres, Miss. Caroline Louise
Farthing, Mr. John
Fortune, Miss. Alice Elizabeth
Fortune, Miss. Ethel Flora
Fortune, Miss. Mabel Helen
Fortune, Mr. Charles Alexander
Fortune, Mr. Mark
Fortune, Mrs. Mark (Mary McDougald)
Geiger, Miss. Amalie
Keeping, Mr. Edwin
Kreuchen, Miss. Emilie
Lesurer, Mr. Gustave J
Madill, Miss. Georgette Alexandra
Robbins, Mr. Victor
Robert, Mrs. Edward Scott (Elisabeth Walton McMillan)
Ryerson, Master. John Borie
Ryerson, Miss. Emily Borie
Ryerson, Miss. Susan Parker "Suzette"
Ryerson, Mr. Arthur Larned
Ryerson, Mrs. Arthur Larned (Emily Maria Borie)
6. Straus, Mr. Isidor
Straus, Mrs. Isidor (Rosalie Ida Blun)
Ward, Miss. Anna
Widener, Mr. George Dunton
Widener, Mr. Harry Elkins
Widener, Mrs. George Dunton (Eleanor Elkins)
Enter the number of the question you want answered. Enter ‘Q’ to quit the program :
1. How many passengers were on the Titanic?
2. What percentage of passengers perished on the Titanic?
3. What percentage passengers survived the sinking of the Titanic?
4. What percentage of passengers survived for each of the three classes?
5. What percentage of passengers survived as a function of gender?
6. What specific passengers paid more than $200 for their tickets?
7. What specific passengers who were less than 10 years old perished on the titanic?
8. What specific passengers who were less than 10 years old survived the sinking of the
titanic?
9. For each letter in the alphabet, how many passengers last names started with that letter?
Q. Quit the program
Enter your selection: Q
Thank you for trying the Titanic Program.
7. Elapsed time in seconds was: 95
Grading Rubric:
The following grading rubric will be used to determine your grade:
Attribute
Exceeds
Meets
Does not meet
Design (5 points)
(5 points)
Exhibits proper use of parameters, and selection of data types all of the time.
Employs correct and appropriate use of programming structures (loops, conditionals, classes
etc.) all of the time.
Efficient algorithms used all of the time.
(3-4 points)
Exhibits proper use of parameters, and selection of data types most of the time.
Employs correct and appropriate use of programming structures (loops, conditionals, classes
etc.) most of the time.
Efficient algorithms used most of the time.
(0-2 points)
Rarely exhibits proper use of parameters, and selection of data types.
8. Rarely employs correct and appropriate use of programming structures (loops, conditionals,
classes etc.)
Poorly structured and inefficient algorithms.
Functionality (10 points)
(9-10 points)
Extra effort was apparent through the addition of significant and additional functionality
beyond the scope of the assignment.
(7-8 points)
Program fulfills most functionality.
Most requirements were fulfilled.
Screen captures provided demonstrating the successful compiling and running of the
program.
(0-6 points)
Program does not fulfill functionality.
Few requirements were fulfilled.
Test cases (5 points)
(5 points)
Test cases provide comprehensive coverage of all code paths.
Discussion of run-time errors included.
(3-4 points)
Test cases provide coverage of most code paths.
9. Test cases results well documented providing pass/fail results for each test case.
(0-2 points)
No or insufficient test cases
Minimal supporting evidence provided to verify testing actually took place.
Java Style Guide (5 points)
(5 points)
Code impeccably neat and well-organized.
(3-4 points)
Header comments include filename,
(0-2 points)
Code rarely follows recommended Java style guide
Extensive In-line comments providing additional insight into code design and functionality
author, date and brief purpose of the program.
In-line comments used to describe major functionality of the code.
Meaningful variable names and prompts applied.
Class names are written in UpperCamelCase.
Variable names are written in lowerCamelCase.
Constant names are in written in All Capitals.
Braces use K&R style.
10. Submission requirements:
Your deliverables include all Java files (.java) and a single word (or PDF) document. The
Java files should be named appropriately for your applications. Your word document should
include screen shots showing the successful compiling and running of each application, and
a detailed description of the test plan for each application. The test plan should include the
input, expected output, actual output and if the test case passed or failed. Submit your files
to the Final Project assignment area no later than the due date listed in the calendar.
Titanic Data Description:
The attached tab delimited file, named titanic.txt contains the known passengers on the
Titanic. There are 6 fields included in the file in the order:
Passenger class (1,2,3)
Survived (1=yes, 0=no)
Name (Passenger name)
sex (male or female)
age (some values are blank)
fare (some values are blank)