Write the following to complete the Student class a. A default constructor b. The mutator and...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write the following to complete the Student class a. A default constructor b. The mutator and accessor methods for all data members c. A toString method that returns a String containing all data members. d. A processor method named calculate FinalMarks(). This method will calculate and return final marks of student based on the following formula. Final marks = test (30%) + assignment (20%) + final (50%) e. Write a main method that create four objects of student and assigned each of them with values for each data members. Then display the student name, student ID and final marks for all the students objects, public class Student { *** private String studentName; private String student ID; private String program; // e.g. CS233 private double test; private double assignment; private double final; Program 1.3 Write the following to complete the Student class a. A default constructor b. The mutator and accessor methods for all data members c. A toString method that returns a String containing all data members. d. A processor method named calculate FinalMarks(). This method will calculate and return final marks of student based on the following formula. Final marks = test (30%) + assignment (20%) + final (50%) e. Write a main method that create four objects of student and assigned each of them with values for each data members. Then display the student name, student ID and final marks for all the students objects, public class Student { *** private String studentName; private String student ID; private String program; // e.g. CS233 private double test; private double assignment; private double final; Program 1.3
Expert Answer:
Related Book For
Introduction to Java Programming, Comprehensive Version
ISBN: 978-0133761313
10th Edition
Authors: Y. Daniel Liang
Posted Date:
Students also viewed these finance questions
-
This assignment reviews object-oriented programming concepts such as classes, methods, constructors, accessor methods, and access modifiers. It makes use of an array of objects as a class data...
-
Carter Enterprises is a soybean trading company. Once a month a representative attends a commodity sale where he either buys or sells soybeans in bulk. Carter uses a local warehouse for storing...
-
Two slot machines offer to double your money 3 times out of 5. Machine A takes $10 bets and Machine B takes $100 bets on each occasion. A risk-averse investor prefers to bet on A) Machine A B)...
-
A 1.50-kg iron horseshoe initially at 600C is dropped into a bucket containing 20.0 kg of water at 25.0C. What is the final temperature? (Ignore the heat capacity of the container, and assume that a...
-
A mechanical system has 4 redundant engines, each with a 95% probability of functioning properly. When the binomial theorem is used to expand (0.95 + 0.05) 4 , the resulting terms give the...
-
A power line consists of two wires, each carrying a current of \(400 \mathrm{~A}\) in the same direction. The lines are perpendicular to the earth's magnetic field and are separated by a distance of...
-
Roger Ginde is developing a program in supply chain management certification for managers. Ginde has listed a number of activities that must be completed before a training program of this nature...
-
A budgetary comparison schedule Blank______. Multiple select question. includes a variance column that details the difference between the original and final budgets is required for the General Fund...
-
Complete the missing amounts in the following production report. Materials are added at the beginning of the process; conversion costs are incurred evenly; the ending inventory is 60% complete. The...
-
The following program issues an error(s). Explain why and how to fix it. (10points) 3 package taesik; 4 public class mq3 { 5 6 7 8 9 10 11 12 13 14 15 16 17 18} 56 public static void main(String[]...
-
The meterstick shown to the right is 100 cm long. It is free to pivot around its center of gravity (CG), which is at the 50-cm mark. There is a 22.0-N block hanging from the 80-cm mark. Decide where...
-
One particular window in the Addams' family home consists of a 75.2 cm by 69.1 cm rectangular glass window pane with a thickness of 12.3 mm. This solid glass window separates the interior of the...
-
Question 4: Trading Strategies Involving Options (12 marks) By combining two short puts at a middle strike K2, and one long put each at a lower K and upper K3 strike, one creates a long put butterfly...
-
A rock band uses a wall built out of 35 identical speakers. Ifone single speaker can produce a sound level of 91.5 dB in thefront row area, then what is the sound level produced by the wholewall?
-
The maximum depth of Lake Baikal, in Russia,is 1684.5 m , making it the worlds deepestfreshwater lake. If a beam of light with an angle of incidenceof 59.29 o enters the waterfrom the air, what is...
-
Shebchuk Electronics reports the following information for its ending inventory for 2015: Inventory Items Quantity Cost per unit Market Value per unit Satellite Radios 10 $100 $120 GPS Navigators 20...
-
Show that if A is any m n matrix, then Im A = A and AIn = A.
-
Write a program that reads an unspecified number of scores and determines how many scores are above or equal to the average and how many scores are below the average. Enter a negative number to...
-
Average acceleration is defined as the change of velocity divided by the time taken to make the change, as shown in the following formula: Write a program that prompts the user to enter the starting...
-
Rewrite the Course class in Listing 10.6. Use an ArrayList to replace an array to store students. Draw the new UML diagram for the class. You should not change the original contract of the Course...
-
UNeedit Sports Store, a business owned by Penny Needham, had the following assets and liabilities as at the financial years ended 30th June, 20X1 and 20X2: Required: a What is the owners equity at...
-
Identify whether the following liabilities would be classified as current or non-current at the end of the reporting period. Explain your classification decision. a GST collected b Loan payable in...
-
From the following account balances of Josland at 31 December 20X2 prepare a balance sheet in both T-format and narrative classified format. Cash at bank $113 500 Accounts receivable (net) 52 400...
Study smarter with the SolutionInn App