Below are some cases. LIST THE ALGORITHM, PSEUDOCODE AND FLOW CHART OF THE FOLLOWING CASES. -THE PROGRAM
Fantastic news! We've Found the answer you've been seeking!
Question:
Below are some cases. LIST THE ALGORITHM, PSEUDOCODE AND FLOW CHART OF THE FOLLOWING CASES.
-THE PROGRAM LANGUAGE IS JAVA
- FOLLOW THE GIVEN EXAMPLE BELOW
-PLEASE PROVIDE AN IMAGE FOR FLOW CHART
-INSTRUCTIONS AND REFERENCES ARE PROVIDED
Thank you
Transcribed Image Text:
1. Create a program that asks a user to input a whole number except 0. The program should determine if the number is a negative even number or a positive even number. If the number is a negative even number, the program displays "the number is a negative even number.", otherwise, "the number is a positive even number." 2. Write a program to convert degrees Fahrenheit to degrees Celsius. The program accepts the temperature in degrees Fahrenheit and the program should be able to display the equivalent temperature in degrees Celsius. 3. Write a program that takes the length and width of a rectangular yard in yard and the length and width of a rectangular house situated in the yard which is also measured in yard. Your program should compute the time required to cut the grass at the rate of two square feet a second. 4. Create a program to find the weighted average of four test scores entered by the users. The inputs should be from 50 to 100. The program also displays the average grade. If the average grade is greater than 75 then display "you passed!", otherwise, display "you failed." 5. The Pythagorean Theorem states that the sum of the squares of the sides of a right triangle is equal to the square of the hypotenuse. For example, if two sides of a right triangle have lengths of 3 and 4, then the hypotenuse must have a length of 5. Together the integers 3,4, and 5 form the Pythagorean triple. There are an infinite number of such triples. Given two positive integers, m and n, where m>n, a Pythagorean Triple can be generated by the following formulas: Side1=m²-n² Side2=2mn Hypotenuse-m²+n² 1. Create a program that asks a user to input a whole number except 0. The program should determine if the number is a negative even number or a positive even number. If the number is a negative even number, the program displays "the number is a negative even number.", otherwise, "the number is a positive even number." 2. Write a program to convert degrees Fahrenheit to degrees Celsius. The program accepts the temperature in degrees Fahrenheit and the program should be able to display the equivalent temperature in degrees Celsius. 3. Write a program that takes the length and width of a rectangular yard in yard and the length and width of a rectangular house situated in the yard which is also measured in yard. Your program should compute the time required to cut the grass at the rate of two square feet a second. 4. Create a program to find the weighted average of four test scores entered by the users. The inputs should be from 50 to 100. The program also displays the average grade. If the average grade is greater than 75 then display "you passed!", otherwise, display "you failed." 5. The Pythagorean Theorem states that the sum of the squares of the sides of a right triangle is equal to the square of the hypotenuse. For example, if two sides of a right triangle have lengths of 3 and 4, then the hypotenuse must have a length of 5. Together the integers 3,4, and 5 form the Pythagorean triple. There are an infinite number of such triples. Given two positive integers, m and n, where m>n, a Pythagorean Triple can be generated by the following formulas: Side1=m²-n² Side2=2mn Hypotenuse-m²+n²
Expert Answer:
Answer rating: 100% (QA)
For the first case Algorithm 1 Ask the user to input a whole number except 0 2 Check if the number i... View the full answer
Related Book For
Computer Architecture Fundamentals And Principles Of Computer Design
ISBN: 9781032097336
2nd Edition
Authors: Joseph D. Dumas II
Posted Date:
Students also viewed these programming questions
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
can someone solve this Modern workstations typically have memory systems that incorporate two or three levels of caching. Explain why they are designed like this. [4 marks] In order to investigate...
-
answer the question clearly You are building a flight-control system for which a convincing safety case must be made. Would you assign the tasks of safety requirements engineering, test case...
-
A trader depreciates his vehicles at 40% per annum using the reducing balance method, with proportionate depreciation in the year of acquisition. In addition to vehicles acquired on 1 July 2010 for...
-
Consider the system described in state variable form by x(t) = Ax(t) + Bu(t) y(t) = Cx(t) where and where k1 k2 and both k1 and k2 are real numbers. (a) Compute the state transition matrix...
-
Write an SQL statement to display the SKU, SKU_Description, and Department of all SKUs that appear in both the Cape Codd 2013 Catalog (either in the printed catalog or on the Web site) and the Cape...
-
The following ratios are available for Bachus Inc. and Newton Inc. Compared to Newton Inc., Bachus Inc. has: (a) higher liquidity, higher solvency, and higher profitability. (b) lower liquidity,...
-
Your aunt offers you a choice of $20,100 in 20 years or $870 today. If money is discounted at 17 percent, which should you choose?
-
Windmill Corporation manufactures products in its plants in lowa, Canada, Ireland, and Australia. Windmill conducts its operations in Canada through a 5 0 percent - owned joint venture, CanCo. CanCo...
-
All American Telephones Inc. is considering the production of a new cell phone. The project will require an investment of $13 million. If the phone is well received, the project will produce cash...
-
Coca-Cola Company owns a fleet of delivery trucks with a book value of $8,000,000. An impairment test reveals that the fair value of the fleet has decreased to $6,000,000 due to technological...
-
What are the benefits or disadvantages of ER diagrams? Why bother with logical design and not just create tables and columns (physical design) directly? Note: Provide a reference.
-
2. Suppose the S&P 500 index future is trading at 1,100. You would like to long 10 contracts? What is the total value of the stock index futures contracts? Use the multiplier of 250.
-
First Argument Even though it's non profit they still receive money. The Incident happened outside of working hours. John dobbs was encouraged to build a rapport with the kids a reasonable person the...
-
Firm X reports a cost of debt at 7.00 percent while its cost of levered equity is 17.0 percent. The firm has a 0.45 debt-equity ratio. What is its WACC if there are no taxes?
-
If the acquiring firm is planning on using their equity (stock) as form of payment when acquiring another firm, how would you expect the stock market to react to the acquisition announcement? Explain
-
Match each definition with its related term or abbreviation by selecting the appropriate term or abbreviation. a. Definition: A system that collects and processes financial information about an...
-
The following information is for Montreal Gloves Inc. for the year 2020: Manufacturing costs Number of gloves manufactured Beginning inventory $ 3,016,700 311,000 pairs 0 pairs Sales in 2020 were...
-
Suppose a USB data packet being transmitted at Full Speed consists of a sync pattern that lasts 8 bit times, an 8-bit PID, 1024 bytes of data, and 16 bits of CRC information. What is the minimum time...
-
Give an example of how dataflow techniques have influenced and/ or been used in conventional computer design.
-
Why does a hard disk that rotates at higher RPM generally outperform one that rotates at lower RPM? Under what circumstances might this not be the case?
-
You are considering the following investment: The discount rate is 11% and the corporate tax rate is 34%. a. Calculate the project NPV using straight-line depreciation. b. What will be the company's...
-
A factory is considering the purchase of a new machine for one of its units. The machine costs $100,000. The machine will be depreciated on a straight line basis over its 10-year life to a salvage...
-
The ABD Company is considering buying a new machine for one of its factories. The machine cost is $100,000 and its expected life span is 8 years. The machine is expected to reduce the production cost...
Study smarter with the SolutionInn App