We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,993 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

using Loop C++

Need help with this and my professor is teaching way too fast.

You are going to convert feet and inches or pounds in this program. You will give the user the choice of converting feet and inches to centimeters OR pounds to kilograms. With the correct answer you will also display the number entered. You will also create the program 3 times, once for each of the basic loops (counting loop 5 itterations, while & do-while as many as the user wants). Don't forget to check the UPPER and lower case letters. This means you will have 3 Visio files to zip and turn in.

Formulas:

cm= (feet * 30.48) + (inches * 2.54)
kg= lbs*0.45359

I really dont understand any of this and my teacher moves to fast to explain things.

6
Contributors
9
Replies
3 Days
Discussion Span
7 Months Ago
Last Updated
10
Views
jerlisacoleman
Newbie Poster
2 posts since Sep 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

I really dont understand any of this...

OK, translation:

You are going to convert feet and inches or pounds in this program.

You will write a conversion program that converts feet into inches and inches into feet. It must also handle pounds (presumably into ounces).

You will give the user the choice of converting feet and inches to centimeters OR pounds to kilograms.

Oh, unclear above.
OK, you will enter feet and inches and convert that into centimeters.
Or you will enter pounds and convert that into kilograms.
You will also have an input that asks the user whether input is in feet or pounds.

With the correct answer you will also display the number entered.

Once you make the conversion you must display the value entered as well as the conversion value calculated.

You will also create the program 3 times, once for each of the basic loops (counting loop 5 itterations, while & do-while as many as the user wants).

Make 3 programs, one for each type of loop defined in C++.

Don't forget to check the UPPER and lower case letters.

If (when) you enter characters instead of numbers, check if they are upper or lower case and handle them appropriately.

This means you will have 3 Visio files to zip and turn in.

Make 3 Visio files and zip them. Turn them in, too.

Hope that's clearer.

WaltP
Posting Sage w/ dash of thyme
Team Colleague
11,404 posts since May 2006
Reputation Points: 3,421
Solved Threads: 1,055
Skill Endorsements: 37

Need help with this and my professor is teaching way too fast.

I really dont understand any of this and my teacher moves to fast to explain things.

This is not really a C++ issue, it's a problem you have with your professor. Nothing we do or say can fix that. You need to address it with your professor, probably by talking it over first. If that fails, and if you're certain the problem lies with your professor, take it up with the authorities at your school or college.

Bob
using namespace Bob
Team Colleague
221 posts since Feb 2003
Reputation Points: 30
Solved Threads: 11
Skill Endorsements: 0

take it up with the authorities at your school or college

I hope your joking. The last thing most people need in school, is a professor with a chip on their shoulder.

nmaillet
Posting Pro
537 posts since Aug 2008
Reputation Points: 111
Solved Threads: 103
Skill Endorsements: 4

I hope your joking.

You hope my joking what?

The last thing most people need in school, is a professor with a chip on their shoulder.

That's worse than not having a clue? Fine. It's still not a C++ problem.

Bob
using namespace Bob
Team Colleague
221 posts since Feb 2003
Reputation Points: 30
Solved Threads: 11
Skill Endorsements: 0

Well we use C++.

jerlisacoleman
Newbie Poster
2 posts since Sep 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

What he means is the problem, as you described it so far, has nothing to do with C++. You have to have actual code for it to become a C++ problem.

WaltP
Posting Sage w/ dash of thyme
Team Colleague
11,404 posts since May 2006
Reputation Points: 3,421
Solved Threads: 1,055
Skill Endorsements: 37

A long time ago, in a faraway universe, someone who looks like me wrote something called C++ Tutorials for Beginners and Cheapskates, which included a tutorial on loops. It appears there's still a copy collecting dust on the internet, if you think it might help.

https://docs.google.com/viewer?a=v&q=cache:ZPu1hYhBIYcJ:www.mat.unisi.it/personalpages/quaranta/c%2B%2B/C%2B%2B%2520Tutorial.pdf+c%2B%2B+%22beginners+and+cheapskates%22+pdf&hl=en&gl=uk&pid=bl&srcid=ADGEESgF-l4fUa0mkCCwmPDIqdpZX3DcsmCCsPNam-Y4olDP7XHV0m8634-2gLQF7ASchzKWfKBtQqUDEXjpYQwA36yA3zeTM3kTOzyHQcrlng4gUS2OeMfdRtInQ5UCMJIxRf9W-rRN&sig=AHIEtbQ2R2pEFGNeoM_m3hKglbwgPtQqiQ

I haven't read it for years and take no responsibility if following the advice within makes odd things happen while you sleep. And you can safely ignore the URL and email address within the document, they went AWOL a long time ago.

Bob
using namespace Bob
Team Colleague
221 posts since Feb 2003
Reputation Points: 30
Solved Threads: 11
Skill Endorsements: 0

Need help, what will be the code to display these:

*
**
***
**
*

Melou22
Newbie Poster
1 post since Sep 2012
Reputation Points: -1
Solved Threads: 0
Skill Endorsements: 0

@ Melou22 - Please start a new thread if you have a question. You will also want to show the code you have so far. We dont give out the answers for homework problems but we can help you get the solution.

NathanOliver
Posting Virtuoso
1,515 posts since Apr 2009
Reputation Points: 281
Solved Threads: 277
Skill Endorsements: 3

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0852 seconds using 2.73MB