2. Four countries in the world do not officially use the metric system: the United States,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
2. Four countries in the world do not officially use the metric system: the United States, the United Kingdom, Liberia, and Myanmar. Even in the United States, the practice is that some industries are almost completely metric, and others still use the English system of units. Confusion between metric and English units is common. American travelers to Canada are regularly confused because gasoline is sold by the liter in Canada, but by the gallon in the United States. Let's write a program using if/else structure that can be used to buy gasoline in metric system or English system of units. Write a program that: • Asks the user whether he or she wants to request the gasoline in liters or in gallons. Use the characters / for liters and g for gallons. Prompts the user to enter how much gas he or she wants to buy. . Calculates the total cost to the user, if gasoline costs $3.89 per gallon. • Assume 1 liter = 0.264 gallons . Submit a screenshot for both cases with your code. Copy all screenshots to a word doc and make a single printout. 2. Four countries in the world do not officially use the metric system: the United States, the United Kingdom, Liberia, and Myanmar. Even in the United States, the practice is that some industries are almost completely metric, and others still use the English system of units. Confusion between metric and English units is common. American travelers to Canada are regularly confused because gasoline is sold by the liter in Canada, but by the gallon in the United States. Let's write a program using if/else structure that can be used to buy gasoline in metric system or English system of units. Write a program that: • Asks the user whether he or she wants to request the gasoline in liters or in gallons. Use the characters / for liters and g for gallons. Prompts the user to enter how much gas he or she wants to buy. . Calculates the total cost to the user, if gasoline costs $3.89 per gallon. • Assume 1 liter = 0.264 gallons . Submit a screenshot for both cases with your code. Copy all screenshots to a word doc and make a single printout.
Expert Answer:
Related Book For
Macroeconomics Principles, Applications, and Tools
ISBN: 978-0132555234
7th Edition
Authors: Arthur O Sullivan, Steven M. Sheffrin, Stephen J. Perez
Posted Date:
Students also viewed these electrical engineering questions
-
Using functions write a Program using Ohms Law: You will need 9 functions 3 input functions involts inresist incurrent 3 process functions calcvolts calcresist calccurrent 3 output functions outvolts...
-
1 2. a. Write a program using IAS computer assembly language opcodes to evaluate the following formula: X={(Y-273)*5}/9 +160 [4] b. Write the machine code equivalent of IAS computer assembly program...
-
The poorest countries in the world have a per capita income of about $600 today. We can reasonably assume that it is nearly impossible to live on an income below half this level (below $300). Per...
-
Copper Products Limited leases property on which copper has been discovered. The lease provides for an immediate payment of $472,000 to the lessor before drilling has begun and an annual rental of...
-
Identify whether each description best applies to a periodic or a perpetual inventory system. a. Provides more timely information to managers. b. Requires an adjusting entry to record inventory...
-
For the loglinear model for an I J table, log ij = + i X , show that ij = n i+ /J and residual df = I(J 1).
-
What is the proof of service?
-
Management of Shreveport Community Hospital has decided to allocate the budgeted costs of its three support departments (administration, public relations, and maintenance) to its three operating...
-
The management of Zigby Manufacturing prepared the following balance sheet for March 31. ZIGBY MANUFACTURING Balance Sheet March 31 Cash Accounts receivable Raw materials inventory Assets Finished...
-
The Hatcher Company is in the process of developing a new inventory management system. One of the event handling processes in that system is Receive Supplier Shipments. The (inexperienced) systems...
-
discussing the six stages of the personal selling process and your views and experiences related to the process either from the seller's perspective or the potential buyer's perspective or both.
-
What is the output of this code? class A { protected int i; private int j; } class B extends A{ public B(){ } super.j = super.i + 1; } private void someMethod () { System.out.println(super.i+""+...
-
Sally Campbell is a girl who loves to skateboard in her hometown of Washington, D.C. Sally was bored one Saturday and decided that she wanted to skate around the park. She grabbed her board and took...
-
In your opinion, what evidentiary standards should be required before the government detains a criminal suspect for the duration of his/her trial? Do you believe that the possibility of future danger...
-
Using tensorial symbols, establish the following vector identity: Vx (AxB) = (BV)-(AV)B+AV.B) B(V.A).
-
Many employees are taking photos and videos at department meetings and company events. Some of the photos have been posted to Facebook. Should you be concerned? As a boss, what should you do?
-
6 CST.99.3.7 10 Numerical Analysis I Define absolute error, relative error and machine epsilon m. Although m is defined in terms of absolute error, why is it useful as a measurement of relative...
-
In your audit of Garza Company, you find that a physical inventory on December 31, 2012, showed merchandise with a cost of $441,000 was on hand at that date. You also discover the following items...
-
1. To finance a budget deficit, a government can either borrow from the public or create __________. 2. During hyperinflations the velocity of money tends to sharply__________. 3. Economists call...
-
The Got Milk? Advertisement campaign is run by the National Fluid Milk Producers, an industry group that is funded by a tax of $0.20 per hundredweight of processed milk. Milk producers pool their...
-
1. Money solves the problem of double coincidence of wants that would regularly occur under a system of _______. 2. Gold is a good example of fiat money. _______ (True/False) 3. Deposits in checking...
-
Scott-Russel mechanism for generating straight line has (a) four lower kinematic turning pairs (b) two lower kinematic turning pairs and one lower kinematic sliding pairs (c) one lower kinematic...
-
The driving shaft of a Hooke's joint is rotating at a uniform speed of \(600 \mathrm{rpm}\). The speed of the driven shaft must be 575 and \(625 \mathrm{rpm}\). Determine the maximum permissible...
-
Define a steering gear.
Study smarter with the SolutionInn App