You should write each functionality

Assignment Help Basic Computer Science
Reference no: EM13165075

Write a menu based program to maintain student records. Your program should take the following inputs: 1. Student first name (max. 20 characters) 2. Student last name, (max. 20 characters) 3. Student scores (float/double), eg. 85.4

Problem:

Write a menu based program to maintain student records. Your program should take the following
inputs:
1. Student first name (max. 20 characters)
2. Student last name, (max. 20 characters)
3. Student scores (float/double), eg. 85.4

Your program should be able to take records of a minimum of 5 students. After taking the records,
you should provide 8 functionalities to the user.
1. Print records - prints records of all students
2. Add a new record - take a new record from the user for a new student. Be careful, you may need
to allocate more memory using dynamic memory allocation.
3. Delete record(s) - to delete a record, ask for the last name of the student from the user. If there
are multiple students with same last name, you must delete all of their records. You must free up the
memory holding these records.
4. Search by last name - prints record of the student with a given last name. If there are multiple
students with the same last name, print records for all of them.
5. Sort by score - sort the records of students according to their scores, and then print the sorted
records.
6. Sort by last name - sort the records of students according to their names alphabetically, and then
print the sorted records.
7. Find the median score - compute the median score and print it. Also, print how many students are
above this median score.
8. Exit the program - terminate on a specific input from the user. Let that specific input be an
integer of value 0.
You should print the record in the following format:
First Name: firstname 1, Last Name: lastname 1, Score: score 1
First Name: firstname 2, Last Name: lastname 2, Score: score 2
.
.
.

You should write each functionality from 1-7 in separate functions. You should provide a menu to
the user as following:
For inputs:
Please indicate number of records you want to enter (min 5):
#of records
After user gives the number of records, you should inform the user how to enter the records:
Please input records of students (enter a new line after each record), with following format
first name last name score
After user gives the inputs for the records, inform the user about the functionalities:
Print records (press 1)
Add a new record (press 2)
Delete record(s) (press 3)
Search by last name (press 4)
Sort by score (press 5)
Sort by last name (press 6)
Find median score (press 7)
Exit the program (press 0)
After user chooses a functionality, your program performs that and provides this menu again to
select another functionality. This goes on until user presses 0.

Reference no: EM13165075

Questions Cloud

Calculate johnsons expense deduction : Calculate Johnson's expense deduction using the 2009 Form 2106 (Employee Business Expenses) based on actual automobile expenses and other employee business expenses.
Ecosystem-hierarchy of interactions and biodiversity : Describe your local ecosystem or an ecosystem that is important to you, including its hierarchy of interactions and its biodiversity. How is the ecosystem dependent on the biodiversity? Explain one threat to that biodiversity.
Define the physical interactions of the molecules : Explain the physical interactions of the molecules that lead to proteins falling out of solution in high salt. What is the driving force of protein precipitation?
What is the balanced equation with notations for steam : what is the balanced equation with notations for steam reacting with solid carbon to form the gases carbon monoxide and hydrogen.
You should write each functionality : You should write each functionality from 1-7 in separate functions. You should provide a menu to the user as following:For inputs:
Calculate the molality and molarity of an nh3 solution : Calculate the molality and molarity of an NH3 solution made up of 37.0 g of NH3 in 70.0 g of water. The density of the solution is 0.982 g/mL.
Outline any benefits to practical solutions : Outline any ethical issues involved in Mr Smith taking the trip. Relate any ethical issues directly to the facts of the business case and outline any benefits to Practical Solutions Pty Ltd of Mr Smith taking the trip.
Culturally relevent and anti-bias program : Discuss specific ways in which you can establish and maintain a culturally relevent and anti-bias program in your classroom setting.
Show her to install and used it in my network administration : and show her to install and used it in my network admistaion class

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Explain copyright implications for web site development

Study and explain copyright implications associated to Web site development. Write down the minimum of 350 words expalining the implications of copyrights on usage of content on Web site.

  Computing characters are there in encyclopedia

The text of the Encyclopedia Britannica is about 44 million words. For a sample of about 2000 words, the average word length was 6.1 characters per word. Approximately how many characters are there in the encyclopedia?

  This thesis artefact is flexible

This thesis artefact is flexible in a sense that helper can use any other sort of tools to accomplish the task as long as it matches with the aim but please, let me know how he/ she going to do it.

  Indicates that the student id is abc54301

Indicates that the student ID is ABC54301 and the answer to question 1 is  True, the answer to question 2 is False, and so on. This student did not  answer question 9. The exam has 20 questions, and the class has more than  150 students. Each corre..

  Advantages of logging more information to alerts file

What are the advantages of logging more information to the alerts file? What are the disadvantages of logging more information to the alerts file?

  Code around in a file to add joptionpane

It requires us to change some code around in a file to add joptionpane dialog boxes in instead of the fields already there. The following is the exact wording of the assignment:

  Expalin programs like ping and some of scanning tools

When using programs such as ping and some of the scanning tools to do forensic investigations, we may easily tip off the suspect that is under investigation

  Explaining visible and consistent management support

Illustrate visible and consistent management support. Establish privacy responsibilities. Privacy needs need to be incorporated into any position which handles personally identifiable information (PII).

  Program should display a menu

The program should display a menu allowing the user to enter pointer values by selecting option 1, then perform shallow or deep copy by selecting options 2 or 3. After whcich, your program needs to display the new results after the copy is performed.

  Question based on artificial intelligence

If the brain is a computer and the mind its workings, is this fitting analogy of the computer and its software? What would happen if we had dedicated computers with a huge number of neuron circuits?

  Determine many blocks of main memory in direct-mapped cache

Asumme that computer using direct-mapped cache has 2^24 words of main memory and cache of 64 blocks, where each cache block contains 16 words. How many blocks of main memory are there?

  Finding counterexample-algorithm based on greedy strategy

Determine a counterexample for following algorithm based on greedy strategy.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd