1. Write a program to read name of student, TP Number and enter his/her all subject...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Write a program to read name of student, TP Number and enter his/her all subject marks in list. Compute the total and percentage (Average) of a student. At the end display Name of student, TP Number, Total, Percentage and Grade of that semester by using function as defined below. (Note: 100-80=A+ 70-65 = B 55-50 = C- 80-75 = A 65-60 = C+ 50-0 = D/Fail). a. Use Display function to print output. b. Use mark function to accept parameter and return total to Display function. 75-70 = B+ 60-55 = C c. Use average function by passing parameter which is generated in mark function. d. Use grade function by passing parameter which is generated in average function. Sample Input/Output: Do you want to continue '0' to Continue '1' to Terminate : 0 Your Options are: 1. Add new student detail. 2. View all student details. 3. Search Specific student detail. Enter 2 subject Marks Enter 3 subject Marks Select your choice: 1 Enter Student Name : John Billy Enter John Billy's TP Number : TP098765 How many subjects in Semester: 5 Enter 1 subject Marks : 65 :70 :75 :80 : 85 : 375 : 75 :A Enter 4 subject Marks Enter 5 subject Marks Total of all Subjects Average of Semester Grade of Semester 1. Write a program to read name of student, TP Number and enter his/her all subject marks in list. Compute the total and percentage (Average) of a student. At the end display Name of student, TP Number, Total, Percentage and Grade of that semester by using function as defined below. (Note: 100-80=A+ 70-65 = B 55-50 = C- 80-75 = A 65-60 = C+ 50-0 = D/Fail). a. Use Display function to print output. b. Use mark function to accept parameter and return total to Display function. 75-70 = B+ 60-55 = C c. Use average function by passing parameter which is generated in mark function. d. Use grade function by passing parameter which is generated in average function. Sample Input/Output: Do you want to continue '0' to Continue '1' to Terminate : 0 Your Options are: 1. Add new student detail. 2. View all student details. 3. Search Specific student detail. Enter 2 subject Marks Enter 3 subject Marks Select your choice: 1 Enter Student Name : John Billy Enter John Billy's TP Number : TP098765 How many subjects in Semester: 5 Enter 1 subject Marks : 65 :70 :75 :80 : 85 : 375 : 75 :A Enter 4 subject Marks Enter 5 subject Marks Total of all Subjects Average of Semester Grade of Semester
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Write a small C++ program. Your program should compile correctly and produce the specified output. Please note that the computer program should comply with the commenting and formatting rules as has...
-
Number of toys produced 60,000 120,000 150,000 O $0.20 What is the materials cost per unit of output? O $0.30 Starfun Toys, Inc. Cost of Materials O $0.70 O $0.50 Total cost of materials $18,000...
-
Based on current dividend yields and expected capital gains, the expected rates of return on portfolios A and B are 11% and 14%, respectively. The beta of A is .8 while that of B is 1.5. The T-bill...
-
Corsouth Mortgage Associates is a large home mortgage firm in the Southeast. It has a pool of permanent and temporary computer operators who process mortgage accounts, including posting payments and...
-
Why did Congress pass the Health Care Quality Improvement Act of 1986?
-
Just before Walker Laboratories opened for business, James Walker, the owner, had the following assets and liabilities. Determine the totals that would appear in the firms fundamental accounting...
-
A meteorologist is 3.8 km from a thunderstorm when she sees a lightning bolt emerge from the storm. In how many seconds will she hear thunder after seeing the lightning? Assume air temperatur = 20C...
-
Using the alternative-parameter method, determine the parameters of the following distributions based on the given assessments. Refer to Step 5.5 if necessary. a. Find the parameter value for the...
-
What strategies can be employed to promote ethical whistleblowing practices and protect whistleblowers from retaliation, thereby facilitating the exposure and correction of unethical conduct within...
-
What external forces influence a firms strategy?
-
Is the rotation done in Figure 4.5 a single or a double rotation? What about the rotation in Figure 4.6? Figure 4.5 Figure 4.6 44 44 32 78 T3 48 88 To T1 T1 T3 () (b)
-
Think about how much you paid for your smartphone and how much its worth today. Whats the depreciation rate of your phone? Why has it lost value?
-
Discuss the advantages and disadvantages of measures of macroeconomic performance based around behavioural insights versus conventional measures of gross domestic product.
-
How did the GATT lead to the creation of the WTO?
-
The Federal government of Canada is planning to implement a 466% increase in carbon tax from current level of $30 per tonne to $170 per tonne, the tax is scheduled to rise in steps until 2030, at...
-
Which, if any, of the dichloroethene molecules drawn in Data Table II (3.) (4.) and (5.) are geometric isomers? A. B. C. D. cis-1,2-dichloroethene and trans-1,2-dichloroethene...
-
Indicate whether each of the items listed below would be included (I) in or excluded (E) from gross income for the 2012 tax year. ________a. Welfare payments ________b. Commissions ________c. Hobby...
-
Sally hires a maid to work in her home for $250 per month. The maid is 25 years old and not related to Sally. During 2012, the maid worked 10 months for Sally. a. What is the amount of Social...
-
Cedar Corporation has an S corporation election in effect. During the 2012 calendar tax year, the corporation had ordinary taxable income of $200,000, and on January 15, 2012, the corporation paid...
-
Write a one-page summary addressing the topic, How improving safety and health at the Hotel Paris will contribute to us achieving our strategic goals.
-
Based on what you read in this chapter of Dessler, Human Resource Management, whats the first step you would have advised the Hotel Paris to take as part of its new safety and health program, and why?
-
How would you suggest the Carters get all employees to behave more safely at work? Also, how would you advise them to get those who should be wearing goggles to do so?
Study smarter with the SolutionInn App