C exercises and solutions: student record program menu


C structure: Student Record Program Menu

Step 2: Defining the displaymenu() function to display the menu. The simple menu provides nine choices from 1 to 9 to work with the records.


///function to display a menu of choices
void displaymenu(){
  printf("==================================================\n");
  printf(" MENU \n");
  printf("==================================================\n");
  printf(" 1.Add student records\n");
  printf(" 2.Delete student records\n");
  printf(" 3.Update student records\n");
  printf(" 4.View all student records\n");
  printf(" 5.Calculate average score of a student\n");
  printf(" 6.Show student who gets the max total score\n");
  printf(" 7.Show student who gets the max total score\n");
  printf(" 8.Find a student by ID\n");
  printf(" 9.Sort records by TOTAL\n");
}


Comments

Frank Urbanski comment

 Frank Urbanski

This is a test.


2017-02-10



This website intents to provide free and high quality tutorials, examples, exercises and solutions, questions and answers of programming and scripting languages:
C, C++, C#, Java, VB.NET, Python, VBA,PHP & Mysql, SQL, JSP, ASP.NET,HTML, CSS, JQuery, JavaScript and other applications such as MS Excel, MS Access, and MS Word. However, we don't guarantee all things of the web are accurate. If you find any error, please report it then we will take actions to correct it as soon as possible.