I) (30 pts) - This assignment will acquaint you with the use of parameter passing, return...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
I) (30 pts) - This assignment will acquaint you with the use of parameter passing, return values, if/else blocks, and user inputs. You will create a program that prompts the user for a set of information, then executes simple algebra on those values and returns a summary report which includes name and size of each shape and comparison result. Your program should perform the following: (line break, 11 pt) A) (3/30 pts) - Prompt the user for what to compare (area or perimeter) B) (3/30 pts) - Prompt the user for a first shape (line break, 11 pt) C) (3/30 pts) - Prompt the user for the first shape's dimensions 1) Triangles are assumed to be isosceles. (line break, 11 pt) D) (3/30 pts) - Prompt the user for a second shape 1) Assume the first and second shape are different shape. (line break, 11 pt) E) (3/30 pts) - Prompt the user for the second shape's dimensions (line break, 11 pt) F) (7/30 pts) - Calculate the shape size based on the user's selection in section A) (area or perimeter) and display the summary statement (see the example log below) (line break, 11 pt) G) (4/30 pts) - As an additional requirement, no method (including main () ) may contain more than 12 lines of instruction, discounting lines which only contain braces ("{" || "}"), method headers, and comments. I) (30 pts) - This assignment will acquaint you with the use of parameter passing, return values, if/else blocks, and user inputs. You will create a program that prompts the user for a set of information, then executes simple algebra on those values and returns a summary report which includes name and size of each shape and comparison result. Your program should perform the following: (line break, 11 pt) A) (3/30 pts) - Prompt the user for what to compare (area or perimeter) B) (3/30 pts) - Prompt the user for a first shape (line break, 11 pt) C) (3/30 pts) - Prompt the user for the first shape's dimensions 1) Triangles are assumed to be isosceles. (line break, 11 pt) D) (3/30 pts) - Prompt the user for a second shape 1) Assume the first and second shape are different shape. (line break, 11 pt) E) (3/30 pts) - Prompt the user for the second shape's dimensions (line break, 11 pt) F) (7/30 pts) - Calculate the shape size based on the user's selection in section A) (area or perimeter) and display the summary statement (see the example log below) (line break, 11 pt) G) (4/30 pts) - As an additional requirement, no method (including main () ) may contain more than 12 lines of instruction, discounting lines which only contain braces ("{" || "}"), method headers, and comments.
Expert Answer:
Related Book For
Essentials of Marketing
ISBN: 978-0078028885
13th edition
Authors: William D. Perreault, Joseph P. Cannon
Posted Date:
Students also viewed these programming questions
-
Borrowing Library Books For Americans using library services, the American Library Association ( ALA ) claims that 6 7 % borrow books. A library director feels that this is not true, so he randomly...
-
Calculate the present value of a continuous revenue stream of $1200 per year for 3 years at an interest rate of 8% per year compounded continuously. Round your answer to two decimal places. Present...
-
Python and most Python libraries are free to download or use, though many users use Python through a paid service. Paid services help IT organizations manage the risks associated with the use of...
-
rewrite/downside Integrity and credibility are the ethics of professional practice that Juan Gomez was lacking in this instance. Juan Gomez lacked integrity because he created a conflict of interest...
-
Big Town Computers has premises in the main street of a large regional city. The business is owned by Max and Betty Waldup, who purchased it three years ago. Betty has an extensive background in IT...
-
Match the materials control form in the left column with the person responsible for its preparation in the right column. (A selection may be used more than once.) a. Purchase requisition 1....
-
Kaisha Corporation engaged in the following activities during the year: Service Revenue, $13,200; Rent Expense, $1,200; Wages Expense, $8,340; Advertising Expense, $1,350; Utilities Expense, $900;...
-
Much to your surprise, you were selected to appear on the TV show The Price Is Right. As a result of your prowess in identifying how many rolls of toilet paper a typical American family keeps on...
-
15,16 Math 110 Course Resources Curve Sketching Course Packet on critical points Consider the function f(x) = 6x + + 7. X Enter the number of critical pointsumbers of f(x). Determine the...
-
Between 1999 and 2002, the shares of SKF and Volvo had the following return per year: 1999 2000 2001 2002 SKF -12 % -5% 23% 2% Volvo -15% 11% 34% -6% Use this information to compute: a) The standard...
-
Leadership is not a magnetic personality, that can just as well be a glib tongue. It is not 'making friends and influencing people,' that is flattery. Leadership is lifting a person's vision to...
-
Write a Java class, called RatioClass, with three attributes a (int), b (int), and ratio (double). Write another Java class, called Compute Ratio, with a main method which reads two positive integers...
-
Celebrity Co.'s pretax GAAP for the current year is 110,000. Nondeductible fines of $2,000 are included in pretax GAAP income. Tax depreciation in excess of GAAP amounted to 25,000 and there were...
-
Shirts were purchased for $13.50 each and were marked up by $18.75. During Christmas, they were discounted by $6.85 per shirt. a. What was the rate of markdown? 36.53 % Round to two decimal places b....
-
What are the business strategies that we can give for hong kong port to improve and why! Please give 4 types of business strategies for trade globally
-
Two-Leg Company manufactures slacks and jeans under a variety ofbrand names, such as Dockers and 501 Jeans.Slacks and jeans are assembled by a variety of different sewingoperations. Assume that 2...
-
1-Stern observed all of the following results EXCEPT _______ in his experiment. A-one of the recombinant phenotypes was associated with an X chromosome of normal length B-the number of car, B+ male...
-
Develop brief answers to each of the following questions: 1. Under what conditions would a company have both minority interest and goodwill in a consolidation? 2. Why must the financial statements of...
-
Omar Corporation, which has begun investing in trading securities, engaged in the following transactions: Jan. 6 Purchased 7,000 shares of Quaker Oats stock, $30 per share. Feb. 15 Purchased 9,000...
-
Payroll for piece-rate wage system LPGA Manufacturing Company operates on a modified wage plan. During one week's operation, the following direct labor costs were incurred: Required: 1. Compute the...
Study smarter with the SolutionInn App