Create a C++ program that computes a student report card system. This C++ project on student report card should have student class with data members like roll no, name, marks and grade. Member...

Create a C++ program that computes a student report card system. This C++ project on student report card should have student class with data members like roll no, name, marks and grade. Member functions in this class are used for accept / display details of students and a function to calculate grade based on marks obtained by student. Student Records are stored. Please include the following things: -if statement -while loop -user-defined function -array (use a loop to process) The code should be this type, (this is just an example and should not be followed) #include Int main() { // Declare variables Int choice; // user’s selection from menu Int numItems; // number items desired Double total=0.0; // total before tax //double price1=3.0; // price of item 1 //double price2=2.0; // price of item 2 Double price; // Display menu of items Printf(“Welcome to MinerMeals !\n”); Printf(“Please enter the number of your selection\n”); Printf(“ 1. One slice of pizza $3.00 \n”); Printf(“ 2. Sandwich $2.00 \n”); // Prompt and read in user data Scanf(“%d”, &choice); Printf(“How many would you like?”); Scanf(“%d”, &numItems); // “Echo-print” what was read in Printf(“Your choice was: %d \n”,choice); Printf(“You ordered %d items \n”,numItems); // Test user’s menu choice and compute total cost If (choice == 1) { Price = 3.0; //total = numItems * price1; Total = numItems * price; } Else if (choice == 2) { Price = 2.0; //total = numItems * price2; Total = numItems * price; } Else { Printf(“Invalid selection. Choice should be 1 or 2.\n”); } Printf(“Your total cost is: $%.2f \n”,total); Return 0; } // end of main
May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here