computer Science code c++

make sure the code run on Microsoft visual studio and write not to explain how the cod runthank you
project1.docx

Unformatted Attachment Preview

Don't use plagiarized sources. Get Your Custom Essay on
computer Science code c++
Just from $13/Page
Order Essay

Project 1 (100 pts)
(Due April 15th)
COSC 113.002
In this project, you will write a C++ program to simulate some standard activities and operations
that occur within a school system on a set of students in a COSC 113 class. The data below list the
students currently registered to the class. There is a class size limit of 25 students. The information
below should be stored in a file and then used as input for this project. THIS PROJECT SHOULD ONLY BE
DONE USING CONCEPT COVERED IN CLASS. STRUCTS FOR STUDENT DATA STORAGE.
First Name
Last Name
Major
Student ID
GPA
Phone Number
Home City
Jane
Porter
Math
173894
3.9
4015388833
Arlington
Clarke
Griffith
Bio
100100
4.0
3018100100
DC
Craig
Bellamy
Ctec
128490
0.2
2403849399
Bowie
Manny
Rhodes
Chem
183903
2.9
3203848499
Largo
Robert
Reyes
Ctec
137940
3.4
4103948929
Bowie
Alexis
Rodrigues
Hist
128739
3.2
3014732293
Fairfax
Daniel
Proctor
Ctec
103848
2.5
3019382923
DC
Oliver
Kostermann
Cosc
193338
3.8
2049238392
Lanham
John
Constantine
Hist
183779
3.4
3103938493
Alexandria
Nagisa
Hiroyama
Chem
129030
3.7
2402874748
Lanham
Simone
Xypher
Bio
193830
4.0
3013849292
DC
Jason
Rundelhause
Math
139480
0.9
2013874829
Bowie
Abel
Herrera
Cosc
123999
1.5
3013983722
Falls Church
Connor
Angel
Hist
197920
3.7
2402879302
Alexandria
Monica
Strauss
Bio
110030
0.8
4010393849
Greenbelt
Claire
Matteo
Hist
102837
3.1
2402884893
Largo
Farida
Ahmed
Cosc
183920
3.0
3019389282
Arlington
David
Masterson
Hist
127393
1.4
4102937498
Falls Church
Chloe
Gignac
Cosc
188292
3.7
3102338229
Fairfax
William
Tucker
Math
198339
0.5
3019912293
Greenbelt
Daniela
Moreira
Ctec
139300
3.6
2402919933
DC
Birgit
Prinz
Cosc
109022
3.9
2018473993
Bowie
You are to create a Menu-driven program that runs continuously until the user of the program decides
to stop the program. The program will read the input from a file, and output as requested to the screen.
Use appropriate function calls where necessary to simplify your program. Your program should ensure
the right data is entered, like 6 digits for the ID, and 10 digits for the Phone, not greater than 4.0 for GPA
and so on. Phone number should be stored with string because it exceeds the limits of int, and does not
require calculation. THIS IS AN INDIVIDUAL PROJECT
The project should contain at least the following functions (you can use more if you need to)
1. CreateClass – This is a function that reads the student info data above from the file into your
appropriate data structure the student names should be in alphabetical order of last name (do
not alter the input file). Your function should print the entire student info (best to call the print
function for this), and show the current number of students in the class (class count).
2. RegisterClass – This is a function that allows a student to register for the COSC 113 class, by
providing all the necessary information (first name, last name, major, studentID, GPA,
PhoneNumber, HomeCity). The new student info should be placed into the correct position.
Your function should then display the current class count. Note, if the class is full, it should
prevent a new student from registering with an appropriate message. Print the list to show that
your class is still sorted. Also your function should not be case sensitive.
3. DropClass – This is a function that provides a student the opportunity to drop the class. The
student need only provide a unique information like their studentID or PhoneNumber. Your
function should ask the student to provide any of the two. If the student is not registered for
the class, display an appropriate message. Print the new class list to show the result of the drop
and show the class count.
4. SortClass – This is a function to print out the class list in a sorted manner. The class can be
sorted by Firstname, StudentID, HomeCity or GPA. Your function should ask the user for the
sorting order they prefer and sort accordingly. You can choose to make this question into
multiple functions for each sort, or one function. You are also free to use any of the sorting
algorithms we covered. Print the sorted list.
5. UpdateInfo – This is a function that allows the student the opportunity to update any of their
information that might have changed or was entered incorrectly. It should give the user the
chance to select which information to update, and allow them update it, it should then ask if the
user has anything else to update, if they do, it repeats if they don’t, print the new class list to
reflect the updated data, and the class count.
6. PrintClass – This is a function that prints the entire student info in the class list, using the default
sorting (by last name). It also displays the class count.
7. DisplayGPA – This is a function that takes from the user a certain GPA, and a choice, and displays
the complete info of every student with GPA below or above that value depending on their
choice. Also display a count for the number of students
8. DisplayBestMajor – This is a function that displays the name of the department with the highest
average GPA for its students and the GPA average for the department. Also display a count for
the number of students
9. DisplayDepartment – This is a function that takes from the user a certain Major, and displays the
complete info of every student in that major. Also display a count for the number of students
10. DisplayState – This is a function that takes from the user a certain state, and displays the info of
all the student from that state(e.g Maryland, Virginia). Also display a count for the number of
students
Extra Credit (35 pts)
SearchStudent – This is a function that given unique info like the studentID or Phone Number, it
should be able to search the class list if the student is currently registered or not. If the student
is registered, display their complete info. If not, display an appropriate message. You function
should work for either an ID or a Phone Number.
DeansList – This is a function that prints out the entire info for any student who meets the
requirement for being in the Dean’s List. Make the requirement a 3.7 GPA and above. Display a
count for the number of students
BestStudent – This is a function that prints out the entire info of the student(s) with the highest
G.P.A
WorstStudent – This is a function that prints out the entire info of the student(s) with the lowest
GPA
ProbationList – This is a function that prints out the entire info for any student who meets the
requirement for being on the probation list. Make the requirement a GPA of 1.0 or below.
Display a count for the number of students.
DisplayStudent – This is a function that takes in a city from the user and displays the complete
student info of all the students who do not belong to that city. Display a count for the number of
students.
DisplayMajorCount– This is a function that takes in a choice from the user and based on the
user’s choice prints the name and student count of the department with the highest or lowest
number of students. If two departments have the same count, print both of them along with
their count.

