2173 Salk Avenue, Suite 250 Carlsbad, CA

support@assignmentprep.info

Project 8 Array Sorting Start Assignment Due Sunday by 11:59pm Points 100 Submit

April 27, 2024

Project 8 Array Sorting
Start Assignment
Due Sunday by 11:59pm
Points 100
Submitting a file upload
Using OOP, write a C++ program that will read in a file of names and a file of birth years.  The file of names is called Names.txt and the file of birth years is called BirthYear.txt.  Both input files should be located in the current directory of your program. 
The list of names in the Names.txt file corresponds to the list of birth years in the BirthYears.txt file. 
This means:
The first name in the names.txt file corresponds to the first birth year in the birthyear.txt file. 
The second name in the names.txt file corresponds to the second birth year in the birthyear.txt file…and so on.
Read in and store the names into an array of 30.  Next read in and store the birth years into another array of 30 integers.
Sort the arrays using the selection sort or the bubblesort code found in your textbook.  List the roster of names in ascending alphabetical order displaying their birth years beside their names.
Next, prompt the user to enter a birth year.  Validate this input value.  Valid birth years are between the years 1995 – 2005.   List each name who has the birth year entered by the user.
A quick example:
If the names.txt held the following 5 names:
Jim
Kevin
Alexis
Holly
Sam
and the birthyear.txt held the following 5 years:
1999
2001
1999
1997
2002
The output would be as follows:
Example Output
Alphabetical Roster of Names
Alexis  1999
Holly   1997
Jim      1999
Kevin  2001
Sam    2002
Names by Birth Year
Please enter the birth year:   abcd
Invalid birth year entered, try again:  -30
Invalid birth year entered, try again:   97
Invalid birth year entered, try again:  2022
Invalid birth year entered, try again:  1999
For the birth year of 1999:
Alexis
Jim
End of results
Another example:
Example Output
Alphabetical Roster of Names
Alexis  1999
Holly   1997
Jim      1999
Kevin  2001
Sam     2002
Names by Birth Year
Please enter the birth year:  1996
No names with the birth year 1996.
End of results
NOTE:  Projects using global variables or not using a class and object appropriately will result in a grade submission of 0.
Be sure to use private member variables and private member functions.
Only the constructor (if needed) and the driver method are public.
NOTE:  any program submission that does not use a class and object and/or does not use appropriate methods will result in a grade submission of 0.
Use of global variables will also result in a grade submission of 0.
To Do:
Write an algorithm indicating each step in the process until completion.
Create a Flow Chart demonstrating each step in the process.
Submit the algorithm and flowchart in the comment section of the drop box.
Upload your zipped solution folder to the Project 1 Drop Box.
Be sure to check the Rubrics before you submit your Project.
Rubrics tell you exactly what must be included in each Project and how much each item is worth.
Check the Calendar for the due date!
Rubric
Project 8
Project 8
Criteria Ratings Pts
This criterion is linked to a Learning OutcomeSubmitted an algorithm that provides the step by step process to be followed by the submitted code base
15 pts
Full Marks
0 pts
No Marks
15 pts
This criterion is linked to a Learning OutcomeSubmitted a flow chart that demonstrates the logical process of the submitted code base
15 pts
Full Marks
0 pts
No Marks
15 pts
This criterion is linked to a Learning OutcomeOutput is attractive with appropriate white space so the user can read and understand
5 pts
Full Marks
0 pts
No Marks
5 pts
This criterion is linked to a Learning OutcomeTemplate code used in .cpp file
5 pts
Full Marks
0 pts
No Marks
5 pts
This criterion is linked to a Learning OutcomeProgram commented appropriately
5 pts
Full Marks
0 pts
No Marks
5 pts
This criterion is linked to a Learning OutcomeProgram uses OOP with proper private member variables and public member functions. The class and object are used throughout the project.
5 pts
Full Marks
0 pts
No Marks
5 pts
This criterion is linked to a Learning OutcomeProgram executes without errors
5 pts
Full Marks
0 pts
No Marks
5 pts
This criterion is linked to a Learning OutcomeThe name array is populated with names from the input file Names.txt. The input file is located in the project’s current directory.
5 pts
Full Marks
0 pts
No Marks
5 pts
This criterion is linked to a Learning OutcomeThe birth year array is populated with years form the input file BirthYear.txt. The input file is located in the project’s current directory.
5 pts
Full Marks
0 pts
No Marks
5 pts
This criterion is linked to a Learning OutcomeSelection sort or Bubblesort is used to sort the arrays.
20 pts
Full Marks
0 pts
No Marks
20 pts
This criterion is linked to a Learning OutcomeThe sorted roster of student names is displayed in ascending alphabetical order and associated birth year
5 pts
Full Marks
0 pts
No Marks
5 pts
This criterion is linked to a Learning OutcomeThe user is prompted to enter a birth year. The input value is validated.
5 pts
Full Marks
0 pts
No Marks
5 pts
This criterion is linked to a Learning OutcomeThe list of names of those with the input birth year are displayed, if any. If no names correlate to the birth year entered, a message is displayed indicating no names are associated with the input year.
5 pts
Full Marks
0 pts
No Marks
5 pts
Total Points: 100
PreviousNext

