October 11, 2011 @ 10:55 AM
Thomass

Post: 94

Join Date: Mar 2010

Who can help do my C++ homework? I'll pay someone to write some programs for me.
October 11, 2011 @ 11:28 AM

Inactive

How Much You Willing To Pay Bruh
October 11, 2011 @ 01:15 PM
Youngfresh2def

Post: 228

Join Date: Jul 2008

Location: Connecticut

if youre only getting c+'s in school you should just learn the material yourself
October 11, 2011 @ 01:40 PM
Lemonz

Post: 2693

Join Date: Sep 2011

Location: http://zyenet.tk

I can help you to an extent, we just started C++ a few weeks ago. Just post the problem and I'll see what I can do bruh.

if youre only getting c+’s in school you should just learn the material yourself

lol
October 11, 2011 @ 02:56 PM
Kayue

moderator

Post: 96

Join Date: Dec 2010

Location: Hong Kong

I can help you to an extent, we just started C++ a few weeks ago. Just post the problem and I’ll...


Yeah, post the problem and I might be able to help.

Developer of Hypebeast.

October 11, 2011 @ 04:07 PM
ShoutOutLoud

Post: 406

Join Date: Mar 2011

Location: 604

Are you guys good with java?
I need help, I'm failing my class.
October 12, 2011 @ 04:26 AM
Thomass

Post: 94

Join Date: Mar 2010

Write a program that has three functions: main, add2, and mul2. Your main function will have a menu similar to the financial application you have been writing. The menu will have three items: “1) Add 2 numbers”, “2) Multiply 2 numbers”, “3) Quit”. When the user selects “Add 2 numbers”, call the add2 function. In add2, ask the user for two values, add them together and present the user with the result. Do a similar thing for the Multiply menu option, except in the mul2 function, multiply the two values you acquire from the user.

any help would greatly be appreciated
October 12, 2011 @ 08:37 AM
VOMITSPIT

Post: 2958

Join Date: Apr 2010


Black Supreme Safari, Raised by Wolves, and more: http://hypebeast.com/forums/apparel/220068

October 12, 2011 @ 08:53 AM

Inactive

cool
October 12, 2011 @ 12:31 PM
Lemonz

Post: 2693

Join Date: Sep 2011

Location: http://zyenet.tk

This seems manageable. I'll help you when I get home from school tonight bro.
October 12, 2011 @ 07:45 PM
Kayue

moderator

Post: 96

Join Date: Dec 2010

Location: Hong Kong


<p>Write a program that has three functions: main, add2, and mul2. Your main function will have a menu similar to the financial application you have been writing. The menu will have three items: “1) Add 2 numbers”, “2) Multiply 2 numbers”, “3) Quit”. When the user selects “Add 2 numbers”, call the add2 function. In add2, ask the user for two values, add them together and present the user with the result. Do a similar thing for the Multiply menu option, except in the mul2 function, multiply the two values you acquire from the user.</p>
<p>any help would greatly be appreciated</p>



Please see here: http://pastie.org/2684840

I have not actually tested the code so there might be bugs or syntax error, but the solution should be pretty similar to this.

Developer of Hypebeast.

October 12, 2011 @ 07:48 PM
drtmcgrt

Post: 1887

Join Date: Dec 2008

Location: STHLM

haha one of the reasons I was like fuck this shit and dropped out.

http://instagram.com/rasheedovich/

October 12, 2011 @ 11:15 PM
Lemonz

Post: 2693

Join Date: Sep 2011

Location: http://zyenet.tk


<p>
</p><blockquote>
<div class="quote-info">
<div class="quote-from">Originally posted by
<div class="quote-name">King of the Trill</div>
</div>
</div>
<div class="quote-content"><p></p>
<p>Write a program that has three functions: main, add2, and mul2. Your main function will have a menu similar to the financial application you have been writing. The menu will have three items: “1) Add 2 numbers”, “2) Multiply 2 numbers”, “3) Quit”. When the user selects “Add 2 numbers”, call the add2 function. In add2, ask the user for two values, add them together and present the user with the result. Do a similar thing for the Multiply menu option, except in the mul2 function, multiply the two values you acquire from the user.</p>
<p></p>
<p>any help would greatly be appreciated</p>
</div>
</blockquote>
<p></p>
<p>Please see here: <a target="_blank" href="http://pastie.org/2684840" rel="nofollow">http://pastie.org/2684840</a></p>
<p>I have not actually tested the code so ......

What the hell is "iostream.h"? Secondly, you forgot the basics, like including "using namespace std;" - without that "cout" "and "cin" useless. There are so many other simple errors you would have found if you tested it, no major error tho, easy fixes. You even forgot the system("pause"); or getchar(); at the end lol. But the logic and syntax is correct. I fixed it tho, so here it is cool
http://pastebin.com/tH7H6FvE
October 13, 2011 @ 02:23 AM
Juki

Post: 2146

Join Date: Aug 2008

I'm gonna need to learn this stuff one of these days but umm since we're on the topic of websites/design:

What's the best site for domain registration? Any suggestions other than Godaddy?

Doubleclutchhoops.com

October 13, 2011 @ 02:38 AM
Lemonz

Post: 2693

Join Date: Sep 2011

Location: http://zyenet.tk


<p>I’m gonna need to learn this stuff one of these days but umm since we’re on the topic of websites/design:</p>
<p> What’s the best site for domain registration? Any suggestions other than Godaddy?</p>


This is programming son, not websites/design
October 13, 2011 @ 10:33 AM
fishomie

Post: 1

