Create a Java program named PE2Lastname. (ex. PE2Dela_Cruz)
Construct a simple purchasing program based on the UML Class Diagram below.
The (-) symbol represents private variables, while(+) represent public.
PE2Lastname
-itemName: String
-itemPrice:double
-itemQuantity:int
-amountDue:double
+setItemName(String newItemName): void
+setTotalCost(int quantity, double price): void
+getItemName(): String
getTotalCost(): double
+readInput(): void
+writeOutput():void
Note: The readInput() method will be used to accept user input through the Scanner
class. This is done by doing the following:
a.
Importing Scanner from the java.util package.
b.
Instantiating an object of the Scanner class, Scanner s = new
Scanner(System.in);
c.
Storing the input to the variable name based on data type:
a.
For String: s.nextLine()
b.
For int: s.nextInt()
c.
For double: s.nextDouble()
d.
Write a C program using two dimensional arrays that determine the even numbers among the twelve input values from the keyboard and prints the list of these even numbers
c) The Rectangle class contains:
• Two instance variables width (double) and length (double).
• Three constructors as shown. The no-arg constructor initializes the width and length to 1.0.
• Getter and setter for all the instance variables.
• Methods getArea() and getPerimeter().
• Override the inherited toString() method, to return "A Rectangle with width=xxx and length=zzz, which is a subclass of yyy", where yyy is the output of the toString() method from the superclass.
Determination of Precision
Apparatus Smallest Calibration, Precision,
10-mL graduated cylinder
50-mLgraduated cylinder
100-mL graduated cylinder
Ruler
The World Meteorological Organization has determined that the world's former record high
temperature 136.4°F (at Al Aziziyah, Libya on September 13, 1922) was miscalculated by about 12.6°F.
What is the correct temperature, in °C, taking into consideration the 12.6°F mistake?
Calculate the average mass of the three samples that have the masses of 10.25 g, 5.5654 g, and
105.4 g. Show your answer with the correct number of significant figures.
The demand and supply equations are Qd = 100 – 10P and Qs = 30 + 5P. Compute for the
Price equilibrium and quantity equilibrium.
An electron moves with an energy of 6.0×10^-16J across a magnetic field of 4.0×10^-3T perpendicularly. Calculate the velocity of electron, force on the electron,orbital radius of the electron and the period of motion.
Write PL/SQL block to create a trigger to update the records according to working days that is you can not update record in holidays
With the continuous advancements taking place in the information technology (IT) sector, could
these advancements cause financial intermediation to become extinct? Discuss.