A truck needs to transport bananas, pears, and apples from town A to town D. Along...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
A truck needs to transport bananas, pears, and apples from town A to town D. Along the way, the truck needs to stop in towns B and C respectively do to pickups. These are as follows: Town B Bananas -> pickup 15 Pears -> pickup 5 Apples -> pickup 7 Town C -- Bananas -> pick up 80% of the current load Pears -> pick up 25% of the current load Apples -> pick up 12 Create a Java program called Truck Fruit TransportXYZ (replace XYZ by your first and last names). Prompt the user to enter the initial number of each fruits at departure in town A. Display the number of fruits on each category after towns B, C and D. After town D, find out the categories that successfully pass the check points based on the following criteria: Bananas -> Between 40 and 60 (inclusive) Pears -> More than 15 Apples -> More than 20 and less than 50 You are REQUIRED to use augmented operators. Any submission without augmented operators will receive no credit. Please submit your Java file. Sample runs are attached. Enter initial number of bananas, pears and apples at town A: 10 10 10 |---- Town A --- Bananas: 10, pears: 10, apples: 10 ---- Town B ---- Bananas: 25, pears: 15, apples: 17 --- Town C Bananas: 45, pears: 18, apples: 29 Town D --- Bananas: 45, pears: 18, apples: 29 --- Checkpoints Bananas pass. Between 40 and 60 (inclusive) Pears pass. More than 15 Apples pass. More than 20 and less than 50 A truck needs to transport bananas, pears, and apples from town A to town D. Along the way, the truck needs to stop in towns B and C respectively do to pickups. These are as follows: Town B Bananas -> pickup 15 Pears -> pickup 5 Apples -> pickup 7 Town C -- Bananas -> pick up 80% of the current load Pears -> pick up 25% of the current load Apples -> pick up 12 Create a Java program called Truck Fruit TransportXYZ (replace XYZ by your first and last names). Prompt the user to enter the initial number of each fruits at departure in town A. Display the number of fruits on each category after towns B, C and D. After town D, find out the categories that successfully pass the check points based on the following criteria: Bananas -> Between 40 and 60 (inclusive) Pears -> More than 15 Apples -> More than 20 and less than 50 You are REQUIRED to use augmented operators. Any submission without augmented operators will receive no credit. Please submit your Java file. Sample runs are attached. Enter initial number of bananas, pears and apples at town A: 10 10 10 |---- Town A --- Bananas: 10, pears: 10, apples: 10 ---- Town B ---- Bananas: 25, pears: 15, apples: 17 --- Town C Bananas: 45, pears: 18, apples: 29 Town D --- Bananas: 45, pears: 18, apples: 29 --- Checkpoints Bananas pass. Between 40 and 60 (inclusive) Pears pass. More than 15 Apples pass. More than 20 and less than 50
Expert Answer:
Related Book For
Microeconomics An Intuitive Approach with Calculus
ISBN: 978-0538453257
1st edition
Authors: Thomas Nechyba
Posted Date:
Students also viewed these programming questions
-
The author surveyed students in one of his prestatistics classes about the number of texts they send per weekday. Here are their responses: For parts (a) and (b), begin with lower class limit 0 and...
-
Some of the crimes you will be studying this week are assault and battery. As you know, there are also torts called assault and battery. The differences between the two types of assault are subtle....
-
Managing Scope Changes Case Study Scope changes on a project can occur regardless of how well the project is planned or executed. Scope changes can be the result of something that was omitted during...
-
Why are services important? Why is manufacturing important? What are nonmanufactured goods?
-
The enzyme carbonic anhydrase catalyzes the reaction CO2(g) + H2O(l) HCO3(aq) + H+(aq). In water, without the enzyme, the reaction proceeds with a rate constant of at 25 oC. In the presence of the...
-
The primary financial objective of a company is stated by corporate finance theory to be maximising shareholder wealth, but this objective is usually replaced by the surrogate objective of maximising...
-
Corporate headquarters expenses (Learning Objective 5) In Exhibit 10-20, the next to last line of the CEOs report consists entirely of expenses. Describe the kinds of expenses that would be included...
-
Disney Amusement Park has a fiscal year ending on September 30. Selected data from the September 30 worksheet are presented below. Instructions(a) Prepare a complete worksheet.(b) Prepare a...
-
You bought 250 shares of McWeber Inc. stock on margin. Price paid was$75 per share. The initial margin is 60%. The maintenance margin is 25%. A. What is the initial equity per share? B. What is the...
-
Busy Sally Socialite has trouble remembering people's birthdays, so she has organised her friends into what she calls a Birthday Support Team, or BST. Each friend needs only to keep track of three...
-
Develop a personal budget using the main components of wise money management Assignment Instructions: Using the Personal Monthly Budget template found in Microsoft Excel, make a personal record of...
-
Assume that Fancy company has long term debt/equity ratio of 3 . Its $1,000 par value, 10-year, 8.5% bonds with semiannual payments are selling for $925.00. The beta is 1.5, and the yield on a...
-
Write the C program code base on the output given: 1. Write a C Program to find greatest in 3 numbers. Input and output syntax as below: Input: Enter value for A:15 Input: Enter value for B:17 Input:...
-
Alice Ina, Wonder Lean and Mat Hatta are qualified optomerists from the same "alma mater" and they have been practising together under a partnership agreement for more than ten years and currently...
-
Jaguar Plastics Company has been operating for three years. At December 31 of last year, the accounting records reflected the following: Accounts payable Cash $24,000 $22,000 Investments (short-term)...
-
1)Develop the Year 1 financial forecast (income statement, balance sheet and statement of cash flows) for Bennis Co. Revenue is projected at $800,000, with a gross margin of 40%. Operating expenses...
-
DIP Partnership reports ordinary income of $60,000 before the following items: rent expense of $20,000, and interest income of $2,000. In addition, DIP paid guaranteed payments to partner Percy of...
-
Suppose you won a financial literacy competition and are given FJS10000 to invest, with the condition that investment can be done either in, i) Invest in Unit trust of Fiji or Invest in Fijian...
-
Revise cash collections budget (Learning Objective 4) Turn to the original Whitewater Sporting Goods Data Set item 4. Suppose \(70 \%\) of sales are cash and \(30 \%\) are credit. Revise Whitewater's...
-
Revise inventory, purchases, and cost of goods sold budget (Learning Objective 4) Refer to the original Whitewater Sporting Goods Data Set item 5. Suppose cost of goods sold averages \(75 \%\) of...
-
Revise cash payments for purchases (Learning Objective 4) Refer to the original Whitewater Sporting Goods Data Set item 5. Suppose Whitewater Sporting Goods pays for \(60 \%\) of inventory purchases...
Study smarter with the SolutionInn App