Join Date: Apr 2011

omg! i cant beleive kayue made a mistake!
hb should hire a new programmer! lol
October 23, 2011 @ 12:37 PM
&amp;y

Post: 4014

Join Date: Mar 2009

http://pastie.org/2744957

• Our Maturity/Payment program should be able to run indefinitely allowing the user to run many loan
or maturity calculations.
• This looping continues until the user decides that he/she has calculated enough and presses a certain
key (let’s say ‘x’) to quit the program.
• Write the program once using the while loop with the if-else construct. (assign6a)
• Write the program a second time using the for loop with the switch construct. (assign6b)

can anyone help me with this?
October 24, 2011 @ 02:11 AM
Lemonz

Post: 2693

Join Date: Sep 2011

Location: http://zyenet.tk

^If I had more time I'd help you out. Just google C++ loop. Use an if statement to execute the exit sequence for the key to quit the program.
October 25, 2011 @ 12:21 AM
&amp;y

Post: 4014

Join Date: Mar 2009

can anyone get this? i dont really understand looping :/
October 25, 2011 @ 01:02 AM
Lemonz

Post: 2693

Join Date: Sep 2011

Location: http://zyenet.tk

You need a 'while' statement.
Example:

while (userChoice !=x)
.........{
.......................lines of code
.......................lines of code
.........}

^That code will repeat whatever you place in the part that says "lines of code" until the condition is met, the condition being X.
You're basically saying, you will repeat everything over and over until the user inputs the letter x, which will terminate the loop. If you wait until Friday, I could write the entire thing in detail. (I think)
October 25, 2011 @ 02:08 AM
&amp;y

Post: 4014

Join Date: Mar 2009

well i figured out how to do the "while loop" and "if else construct". how do i go about doing the "for loop" and "switch construct"?

http://pastebin.com/MiNKH4Lt
that is what i used for the while and if else
October 25, 2011 @ 02:48 AM
Kayue

moderator

Post: 96

Join Date: Dec 2010

Location: Hong Kong

<p>well i figured out how to do the “while loop” and “if else construct”. how do i go about doing the “for loop” and “switch construct”?</p>
<p><a href="http://pastebin.com/MiNKH4Lt" rel="nofollow" target="_blank">http://pastebin.com/MiNKH4Lt</a><br>
that is what i used for the while and if else</p>


I don't think you should use for loop in this case. For loop should be used when you know how many times it is going to run. In this case, you don't, so while loop is better solution in this case.

You can replace your if-else to the following switch-case:
http://pastie.org/2754028

(I haven't tested the code, but the logic is correct.)

For more information please read: http://www.cplusplus.com/doc/tutorial/control/

Developer of Hypebeast.

November 14, 2011 @ 04:41 PM
&amp;y

Post: 4014

Join Date: Mar 2009

Is this valid or not? Explain. If correct what will be values of variables involved:

Code
int x = 15;
int *xp = x;
int *yp = *x;
int *zp = &amp;x;
int *wp = new int;
wp = 5;
*wp = 5;
&amp;wp = 5;
xp = wp;
*zp = 17;
float *fp = new float;
fp = wp;
*fp = (int) *wp;
zp = &amp;x;
float *fq = 5;
November 14, 2011 @ 08:00 PM
Josh

Post: 3713

Join Date: Apr 2008

anyone good with unix/linux that wants to help me get caught up in my class?

I know its not programming but its still under the type of degree

Lil JoJo : i really want rizal! 13:10

November 22, 2011 @ 01:57 AM
&amp;y

Post: 4014

Join Date: Mar 2009

.
December 11, 2011 @ 09:46 PM
&amp;y

Post: 4014

Join Date: Mar 2009

Details:
Start out with a new project (you can add code to it from your previous projects)
Create a class called [Calcs]. This class has two functions: [Add2] and [Multiply2]. Each function takes two parameters and returns the value of the calculation (either adds the two parameter values, or multiplies them).

Create an input file that contains data such as the following
A 2 3
M 5 7
A 6 11
A 2 22
M 79 62

Create a main function that opens the input file, reads each line, and based on the first character in the input line, calls the [A]dd function or the [M]ultiply function.
Once you have calculated the result (one line at a time), write the result to an output file.


Who can do this for me? Will send a little tip for you if you can do this smile
December 11, 2011 @ 11:25 PM
Lemonz

Post: 2693

Join Date: Sep 2011

Location: http://zyenet.tk

I've never used multi-dimensional arrays before, but I guess I could give it a try tomorrow.
December 12, 2011 @ 12:01 AM
iggy-koopa

Post: 585

Join Date: Jan 2008

Are you guys good with java?
I need help, I'm failing my class.


I just learned some java haha what you need help w/?
December 12, 2011 @ 02:57 AM
ShoutOutLoud

Post: 406

Join Date: Mar 2011

Location: 604

About time someone replied.
I need help with like for and while loops or whatever.
I have to make a program where it would make a triangle out of * depending on how many rows the user inserts.
Example:
3 rows
*
**
***
December 12, 2011 @ 03:42 AM
Warren

moderator

Post: 458

Join Date: Aug 2011

Location: Hypebeast HQ

Generically you could do it like this with a double loop.

&gt;&gt; user input

counter = 1; // determines the number of stars to print, initially
for( int i = 0; i &lt; user input; i++) {
for(int k = 0; k &lt; counter; k++) {
print *;
}
print \n;
counter++;
}

If correct you'll have the results
*
**
***
if the user input was 3

Hypebeast: User and Forum Support


Please login first to reply.
Back To Top