Jaya Jusco (JJ) Sdn Bhd needs you to develop an application to calculate their customer JJ point’s reward. Define a class named Customer with the following variables declarations:
String CustName;
String CustAddress;
int pointRewards;
a) Provide a default constructor and another constructor with three parameters. The constructor with parameters will assign the three values (String CustomerName, String CustomerAddress, int point). Define a public instance method named calculatePoint()to calculate the customer rewards if the point is greater than 300 points. The formula indicates that if the point is greater than 300 points, the system will add up extra 50 points.
b)Define another class named Testing to test the Customer class. Use the Scanner method to get the CustomerName, CustomerAddress and point values from the user. Declare class and create object Customer. Call the calculatePoint( ) method to display the current customer points reward.
What is the overall chemical changes that occur during one complete turn of the krebs cycle?
ewrite the following C++ code in pseudocode. (5)
for (int x = 1; x <= 10; x++) {
for (int y = 10; y >= x; y--) {
if (y % 2 == 0) {
cout << "*";
}
else {
cout << "#";
}
}
cout << endl;
Write a C++ program for a lecturer to convert all his (5 students) student marks to
a percentage. Enter the total mark of the test, and then enter for each student his
student number, and the mark obtained by the student. Display the student number,
percentage, and status indicating whether the student passed (50% or more) or failed
the test.
Include the following function and sub procedures (as shown in the table below):
LectureApp
NO METHOD NAME DESCRIPTION MARK
1 main This function prompts for the total and
also invokes the required procedures to
display the results.
7
2 getData This sub procedure prompts for the
student number and mark obtained by the
student from the end-user.
4
3 determinePercentage This function returns the mark obtained in
percentage.
4
4 determineStatus This function returns true if the student
passed or false, otherwise.
6
5 printOutput This sub procedure displays the output as
shown in the sample output.
4
An elevator is moving up at a constant velocity of 2.50 m/s the man has a mass of 85.0 kg how large is the force exerts on the man
The reaction between solid white phosphorus and oxygen produces solid
tetraphosphorusdecoxide (P4010).
a. Write the balanced chemical equation of the reaction
b. Determine the mass of tetraphosphorusdecoxide (P4010) formed if 26.0 g of
phosphorus (Pd) and 49.5 g of oxygen (O2) are combined.
c. How much of the excess reactant remains after the reaction stops?
When 𝐼 = 10, 𝑎 = 2 and 𝑛 = 5, calculate the value of 𝑑 in the formula below:
𝐼 = 𝑎 + (𝑛 − 1) 𝑑
[1] 𝑑 = 2
[2] 𝑑 = 3
[3] 𝑑 =48
[4] 𝑑 = 8
Simplify the following expression as far as possible: √64𝑝 2 × √𝑝 64 × √𝑝 2 [1] 8p 11 [2] 32p 11 [3] 8p 34 [4] 32p 34
The cost for labour and materials for painting is R60,00 per square metre. How much will it cost to paint a square parking area of sides with length 32 metres. [1] R193 019,45. [2] R1 920,00. [3] R3 840,00. [4] R61 440,00
At the surface of Jupiter’s moon Io the acceleration due to gravity is g=1.81 m/s2 . A watermelon weighs 44.0 N at the surface of the earth. a) What is the mass on the earth’s surface? b) What are its mass and weight on the surface of Io?