Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a program to convert from metric units to standard units. Specification Create a MetricConverter class with the following public static functions to convert from

Write a program to convert from metric units to standard units.

Specification

Create a MetricConverter class with the following public static functions to convert from metric units to standard units:

double KG_lbs(double kg)

double KM_miles(double km)

double Liters_quarts(double liters)

double Celsius_fahrenheit(double celsius)

Each function will accept a metric units value and return the corresponding standard units value.

Create a MetricConverterTest program to test the functionality of the MetricConverter class and run the program from this simple menu:

KG to lbs

KM to Miles

Liters to Quarts

Celsius to Fahrenheit

Exit

Create the following "menu" methods that are called from the corresponding menu option:

void convert_KG_lbs()

void convert_KM_miles()

void convert_Liters_quarts()

void convert_Celsius_fahrenheit()

Each of these menu methods should:

get input from the user

pass the input to the appropriate static MetricConverter function to perform the calculation

display the result

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

Spomenik Monument Database

Authors: Donald Niebyl, FUEL, Damon Murray, Stephen Sorrell

1st Edition

0995745536, 978-0995745537

More Books

Students also viewed these Databases questions

Question

2. Enrolling employees in courses and programs.

Answered: 1 week ago

Question

1. Communicating courses and programs to employees.

Answered: 1 week ago