Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

You must use Arrays and Functions to do this. If you don't, then you loose big portion of your grade.

Here you will be writing a program to maintain the student database. Your program will maintain the student information such as names, Id's, and the exam1 score, exam2 score and exam3 score.

Here is the description of the project.

Write a program with 5 arrays.

Names(10)

ID(10)

Score1(10)

Score2(10)

Score3(10)

Your program should display the following menu of choices to the user. It should perform the operations as suggested by the user and always come back to the menu and wait for the user to type in her/his choice.

Type P to populate the student information.

Type U to update student Information

Type D to display the student information.

Type C to calculate the Grade.

Type E to exit.

If the user types P
Ask the user to enter the 10 student names, ID's , and score1, score2 and score 3 for each of the student. Return to the menu.

If the user types D then:
Ask the user to enter the ID of the student. Search for the student in the ID array and display student name, ID, score1, score2, score3. Return to the menu.
If the user types U then:
Ask the user to enter the ID of the student. Search for the student in the ID array and display student name, ID, score1, score2, score3. Ask the user to enter the new scores for the student. Update the Score1, Score2, and Score3 arrays at that position.

If the user types C then
Ask the user for the student ID. Find the student Id in the ID array. Calculate the average of the three scores for that student and display the grade of that student. The grade should be calculated based on the following criteria. If the average is between 90 and 100, then the grade is A. If the average is between 80 and 89, then the grade should be B. If the average is between 70 and 79, then grade should be C. If the average is between 70 and 69 then the grade should be D. If the average is below 60, then the grade is F. Return to the main menu
If the user types E. then:
Terminate the main program.
If the user types any other option
Display the message "Invalid Choice. Try again" and go back and display the menu.
PS:

You program must keep displaying the menu until the user types the option E, to exit the program. For this, you can use, while..wend loop.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91084761

Have any Question?


Related Questions in Computer Engineering

Can someone please help in this question - if the the price

Can someone please help in this question - If the the price of a pack of 35-count Wipes box-pack increased by 12% while revenue from those wipes increased by 5%. Calculate the own-price elasticity of demand for Wipes box ...

Without doing any math or drawing a graph which is bigger

Without doing any math, or drawing a graph, which is bigger, compensating variation or equivalent variation for a tax? Consider an individual with Cobb-Douglas preferences over some good and all other goods. In what sens ...

Task 1create an array that holds a 20 random integers

Task 1: Create an Array that holds a 20 random integers between 1-50. Create an iterator that will return the memory address and value for each integer present in the Array. Task 2: Update Assignment 1 Task 2. Pass the v ...

Question suppose you are the analyst charged with

Question : Suppose you are the analyst charged with developing a new system to help senior managers make better strategic decisions. What methodology would you use? How would the business strategy affect your approach? W ...

When talking about economics and the history of it for the

When talking about Economics and the history of it. For the past recessions the U.S. has had, do we look at it mostly on the loan side of the banks or what causes most recessions?

Assignmentsuppose you are an isp that owns a 19 address

Assignment Suppose you are an ISP that owns a /19 address CIDR block starting at 118.235.160.0/19. Answer the following questions to allocate address blocks to 10 customers who want to pay for the smallest CIDR blocks to ...

Generate a c program for fibonacci function using

Generate a C++ program for Fibonacci function using Stack Fibonacci function Fib(n) is given below. Fib(n)= Fib(n-1) + Fib(n-2) for n > 1 Fib(n)= 1 for n=1 Fib(n)= 0 for n=0 Using following initialization unsigned int *F ...

What are the typical types of risk faced by a firm explain

What are the typical types of risk faced by a firm? Explain each type of risk in details.

Jeff decides to start saving some money from this upcoming

Jeff decides to start saving some money from this upcoming month onwards. He decides to save only $500 at first, but each month he will increase the amount invested by $100. He will do it for 60 months (including the fir ...

Write a python 3 program please show all outputlambda and

Write a Python 3 Program please show all output. lambda and keyword Magic Goals A bit of lambda functions as objects keyword evaluation Task Write a function that returns a list of n functions, such that each one, when c ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As