Struggling With a Similar Paper? Get Reliable Help Now.

Delivered on time. Plagiarism-free. Good Grades.

What is this?

It’s a homework service designed by a team of 23 writers based in Carlsbad, CA with one specific goal – to help students just like you complete their assignments on time and get good grades!

Why do you do it?

Because getting a degree is hard these days! With many students being forced to juggle between demanding careers, family life and a rigorous academic schedule. Having a helping hand from time to time goes a long way in making sure you get to the finish line with your sanity intact!

How does it work?

You have an assignment you need help with. Instead of struggling on this alone, you give us your assignment instructions, we select a team of 2 writers to work on your paper, after it’s done we send it to you via email.

What kind of writer will work on my paper?

Our support team will assign your paper to a team of 2 writers with a background in your degree – For example, if you have a nursing paper we will select a team with a nursing background. The main writer will handle the research and writing part while the second writer will proof the paper for grammar, formatting & referencing mistakes if any.

Our team is comprised of native English speakers working exclusively from the United States. 

Will the paper be original?

Yes! It will be just as if you wrote the paper yourself! Completely original, written from your scratch following your specific instructions.

Is it free?

No, it’s a paid service. You pay for someone to work on your assignment for you.

Is it legit? Can I trust you?

Completely legit, backed by an iron-clad money back guarantee. We’ve been doing this since 2007 – helping students like you get through college.

Will you deliver it on time?

Absolutely! We understand you have a really tight deadline and you need this delivered a few hours before your deadline so you can look at it before turning it in.

Can you get me a good grade? It’s my final project and I need a good grade.

Yes! We only pick projects where we are sure we’ll deliver good grades.

What do you need to get started on my paper?

* The full assignment instructions as they appear on your school account.

* If a Grading Rubric is present, make sure to attach it.

* Include any special announcements or emails you might have gotten from your Professor pertaining to this assignment.

* Any templates or additional files required to complete the assignment.

How do I place an order?

You can do so through our custom order page here or you can talk to our live chat team and they’ll guide you on how to do this.

How will I receive my paper?

We will send it to your email. Please make sure to provide us with your best email – we’ll be using this to communicate to you throughout the whole process.

Getting Your Paper Today is as Simple as ABC

No more missed deadlines! No more late points deductions!

}

You give us your assignments instructions via email or through our order page.

Our support team selects a qualified writing team of 2 writers for you.

l

In under 5 minutes after you place your order, research & writing begins.

Complete paper is delivered to your email before your deadline is up.

Want A Good Grade?

Get a professional writer who has worked on a similar assignment to do this paper for you