Create an OOP Java program that will ASK the user for the Prelim, Midterm, Prefinal, and Finals grades. Calculate for the FINAL GRADE (follow the calculation instructions below). Display the final grade on the console.
Calculation for Final Grade:
Get the 20% of the Prelim Grade.
Get the 20% of the Midterm Grade.
Get the 20% of the Prefinal Grade.
Get the 40% of the Finals Grade.
Add all four results. This will be the Final Grade.
1. Create two (2) classes: MyMainClass and SecondClass.
2.The class SecondClass has 5 double attributes: prelim, midterm, prefinal, finals.
3.Create one (1) constructor method to set the prelim, midterm, prefinal, and finals grades.
4.Create one (1) accessor method to calculate for and return the final grade output.
Display the final grade output in the MyMainClass.
Sample output:
Enter prelim grade:75
Enter the midterm grade: 80
Enter the prefinal grade: 90
Enter the final grade: 91
Your final grade is 85.4
Suppose you are given a sequence of numbers as follows I, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144. .Now. you want to find the n number of the sequence i.e.. if you input n-7, program will give you output 13, for n=10, output=55. You MUST use dynamic programming technique to solve this problem and implement your solution in C language. What is the running time of your algorithm (write it in your text file).
Discuss the functions of each layer of the OSI model and protocols used.
Suppose you are given 1000 unordered integer numbers ranging from 10-100. Now you have to sort these numbers decreasing order. Implement a suitable sorting algorithm which would take lesser time in C language. Your program would take these 1000 numbers from the user and gives output of these 1000 numbers but in sorted order. Write a short note on why you have chosen your algorithm to solve this problem.
Compound X contains only carbon, hydrogen and oxygen. A 0.2000 g sample of compound X was burnt completely in a combustion vessel to yield 0.3906 g of C02 and 0.200 g of H20. Determine the empirical formula of compound X.
Write a c++ program that computes the product of two matrix ?
HINT; -Row of the frist matrix should be equal to column of the second matrix.
- It requires three nested loop.
- elements of both matrix should be accepted from keyboard.
Write a c++ program which sorts elements of array in both as increasing and decreasing order ?
HINT; - Size of array =10
- Data type = int
- Name of array = data
- Accept all input from user
Learning Task 3
Determine if liquid water will spontaneously freeze at -10.00 oC? Is it spontaneous at +10.00 oC? What can you say about
the values of ΔSuniv?
Determine the number of moles of oxygen required to burn 12 moles of ethane (C2H6); 2C2H6 + 7 O2 = 4 CO2 + 6 H2O
Calculate the theoretical yield of AlF3 obtained from the reaction of 0.45 mole of Al in the reaction: 2 Al + 3F2= 2 AlF3