| dylanlara44 (25) | |
| done | |
|
Last edited on
|
|
| dylanlara44 (25) | |
| someone please help? | |
|
|
|
| Maxim Podolski (21) | |
|
Oh don't worry, I will help. (Of course not to the point of typing this) But dear god... and you JUST moved into the class? Edit: As listed bellow, that's a good source. Tell us if you need help on that material, I just got you started on the basic stuff below below, so you don't freak out. | |
|
Last edited on
|
|
| Edwards (17) | |
|
I'm sorry to say, but nobody will simply write this for you. I sympathize for your situation but you will need to write some code and show us what you have in order to really get some help. Otherwise, this site offers a lot of great tutorials to get started and honestly this is simple stuff that even someone with 1-2 days experience with C++ could get done in a few hours. Just gotta get some reading done. http://www.cplusplus.com/doc/tutorial/ | |
|
|
|
| Maxim Podolski (21) | |||||||
|
Search up for loops, "%" in c++, std, and "stop" you could find fairly easily. I'll give you help on most of this just to get you going.
So now you know how to get the variable input thing.
here you now know how to c heck for positive, negative ( x%y x=number being checked if it's divisible by y, y is the one that's checking)
| |||||||
|
Last edited on
|
|||||||
| dylanlara44 (25) | |||
|
I changed my major and joined this class but its too difficult I dont know that much stuff. ALL I know is start with this stuff
thats all I know. This assignment due on tomorrow night. i know no one will do my homework but I need help. What stuff do I need to do this homework. | |||
|
|
|||
| Catfish2 (666) | |||||||
|
Your program will always have a main() function, that's where it starts. You can then write as many additional functions as you want.
To use functions provided by C++, like for printing stuff or getting input from the keyboard, you will #include parts of the C++ library. For now, the iostream file is needed.
You have to learn about control structures: if conditional, and for, while and do-while loops, here: http://cplusplus.com/doc/tutorial/control/ Then the idiotic "count and print" parts should become easy. Let's do the square, cube and square root parts.
Good luck with the rest. Edit: code tags, comments. | |||||||
|
Last edited on
|
|||||||
| SwatSid (19) | |||
u c... well actually its simple... first u shud declare a choice variable( or just a variable! ). eg :
and based on this choice, go in for a switch...case statement... use the net to get the basics of switch statements... its very simple... and get the cases on and put those operations... if u do all these, making the prog to quit only when the user wants s simple too... so gear up and learn the switch...case statements ( or if statement if u like, but it wud b hectic :/ ) | |||
|
|
|||
| Moeljbcp (85) | |
| Whether or not you actually succeed at this one particular assignment, I would highly recommend getting some IRL tutoring, ASAP in order to help catch you up on the crucial concepts you're going to need to be able to do well in that class. Check if your institution offers tutoring and see what you can do. Good luck. | |
|
|
|