Question: LAB 6d- Complete Program This file contains just a program shell in which you will write the programming statements needed to complete the program described

 LAB 6d- Complete Program This file contains just a program shellin which you will write the programming statements needed to complete the

LAB 6d- Complete Program This file contains just a program shell in which you will write the programming statements needed to complete the program described below. Step 1: 1 // Lab 6 kiloconverter.cpp 2 I/ This menu-driven program lets the user convert 3 I/ pounds to kilograms and kilograms to pounds 4 I/ PUT YOUR NAME HERE 5 #include 6 using namespace std: 7 8 // Function prototypes 9 // WRITE PROTOTYPES FOR THE displayMenu, getChoice 10 // kilosToPounds and poundsTokilos PUNCTIONS HERE 12/ main**/ 13 int main() 14 15 /I DECLARE ANY VARIABLES MAIN USES HERE. 16 17 I/ WRITE THE CODE HERE TO CARRY OUT THE STEPS 18 // REQUIRED BY THE PROGRAM SPECIPICATIONS. 19 20 return 0: 21 displayvenu f 23 /** 24// WRITE THE displayMenu FUNCTION HERE 25 // THIS void FUNCTION DISPLAYS THE MENU CHOICES 26 // 1. Convert kilograms to pounds 27/ 2. Convert pounds to kilograms 28 // 3. Quit 29 30* getchoice 31// THIS IS THE SAME FUNCTION YOU WROTE EARLIER IN THIS SET 32 // OF LAB EXERCISES. JUST PIND IT AND PASTE IT HERE 34 ** 35// WRITE THE kilosToPounds FUNCTION HERE 36 // IT RECEIVES A WEIGHT IN KILOS AND MUST CALCULATE 37/I AND RETURN THE EQUIVALENT NUMBER OF POUNDS. 38 39/poundsToRilos . 40 // WRITE THE poundsTokilos FUNCTION HERE 41 // IT RECEIVES A WEIGHT IN POUNDS AND MUST CALCULATE 42 AND RETURN THE EQUIVALENT NUMBER OF KILOS kilosToPounds Step 2: Design and implement a modular, menu-driven program that converts kilograms to pounds and pounds to kilograms. 1 kilogram 2.2 pounds. The program should display a menu, accept and validate a user menu choice, get the amount of weight to be converted, call the appropriate function to do the conversion, and then print the returned result. The code should continue iterating to allow additional conversions to be done until the user enters the menu choice to quit. When the program runs, it should look somewhat like the sample run shown here. Page 6 of 7

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!