Purchase answer to see full
attachment

GradeAcers
Calculate your paper price
Pages (550 words)
Approximate price: -

Why Work with Us

Top Quality and Well-Researched Papers

We always make sure that writers follow all your instructions precisely. You can choose your academic level: high school, college/university or professional, and we will assign a writer who has a respective degree.

Professional and Experienced Academic Writers

We have a team of professional writers with experience in academic and business writing. Many are native speakers and able to perform any task for which you need help.

Free Unlimited Revisions

If you think we missed something, send your order for a free revision. You have 10 days to submit the order for review after you have received the final document. You can do this yourself after logging into your personal account or by contacting our support.

Prompt Delivery and 100% Money-Back-Guarantee

All papers are always delivered on time. In case we need more time to master your paper, we may contact you regarding the deadline extension. In case you cannot provide us with more time, a 100% refund is guaranteed.

Original & Confidential

We use several writing tools checks to ensure that all documents you receive are free from plagiarism. Our editors carefully review all quotations in the text. We also promise maximum confidentiality in all of our services.

24/7 Customer Support

Our support agents are available 24 hours a day 7 days a week and committed to providing you with the best customer experience. Get in touch whenever you need any assistance.

Try it now!

Calculate the price of your order

Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

No need to work on your paper at night. Sleep tight, we will cover your back. We offer all kinds of writing services.

Essays

Essay Writing Service

No matter what kind of academic paper you need and how urgent you need it, you are welcome to choose your academic level and the type of your paper at an affordable price. We take care of all your paper needs and give a 24/7 customer care support system.

Admissions

Admission Essays & Business Writing Help

An admission essay is an essay or other written statement by a candidate, often a potential student enrolling in a college, university, or graduate school. You can be rest assurred that through our service we will write the best admission essay for you.

Reviews

Editing Support

Our academic writers and editors make the necessary changes to your paper so that it is polished. We also format your document by correctly quoting the sources and creating reference lists in the formats APA, Harvard, MLA, Chicago / Turabian.

Reviews

Revision Support

If you think your paper could be improved, you can request a review. In this case, your paper will be checked by the writer or assigned to an editor. You can use this option as many times as you see fit. This is free because we want you to be completely satisfied with the service offered.

Order your essay today and save 15% with the discount code DISCOUNT15