Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++, I need help with debugging, not sure why I keep getting wrong answer from lb oz to kilo g and kilo g to lb

C++, I need help with debugging, not sure why I keep getting wrong answer from lb oz to kilo g and kilo g to lb oz, please help debugging , it's the problem #7 image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Start here :hw#8-9.cpp X|hw#874pp ects include linclude 4 nsing namespace std: 5 void userInput (doables weight_in_pound, doubles weight_in_ounces, doubles weight in kilo, doubles weight in g 6 void calculation poundandgram (double weight in_pound, double weight in_ounces, doubles calculation_kilo, doub 7 void output kiloandgram (double calculation kilo, double calculation_gram): 8 void output poundandounce (double calculation pound, double calculation ounce) 10 int main 12 13 14 15 16 17 18 19 20 21 double pound, ounces double kilo, gram donble calculation_kilo, calculation_gram double calculation pound, calculation ounce: int choice: userInput (pound, ounces, kilo, gram, choice. calculation kilo calculation_gram, calculation pound, calcul return o: 23 void userInput (doubles weight_ in pound, doubles weight_in_ounces, doubles weight_in_kilo, doubles weight in_gr 26 27 28 cout>choice: if (choice-1) 30 31 coutcc Please enter the weight in pounds" ainooweight in_pound: coutcc"Please enter the wight in ounces" eino>veight in ounces: output-kiloandgram (calculation kilo, calculation-gram 34 35 36 37 38 39 0 41 else if (choice--2) cout

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

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

Students also viewed these Databases questions

Question

=+5 Does this case provide an example of the future for IHRM?

Answered: 1 week ago

Question

=+4 How did it affect HR?

Answered: 1 week ago