{x/x is an integer such as x2 =2}
A college freshman borrowed P2,000 from a bank for his tuition fee and promised to pay the amount for one year. He received only the amount of P1,920 after the bank collected the advance interest of P80.00. What was the rate of discount?
Create a class named as Customerunder package :package2, which contains following private variables/ attributes,
Member Field name
Type
id
Long
name
String
gender
Character (M/F)
String
contact Number
String
Mark all the attributes as private
Add a default constructor and a parameterized constructor to take in all attributes.
Create a separate class Main under package :package2, within it's main() method, make 2 Customer objects and then compare between these Customers.
Two members are considered same if they have same email and contactNumber. Implement the logic in the appropriate function. (override equals method in class Customer)
Sample Input:
Customer1:
ld: 45
Name: John
Gender: M
Email: john@a.com contact number: +997-4854-7485965123
Customer2:
ld: 12
Name: Marc
Gender: M
Email: marc@a.com
Contact number: +997-4854-7485965123
Sample Output:
Customer 1 and Customer 2 are different
Create a class named as Customer under package :package1, which contains following private variables/ attributes,
Member Field name
Type
id
Long
name
String
gender
Character (M/F)
String
contactNumber
String
Mark all the attributes as private
Create / Generate appropriate Getters & Setters.
When the "customer" object is printed, it should display the following details: (override to String method)
. Customer: name
. Customer contact details: contact Number, email
Refer Sample Input and Outputs.
HINT:
Please print customer id in the Main class.
The toString method should print as specified in the problem statement [Name and contact details alone]
Sample Input:
Enter Customer Details:
ID: 45
Name: John
Gender: M
Email: john@a.com
Contact number: +997-4854-7485965123
Sample Output:
Customer id 45
Customer: John
Customer contact details:+997-4854-7485965123,
Suppose that with a budget of $200, Deborah spends $120 on sushi and $80 on bagels when sushi costs $2 per piece and bagels cost $2 per bagel. Then, the price of bagels falls to $1 per bagel.
Write a program to do the following tak
Four Strings are accepted through command line arguments.
Each string is passed to a function inPalindrome) that checks whether the string is a palindume or net and retums true or falser accordingly
If the string is a palindroene it is stored in a text file named "Palindrome.txt"
and print a user friendly message on console also
Write the expression as a single logarithm.
4log6x-1/5 log6z + 2log6y
A circular oil spill has a radius of 2 miles. After a day, the radius of the oil spill increases by 3 miles. By how many square miles does the area of the oil spill increase? Round to the nearest thousand, if necessary
show in a truth table that p↔q and (p^q) v (¬p^¬q) are logically equivalent.
Calorimetry involves the measurement of the ___________________.
a. quantity of work exchanged between a systems.
b. quantity of heat exchanged between the systems.
c. quantity of heat exchanged between a system and the surroundings.
d. quantity of work exchanged between a system and the surroundings.
The symbol, q-, means ___________.
a. Work is done on the surroundings.
b. Heat flows from the surroundings to the system.
c. Heat flows from the system to the surroundings.
d. Work is done on both the system and the surroundings.
The amount of energy needed to increase the temperature of a material by 1°C.
a. specific heat transfer
b. heat capacity
c. coffee cup calorimeter
d. heat constant