Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

20! 8 149 1.10 111 112 113 14 15 2). Assume that you are in Muscat The distance from Muscat to Ibri by road is

image text in transcribed
20! 8 149 1.10 111 112 113 14 15 2). Assume that you are in Muscat The distance from Muscat to Ibri by road is 275 km considering the fuel cost in Oman, it is 250 baisa (OMR 0.250) per liter. Write a C program that reads the amount of fuel required in OMR and the milenge of the vehicle. Using the given fuel cost, output the quantity of fuel that can be obtained in the given fuel amount and the distance that can be covered in the obtained fuel. Also calculate and display how much fuel will be consumed and left for you if you wish to travel from Muscat to be in your vehicle I Sample Input and Output: How Mach Inount You have for Fuel (OMR) : ? 12 what is Your Vehicle Mileage Per Litre (11) :? 14 You got 46.000000 litres of Fuel Pomnining Distance to be covered upto 672.000000 kilometers It will take 19.642857 litres of fuel for you to travel from Mascat to Ibri lou will have remaining 28.357143 litres of fuel after the journey DI FUJITSU

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

OCA Oracle Database SQL Exam Guide Exam 1Z0-071

Authors: Steve O'Hearn

1st Edition

1259585492, 978-1259585494

More Books

Students also viewed these Databases questions