Remove Ad, Sign Up
Register to Remove Ad
Register to Remove Ad
Remove Ad, Sign Up
Register to Remove Ad
Register to Remove Ad
Signup for Free!
-More Features-
-Far Less Ads-
About   Users   Help
Users & Guests Online
On Page: 1
Directory: 4 & 104
Entire Site: 7 & 882
Page Staff: pokemon x, pennylessz, Barathemos, tgags123, alexanyways, supercool22, RavusRat,
04-18-24 11:09 PM

Forum Links

Related Threads
Coming Soon

Thread Information

Views
1,392
Replies
2
Rating
0
Status
CLOSED
Thread
Creator
Randy53215
11-02-07 08:05 PM
Last
Post
BigBob85
11-04-07 09:58 PM
Additional Thread Details
Views: 135
Today: 0
Users: 1 unique

Thread Actions

Thread Closed
New Thread
New Poll
Order
 

So... my mid-term =/

 

11-02-07 08:05 PM
Randy53215 is Offline
| ID: 57689 | 257 Words

Randy53215
Level: 70


POSTS: 553/1081
POST EXP: 40382
LVL EXP: 2989109
CP: 467.5
VIZ: 92212

Likes: 0  Dislikes: 0
So, my mid-term is really bothering me. I really don't know where to start. If anyone can guide me in the right direction I would appreciate that.

I have programming experience but its more-so Web Programming; PHP, XML and the such. The most I ever gotten to with Computer Programming was VB and I dislike it a lot.

My Mid-term...

----------

IT106: Introduction To C++

Midterm Programming

Name: __________________________

Programming

This will be a take home portion of the midterm, due on Saturday, November 2. For this project you will be required to separate the interface (.h) from the implementation (.cpp) when creating classes. Create a class called ComplexNumber that will be a complex number. Complex numbers have the form:

ai + b

a is the imaginary part and b is the real part, both are integers. We will need to attributes in our class called Imaginary and Real, both of which are Integers. We will need mutators and accessors for both of these data members. We will need the following methods in our class:
ComplexNumber Add(ComplexNumber theNumber), adds a complex number to the current complex number. Complex Number addition looks like the following:


(a + bi) + (c + di) = (a + c) + (b +d)i


String PrintNumber(), this will return a string in the form ai + b.


Create a Main.cpp that takes in user input for the real and imaginary part of two complex numbers and then prints out the result of adding them together.

Any and all help will be GREATLY appreciated.
So, my mid-term is really bothering me. I really don't know where to start. If anyone can guide me in the right direction I would appreciate that.

I have programming experience but its more-so Web Programming; PHP, XML and the such. The most I ever gotten to with Computer Programming was VB and I dislike it a lot.

My Mid-term...

----------

IT106: Introduction To C++

Midterm Programming

Name: __________________________

Programming

This will be a take home portion of the midterm, due on Saturday, November 2. For this project you will be required to separate the interface (.h) from the implementation (.cpp) when creating classes. Create a class called ComplexNumber that will be a complex number. Complex numbers have the form:

ai + b

a is the imaginary part and b is the real part, both are integers. We will need to attributes in our class called Imaginary and Real, both of which are Integers. We will need mutators and accessors for both of these data members. We will need the following methods in our class:
ComplexNumber Add(ComplexNumber theNumber), adds a complex number to the current complex number. Complex Number addition looks like the following:


(a + bi) + (c + di) = (a + c) + (b +d)i


String PrintNumber(), this will return a string in the form ai + b.


Create a Main.cpp that takes in user input for the real and imaginary part of two complex numbers and then prints out the result of adding them together.

Any and all help will be GREATLY appreciated.
Vizzed Elite
Former Administrator


Affected by 'Laziness Syndrome'

Registered: 12-06-04
Location: Milwaukee, Wisconsin (U.S.A)
Last Post: 24 days
Last Active: 9 days

11-02-07 10:42 PM
neojazex is Offline
| ID: 57694 | 69 Words

neojazex
Level: 93


POSTS: 1981/2059
POST EXP: 87445
LVL EXP: 7773170
CP: 9.0
VIZ: 4626

Likes: 0  Dislikes: 0
its saturday here in aus... and i know it'll be midnight there soon so i sure hope u did start...

ummm, it looks fairly simple to me... i'd start makin the ComplexNumber.cpp and .h files... then once thats done make the menu

the String printNumber() is easy...
{
return complexNo +"i " +realNo;
}

yeah stuff like that... good luck i wish my c++ assignment was this easy
its saturday here in aus... and i know it'll be midnight there soon so i sure hope u did start...

ummm, it looks fairly simple to me... i'd start makin the ComplexNumber.cpp and .h files... then once thats done make the menu

the String printNumber() is easy...
{
return complexNo +"i " +realNo;
}

yeah stuff like that... good luck i wish my c++ assignment was this easy
Member

Affected by 'Laziness Syndrome'

Registered: 05-07-05
Location: Melbourne, Australia
Last Post: 5894 days
Last Active: 4996 days

(edited by neojazex on 11-02-07 10:49 PM)    

11-04-07 09:58 PM
BigBob85 is Offline
| ID: 57750 | 7 Words

BigBob85
Level: 151

POSTS: 4345/6381
POST EXP: 217397
LVL EXP: 42859625
CP: 170.6
VIZ: 49768

Likes: 0  Dislikes: 0
Might wana check your PM inbox maybe..
Might wana check your PM inbox maybe..
Vizzed Elite
Member Of The Year 07


Affected by 'Laziness Syndrome'

Registered: 12-09-04
Location: Melbourne, Australia
Last Post: 1597 days
Last Active: 1231 days

Links

Page Comments


This page has no comments

Adblocker detected!

Vizzed.com is very expensive to keep alive! The Ads pay for the servers.

Vizzed has 3 TB worth of games and 1 TB worth of music.  This site is free to use but the ads barely pay for the monthly server fees.  If too many more people use ad block, the site cannot survive.

We prioritize the community over the site profits.  This is why we avoid using annoying (but high paying) ads like most other sites which include popups, obnoxious sounds and animations, malware, and other forms of intrusiveness.  We'll do our part to never resort to these types of ads, please do your part by helping support this site by adding Vizzed.com to your ad blocking whitelist.

×