this is my project its hard


who can write it for me please

Write a C++ program to read, save, sort, search and display the students’ ids, student names and marks of N students.fficeffice" />>>
N=7 should be declared as a constant in your program. You must use arrays to store the students’ IDs, names and marks.
Note: an enhanced version of this program can be achieved after studying functions and structs.>>
Your program should display and execute a menu with the following options.

A switch statement must be used to execute the following menu options.
Menu
---------
1. Clear
2. Register a Student (Id, Name, Mark)
3. Display the student with a highest mark
4. Display the marks of all students
5. Display the percentage of the total mark received by each student
6. Sort all marks in ascending order
7. Sort all marks in descending order
8. Search for a student with a given id
9. Search for a student with a given name
10. Search for a student with a given mark
11. Exit
>>

Explanation>>
>>
1. Clear
This option initializes all the elements of the arrays to -1 to indicate that array is empty and names to null.

>>
2. Register a Student (Id, Name, Mark)>>
This option reads and stores the student’s id, student’s name and student’s marks. The marks (float numbers) are entered from the keyboard.

>>
3. Display the student with a highest mark
This option displays the student id, name and mark for a student with a highest mark.

>>
4. Display the marks of all students>>
This option displays the students’ IDs, names, marks of all students.

>>
5. Display the percentage of the total mark received by each student>>
This option displays the percentage of the total mark for all students.

>>
6. Sort all marks in ascending order>>
This option sorts all marks in ascending order. You can use any sorting algorithm which uses at least two while loops and one if statement.

>>
7. Sort all marks in descending order>>
This option sorts all marks in descending order. You can use any sorting algorithm which uses at least two while loops and one if statement.

>>
8. Search for a student with a given id>>
This option searches for a student with a given id. The program asks the user to enter the id using the keyboard and searches for it. If an appropriate student is found, the program displays the message “student found” and displays the id, name and the mark otherwise it displays a message “no student found”.


9. Search for a student with a given name>>
This option searches for a student with a given name. The program asks the user to enter the name using the keyboard and searches for it. If an appropriate student is found, the program displays the message “student found” and displays the id, name and mark otherwise it displays a message “no student found”.


10. Search for a student with a given mark>>
This option searches for a student with a given mark. The program asks the user to enter the mark using the keyboard and searches for it. If an appropriate student is found, the program displays the message “student found” and displays the id, name and mark otherwise it displays a message “no student found”.


11. Exit
The program should display the message “Thanks for using this program”, and exit.

The whole program should work in a loop to enable the user to select an item from menu until the user chooses to exit.

jackmaverick1 commented: Really, write it for you?? That's bad. How bout some effort? -1

Recommended Answers

All 4 Replies

Stuff is always hard at first...

Take a stab at it, write some code to get started..

No one will write your program for you. Just don't get overwhelmed with all the requirements. Do it a little bit at a time and you will be able to write it yourself. For example, start out by creating a program that does nothing more than display the menu. When you get that coded, compiled and working correctly you should code a function that implements each of the menu items, but only code, compile and test one function at a time. When done just a little bit at a time you will find the program is much easier to write than you feared.

Best of luck :)

I think you are saudi student
The program you need is solved by a very good egyption programmer. he solved the program with very simple code, easy to understand and also if you need he can Explains code for you.

if you need the program for the university you can call him any time at his mobile phone.

Mobile : <removed>

My Regards with great success

Good luck.

if you need the program for the university you can call him any time at his mobile phone.

I'm trying to fathom how you thought posting another person's telephone number was a good idea. :icon_rolleyes:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.