question archive Metric conversion calculator Write a program to convert between different metrics
Subject:Computer SciencePrice: Bought3
Metric conversion calculator Write a program to convert between different metrics. Your program should display metric conversion categories menu like: 1) Length conversions 2) Volume conversions 3) Weight conversions 4) Time conversions 5) Angle conversions 6) File size conversions Each category includes a sub-menu of conversion option. Here is a list of the sub- category; consider both directions (i.e. feet to meters and meters to feet): 1) Length conversions a. Options: feet to meters, miles to kilometers, inches to centimeters, yards to feet. 2) Volume conversions: a. Option: Gallon to cubic meters, liters to gallon 3) Weight conversions: a. Options: kilograms to grams, pounds to kilograms, pounds to ounce. 4) Time conversions: a. Options: hours to days, months to minutes, hours to seconds 5) Angle conversions a. Options: radians to degrees, radian to revolutions 6) File size conversions: a. Options: megabytes to bytes, kilobytes to bytes, terabytes to bytes. Your program should display the conversion categories as a menu and ask the user to enter the category; then the program should display another menu for that category selected, and ask the user to enter his conversion option. After that the program should ask the user to enter a number in float and display the converted metric.