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...
-
A hollow circular tube A fits over the end of a solid circular bar B, as shown in the figure. The far ends of both bars are fixed. Initially, a hole through bar B makes an angle ( with a line through...
-
Use appropriate gestures to help make a point. Use hand movements, facial expressions, and body language. Do not stand frozen to one spot; move around, if appropriate. In a large auditorium, it is...
-
Summer Tyme, Inc., is considering a new three-year expansion project that requires an initial fixed asset investment of $3.9 million. The fixed asset will be depreciated straight-line to zero over...
-
Stitch Fix's business model is based on offering customers the most selection so that they can make the best choice in fashion. Select one: True False
-
Santana Rey, owner of Business Solutions, decides to prepare a statement of cash flows for her business. (Although the serial problem allowed for various ownership changes in earlier chapters, we...
-
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,...
-
Which of the following types of external data might be valuable to JC Consulting, but is not currently stored in their internal Access database? a. Clicks on their home page b. Hashtag references in...
-
16. List I describes four systems, each with two particles A and B in relative motion as shown in figures. List II gives possible magnitude of their relative velocities (in m s) at time t = 3 S....
-
17. List I describes thermodynamic processes in four different systems. List II gives the magnitudes (either exactly or as a close approximation) of possible changes in the internal energy of the...
-
1. 2 mol of Hg(g) is combusted in a fixed volume bomb calorimeter with excess of O2 at 298 K and 1 atm into HgO(s). During the reaction, temperature increases from 298.0 K to 312.8 K. If heat...
-
3. A solution is prepared by mixing 0.01 mol each of H2CO3, NaHCO3, Na2CO3, and NaOH in 100 mL of water. pH of the resulting solution is [Given: pk, and pKa2 of H2CO3 are 6.37 and 10.32,...
-
6. Consider the following reaction. LOH red phosphorous Br2 R (major product) Br On estimation of bromine in 1.00 g of R using Carius method, the amount of AgBr formed (in g) is [Given: Atomic mass...
-
A frequency distribution of a random sample of means is a a. Random sample. b. Confidence interval. c. Sampling distribution of means. d. Standard error of the mean.
-
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...
-
All else constant, if the yield to maturity of a bond increases, the the value of the bond __________. a. increases b. decreases c. remains the same d. not enough information To answer enter a, b, c,...
-
Martha s Vineyard Marine Supply is a wholesaler for a large variety of boating and fishing equipment. The company s controller, Mathew Knight, has recently completed a cost study of the firm s...
-
1. Compute the productivity profiles for each year. If required, round your answers to two decimal places. 2a. Did productivity improve? 2b. Explain why or why not
Study smarter with the SolutionInn App