Take a new record from the user for a new student

Assignment Help Basic Computer Science
Reference no: EM132494152

Instruction: Use pointers for this lab. No arrays, no structures.

For example, if you need an array of floats to hold the scores, do not use float score[15]. Rather use float *score, then use dynamic memory allocation to hold required memory. You must use memory optimally, that is if you have only 6 scores, you must point to a memory chunk of sizeof(float)*6 bytes. Similarly, to hold a name, instead of doing it with 2D char arrays, use 2D pointers (char firstName[15][20] → char **firstName).

Write 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), e.g. 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.

Reference no: EM132494152

Questions Cloud

What is the cost of goods sold for julia and company : What is the cost of goods sold for Julia & Company assuming it uses LIFO? (Do not round your intermediate calculations. Round your answer to the nearest)
How much would save by transferring the credit card debt : Determine How much would his monthly repayments to the credit card company be if he intended to pay out the debt over five years?
What is the error in total net income : A company's financial statement, What is the error in total net income for the combined three-year period resulting from the inventory errors?
What is the difference between emulation : 1. What Is The Difference Between Emulation, Native Virtualization, And Para Virtualization?
Take a new record from the user for a new student : 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.
Draw the heap that results from inserting : Draw the heap that results from inserting 10, 12, 1, 14, 3, 17, 7, 2, 5, 8, 6 and 70 (in that order) into an initially empty binary max heap.
Create two variables ttlproblems : For this project, you will make a program that will test the user's proficiency at solving different types of math problems. The program will be menu driven.
Can anyone explain me the topic of linked lists : Can anyone explain me the topic of Linked Lists? I am studying data structures using Java and I need help wrapping myself around this concept.
Research on the topic of data analytics and visualization : Project assignment is to have you do more research on the topic of Data Analytics and Visualization. In this project you will need to do some research.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Create a drawing to be submitted to the trailer

Experiment with the buttons on the status bar and see if you can fi gure out a way to draw the roller approximately to size. Do not dimension the drawing. Save the drawing as roller1.dwg.

  Write some matlab statements on the command line

Write some MATLAB statements on the command line which use logical vectors to count how many elements of a vector x are negative, zero, or positive.

  How good you are with python programming

How good you are with Python Programming? Are you familiar with Hackerrank assignments for Python?

  In what ways does it planning help managers exercise

In what ways does IT planning help managers exercise control in a situation? Does IT impact the truck driver of a company who delivers supplies to its customer?

  The onslaught of big data and the information governance

ITS-833-The Onslaught of Big Data and the Information Governance Imperative. Information Governance, IT Governance, Data Governance: What's the Difference?

  Discuss the issue of securing backups

Discuss issue of securing backups.There have been several incidents lately in which backup media containing personal customer information were lost or stolen

  Maintaining an organization large networks

When you are an IT specialist who is tasked with maintaining an organization's large networks, it is important have an understanding of potential risks. It has been said most network issues can fall a number of categories:

  E-commerce multivendor website from scratch

How much time & money to spend in creating an e-commerce multivendor website from scratch?

  Determine the normal force of the tines at a

If the coefficient of static friction between the bar and the wood is µs = 0.5 , determine the normal force of the tines at A on the upper board. Assume the surface at C is smooth.

  Workplace and enhance audience sensitivity

Provide a solution for how "emotional intelligence" can be utilized to improve your workplace and enhance audience sensitivity.

  What is the purpose of the sql select command

How does the SQL SELECT command relate to the relational Select, Project, and Join concepts?

  Derive this relationship by using euler’s theorem

Verify that Euler's Theorem holds in Zm, m = 6,9, for all elements a for which gcd(a,m) = 1. Also verify that the theorem does not hold for elements a for which gcd(a,m) ≠ 1.

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