Write two methods myFloor and myCeil that take a positive double num variable int myFloor(double num) and
Question:
Write two methods myFloor and myCeil that take a positive double num variable int myFloor(double num) and int myCeil(double num). The myFloor method takes num and returns the largest integer number that is less than or equal to x. The myCeil function takes num and finds the smallest number that is greater than or equal to x. Do not use any Math class methods. Incorporate this method into an application that sends a double value to the functions and tests their ability to calculate the required output.
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 0% (3 reviews)
Sure Ill help you understand how to write these functions in Java Both of these concepts are fairly ...View the full answer
Answered By
Ashington Waweru
I am a lecturer, research writer and also a qualified financial analyst and accountant. I am qualified and articulate in many disciplines including English, Accounting, Finance, Quantitative spreadsheet analysis, Economics, and Statistics. I am an expert with sixteen years of experience in online industry-related work. I have a master's in business administration and a bachelor’s degree in education, accounting, and economics options.
I am a writer and proofreading expert with sixteen years of experience in online writing, proofreading, and text editing. I have vast knowledge and experience in writing techniques and styles such as APA, ASA, MLA, Chicago, Turabian, IEEE, and many others.
I am also an online blogger and research writer with sixteen years of writing and proofreading articles and reports. I have written many scripts and articles for blogs, and I also specialize in search engine
I have sixteen years of experience in Excel data entry, Excel data analysis, R-studio quantitative analysis, SPSS quantitative analysis, research writing, and proofreading articles and reports. I will deliver the highest quality online and offline Excel, R, SPSS, and other spreadsheet solutions within your operational deadlines. I have also compiled many original Excel quantitative and text spreadsheets which solve client’s problems in my research writing career.
I have extensive enterprise resource planning accounting, financial modeling, financial reporting, and company analysis: customer relationship management, enterprise resource planning, financial accounting projects, and corporate finance.
I am articulate in psychology, engineering, nursing, counseling, project management, accounting, finance, quantitative spreadsheet analysis, statistical and economic analysis, among many other industry fields and academic disciplines. I work to solve problems and provide accurate and credible solutions and research reports in all industries in the global economy.
I have taught and conducted masters and Ph.D. thesis research for specialists in Quantitative finance, Financial Accounting, Actuarial science, Macroeconomics, Microeconomics, Risk Management, Managerial Economics, Engineering Economics, Financial economics, Taxation and many other disciplines including water engineering, psychology, e-commerce, mechanical engineering, leadership and many others.
I have developed many courses on online websites like Teachable and Thinkific. I also developed an accounting reporting automation software project for Utafiti sacco located at ILRI Uthiru Kenya when I was working there in year 2001.
I am a mature, self-motivated worker who delivers high-quality, on-time reports which solve client’s problems accurately.
I have written many academic and professional industry research papers and tutored many clients from college to university undergraduate, master's and Ph.D. students, and corporate professionals. I anticipate your hiring me.
I know I will deliver the highest quality work you will find anywhere to award me your project work. Please note that I am looking for a long-term work relationship with you. I look forward to you delivering the best service to you.
3.00+
2+ Reviews
10+ Question Solved
Related Book For
Java How To Program Late Objects Version
ISBN: 9780136123712
8th Edition
Authors: Paul Deitel, Deitel & Associates
Question Posted:
Students also viewed these Computer science questions
-
Required a. Use professional judgment in deciding on the preliminary judgment about materiality for earnings, current assets, current liabilities, and total assets. Your conclusions should be stated...
-
In this assignment, you will create a program that allows theuser to draw in a window using brushes of different sizes andcolors. The user will be able to change the size and color of thebrush using...
-
Ivanhoe Company incurred research and development costs of $ 9 0 0 0 0 to develop a patent, and legal fees of $ 3 0 0 0 0 to register the patent. The patent has a legal life of 2 0 years and a useful...
-
Measuring the height of a California redwood tree is very difficult because these trees grow to heights over 300 feet. People familiar with these trees understand that the height of a California...
-
For how many periods must a company present EPS data?
-
The following transactions apply to Farmers Equipment Sales Corp. for 2016: 1. The business was started when Farmers received $60,000 from the issue of common stock. 2. Purchased $160,000 of...
-
How important is it for a leader to be transformational? Why? Use your experience to support your position. (p. 56)
-
A borrower has two alternatives for a loan: (1) Issue a $180,000, 45-day, 10% note or (2) Issue a $180,000, 45-day note that the creditor discounts at 10%. a. Calculate the amount of the interest...
-
Comment on the Saudi Debt Market. How active is the Saudi Debt Market? What are the prospects of the Debt Market in Saudi Arabia? (1 mark) You must comment on two peer posts. (0.5 marks) Support your...
-
Define a method hypotenuse that calculates the hypotenuse of a right triangle when the lengths of the other two sides are given. The method should take two arguments of type double and return the...
-
Write statements that will display a random number from each of the following sets: a) 0, 3, 6, 9, 12. b) 1, 2, 4, 8, 16, 32. c) 10, 20, 30, 40.
-
Carmichael Corporation is in the process of preparing next years budget. The pro forma income statement for the current year is as follows: Required: 1. What is the break-even sales revenue (rounded...
-
Consider the following thermochemical equation: 2 Na 2 O 2 (s) + 2 H 2 O(l) 4 NaOH(s) + O 2 (g) H = -126 kJ Calculate the enthalpy change when 41.5 g of Na 2 O 2 with water?
-
Newton's Laws Introduction Problems
-
Mr. A and B agreed to start a business agreed to share profit and loss based the condition that will profit only when there is profit in excess of BD 10,000 this from of business is called as:...
-
L= {a'e"b"d' | i=1+m and l,m,n 20] a. Write at least 10 strings of the above language in increasing order of string length. b. Write Context Free Grammar (CFG) for the above language.
-
The Beta Co. shows the following results of operation on Dec. 31. Variable cost Fixed costs Direct materials P512,500 Direct labor 575,000 Manufacturing overhead 400,000 P212,500 For the year then...
-
Find the vertices and the foci of the ellipse with equation 9x2 + 16y2 = 144.
-
Test your confidence in the following Project Decisions: SI. # Question 01 02 03 04 05 06 07 08 09 10 How many years did it take to construct the largest Egyptian Pyramid- Pyramid of Cheops? When was...
-
Assume that a private internet requires that the messages at the application layer be encrypted and decrypted for security purposes. If we need to add some information about the encryption/decryption...
-
If a port number is 16 bits (2 bytes), what is the minimum header size at the transport layer of the TCP/IP protocol suite?
-
Assume a private internet uses three different protocols at the data-link layer (L1, L2, and L3). Redraw Figure 2.10 with this assumption. Can we say that, in the data-link layer, we have...
-
Harper, Inc, acquires 40 percent of the outstanding voting stock of Kinman Company on January 1, 2020, for $316,100 in cash. The book value of Kinman's net assets on that date was $610.000, although...
-
Need a help for this! The following information is obtained from the records of Kaiser Company: On January 1, 2017 the following machines were acquired for cash: Production machines costs $ 6,000...
-
Book 51,500 Hint rint rences Raw Materials Inventory Debit Credit Beginning 10,100 Purchases 45,500 Available for use 55,600 DM used Ending 4,100 Work in Process Inventory Debit Credit Beginning...
Study smarter with the SolutionInn App