Write a Java application that uses the Math class to determine the answers for each of the
Question:
Write a Java application that uses the Math class to determine the answers for each of the following:
a. The square root of 37
b. The sine and cosine of 300
c. The value of the floor, ceiling, and round of 22.8
d. The larger and the smaller of the character ‘D’ and the integer 71
e. A random number between 0 and 20 (The random() method returns a value between 0 and 1; you want a number that is 20 times larger.) Save the application as MathTest.java.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 55% (9 reviews)
MathTestjava public class MathTest public static void mainString args Systemoutprintln The squar...View the full answer
Answered By
Asim farooq
I have done MS finance and expertise in the field of Accounting, finance, cost accounting, security analysis and portfolio management and management, MS office is at my fingertips, I want my client to take advantage of my practical knowledge. I have been mentoring my client on a freelancer website from last two years, Currently I am working in Telecom company as a financial analyst and before that working as an accountant with Pepsi for one year. I also join a nonprofit organization as a finance assistant to my job duties are making payment to client after tax calculation, I have started my professional career from teaching I was teaching to a master's level student for two years in the evening.
My Expert Service
Financial accounting, Financial management, Cost accounting, Human resource management, Business communication and report writing. Financial accounting : • Journal entries • Financial statements including balance sheet, Profit & Loss account, Cash flow statement • Adjustment entries • Ratio analysis • Accounting concepts • Single entry accounting • Double entry accounting • Bills of exchange • Bank reconciliation statements Cost accounting : • Budgeting • Job order costing • Process costing • Cost of goods sold Financial management : • Capital budgeting • Net Present Value (NPV) • Internal Rate of Return (IRR) • Payback period • Discounted cash flows • Financial analysis • Capital assets pricing model • Simple interest, Compound interest & annuities
4.40+
65+ Reviews
86+ Question Solved
Related Book For
Question Posted:
Students also viewed these Computer science questions
-
In 1952, A. S. Douglas wrote his University of Cambridge Ph.D. dissertation on human-computer interaction, and created the first graphical computer gamea version of Tic-Tac-Toe. The game was...
-
Write an application that uses a loop to create the pattern of Os shown in Figure 6-32, in which each O is displayed one additional space to the right. Save the file as DiagonalOs.java.
-
a. Write an application that accepts three Strings from the user and, without regard to case, appropriately displays a message that indicates whether the Strings were entered in alphabetical order....
-
What are the key issues associated with managing an international assignment?
-
Jayden, a calendar year taxpayer, paid $16,000 in medical expenses and sustained a $20,000 casualty loss in 2016. He expects $12,000 of the medical expenses and $14,000 of the casualty loss to be...
-
On an interval of [0,2), can the sine and cosine values of a radian measure ever be equal? If so, where?
-
Suppose you are considering an investment that grew by 32 percent across a five-year holding period. If you wanted to state this rate of return as an effective annual rate (that is, with annual...
-
Use the data in GPA2.RAW for this exercise. (i) Consider the equation where colgpa is cumulative college grade point average, hsize is size of high school graduating class, in hundreds, hsperc is...
-
Sketch a triangle that has acute angle 0, and find the other five trigonometric ratios of 0. cos(0) = 35 37 Step 1 Cosine, in terms of the right triangle, is defined as the adjacent This means that...
-
Mountain Mines Lubrication Ltd. (MML) supplies lubricant to mining operations in northern British Columbia and the Northwest Territories. MML commenced operations four years ago and is based in...
-
a. Create a class named Circle with fields named radius, diameter, and area. Include a constructor that sets the radius to 1 and calculates the other two values. Also include methods named...
-
Write a program that declares two LocalDate objects and assign values that represent January 31 and December 31 in the current year. Display output that demonstrates the dates displayed when one,...
-
Environmentalists accuse us of blocking the plan to convert Antarctica into a world park. In fact, nothing could be further from the truth. Antarctica is a huge continent teeming with life. It is the...
-
Compare and contrast containerization technologies (e.g., Docker, Kubernetes) with traditional virtualization approaches. What are the key differences in terms of resource isolation, performance, and...
-
The company called: "Restaurantes Tlaquepaque, SA de CV", with tax address at Calle Jurez, Number 88, Colonia Centro, San Pedro Tlaquepaque, Jalisco., and with RFC: RTA210225HM1, is a recently...
-
Wing Ltd acquired all the issued shares of Leg Ltd for cash consideration of $300 000. At the date of acquisition Leg Ltd had: - share capital $100 000. - retained earnings $100 000. - buildings:...
-
Now that you've completed your Westlaw Fundamentals Certification, you will learn about another type of legal research tool that is often used by small firms that either don't want to pay or don't...
-
At age 37 you invest $1,500 that earns 8 percent each year. At age 52 you invest $1,500 that earns 11 percent per year. In which case would you have more money at age 65?
-
Differentiate the function. G(q) = (1 + q -1 ) 2
-
Explain the term "Equivalent Units". Why are they calculated in process costing? [4 Marks] [minimum 350 words]
-
When you input data in a loop within a program, the input statement that precedes the loop _____________. a. Is the only part of the program allowed to be unstructured b. Cannot result in eof c. Is...
-
A group of statements that executes as a unit is a _____________. a. Block b. Family c. Chunk d. Cohort
-
Which of the following is acceptable in a structured program? a. Placing a sequence within the true branch of a dual-alternative decision b. Placing a decision within a loop c. Placing a loop within...
-
abc equipment purchased equipment on 10/1/2023 that costs 12000 by issuing note payable. note is a three years 8% note and equipment will last in 5 years with no salvage value. calculate the ajusting...
-
Generally, the receipt of corporate bond interest is more valuable than preferred dividends to corporate investors. True or False
-
ABC Corporations Certificate of Incorporation was revoked by SEC for failure to comply with reportorial requirements. It has no creditor and its lone asset is a parcel of land. Out of 9 directors,...
Study smarter with the SolutionInn App