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...
-
Chase Manhattan Bank The workload in many areas of bank operations has the characteristics of a nonuniform distribution with respect to time of day. For example, at Chase Manhattan Bank, the number...
-
GDL Enterprises has the following account balances at December 31, 2010. The inventory balance was determined using FIFO. GDL Enterprises has determined that the replacement cost (current market...
-
Consider a European electronic crossing network that runs six crosses daily, that is, the orders are matched six times a day. This network allows a participant to specify several constraints, such as...
-
Discuss how innovation challenges could be managed to optimise technology adoption in the typical Namibian small enterprise. The following will be applied to calculate your final test mark:...
-
Sec uses 60,000 tons of salt over a 50-week working year. It costs 100 to order salt and delivery follows two weeks later. Storage costs for the salt are expected to be 0.10 per ton per year. The...
-
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,...
-
The Phlanders Flange Company has been doing quite well lately and would like to accelerate its growth within the flange industry. Harry Flatiron, the firms CEO, has become interested in growth...
-
Lakeland Manufacturing Company has a patent on a high-pressure hydraulic valve. The valve is a major improvement in high-pressure hydraulic systems, and Lakeland has enjoyed a monopoly position in...
-
The table below illustrates the trend in Non-Performing Loans (%) Sept 2018 20.03 Mar 2018 June 2018 22.58 22.56 Dec 2018 18.19 a. Explain the following banking terminologies related to credit. i....
-
1. Define, in detail, what is the impact of knowledge on creativity? 2. What are some of the downsides (at least three) to geographical clustering? 3. Explain, in detail, the concept of technology...
-
Include all the details and how to solve Solving for i in an Annuity -10,500 2 Present Value Future Value Annual Payment 5 Number of Years Annual Rate 0 1,500 10 Instruction: Suppose that you are...
-
A description of how the new management system will enhance security of the business's data and intellectual property. Briefly discuss any changes that may be required to internal systems and...
-
A 4-m-high and 6-m-long wall is constructed of two large 2-cm-thick steel plates (k = 15 W/m·K) separated by 1-cm-thick and 20-cm wide steel bars placed 99 cm apart. The remaining space...
-
What types of inventory issues Starbucks might reflect upon at the end of each year? The mission of Starbucks is to inspire and nurture the human spiritone person, one cup, and one neighborhood at a...
-
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...
-
Suppose Stocks A, B and C are the only three component stocks in a benchmark index. The number of shares outstanding of Stocks A, B and C are 369,000 shares, 327,000 shares, and 240,000 shares,...
-
Botanists have determined that some species of weed grow in a circular pattern. For one such species, the area A , in square meters, can be approximated by A ( t ) = 0.004 t 2 , where t is the time...
-
Book Print ciences Gallatin Carpet Cleaning is a small, family-owned business operating out of Bozeman, Montana. For its services, the company has always charged a flat fee per hundred square feet of...
Study smarter with the SolutionInn App