Previous Thread
Next Thread
Print Thread
#1118699 12/01/04 04:31 AM
Joined: Jun 2003
Posts: 1,145
G
Hard-core CEG\'er
OP Offline
Hard-core CEG\'er
G
Joined: Jun 2003
Posts: 1,145
anyone on here really good at this, need some help trying to write a program for class and cant figure out wtf todo

if i dont get any responses then i wont post the problem to save space


98.5 Black SE ATX S&B filter, SVT MAF, optimized SVT TB, mesh grille, removed orange reflectors, painted rear reflector, gutted pre-cats, optimized SVT LIM, 19lb injectors, resonator removed cant afford an svt but lookin for 1 in nc
#1118700 12/01/04 04:32 AM
Joined: Nov 2000
Posts: 1,101
T
Hard-core CEG\'er
Offline
Hard-core CEG\'er
T
Joined: Nov 2000
Posts: 1,101
What's the problem? I won't give out solutions since its for school, but I'll try to point you in the right direction


Then: 99 Silver Frost SVT #1919 237hp/219tq All Motor Now: 06 White STI Parts 4 sale
#1118701 12/01/04 04:45 AM
Joined: Jun 2003
Posts: 1,074
K
Hard-core CEG\'er
Offline
Hard-core CEG\'er
K
Joined: Jun 2003
Posts: 1,074
Ive taken a number of C++ course, put the problem down and maybe i can help.


Brett The man thinks its best for everyones safty if i dont drive for 6 months '95 Moonlight Blue Contour (ITS ALIVE AGAIN!) MODS: Knauberized,Reverse Indiglo Gauges,LED's,AEM Intake,Rust holes for more power!
#1118702 12/01/04 05:27 AM
Joined: Jun 2000
Posts: 768
A
Veteran CEG\'er
Offline
Veteran CEG\'er
A
Joined: Jun 2000
Posts: 768
bring it on

#1118703 12/01/04 05:50 AM
Joined: Jun 2003
Posts: 1,145
G
Hard-core CEG\'er
OP Offline
Hard-core CEG\'er
G
Joined: Jun 2003
Posts: 1,145
i need to make a program that will do straight-line depreciation.

it should prompt the users for

The year of purchase of the asset
The original cost of the asset
The estimated life of the asset

the program should calculate the amount of depreciation during each year and the accumulated depreciation at the end of each year. here is an example for a computer purchased in 1999 for $2500


Year Depreciation Accumulated Depreciation
1999 500 500
2000 500 1000
2001 500 1500
2002 500 2000
2003 500 2500


the program also has to work for any number of years of estimated life



thats part 1

part 2


the second part is a program that calculates the double-declining balance depreciation.

the program should have the same output as above except it should include the begining balance.

it also should work for any number of years.

i know what varaibles i am going to have to prompt for, and i know i am going to need a loop to display the years, and the accummulated depreciation, i just dont know what the loop should contain, and all the context of it.

and as for the second part, i have some ideas. kinda similar but i dont know how to make it display the begining balance like it should, becasue it is the cost minus the depreciation, then that minus the next depreciation, and so on and so forth.

this damn stuff is confusing


98.5 Black SE ATX S&B filter, SVT MAF, optimized SVT TB, mesh grille, removed orange reflectors, painted rear reflector, gutted pre-cats, optimized SVT LIM, 19lb injectors, resonator removed cant afford an svt but lookin for 1 in nc
#1118704 12/01/04 05:52 AM
Joined: Jun 2003
Posts: 1,145
G
Hard-core CEG\'er
OP Offline
Hard-core CEG\'er
G
Joined: Jun 2003
Posts: 1,145
oh yeah and i am writing this in microsoft visual studio .net 2003, which is even more confusing then the rest of the c++ programs out there


98.5 Black SE ATX S&B filter, SVT MAF, optimized SVT TB, mesh grille, removed orange reflectors, painted rear reflector, gutted pre-cats, optimized SVT LIM, 19lb injectors, resonator removed cant afford an svt but lookin for 1 in nc
#1118705 12/01/04 06:15 AM
Joined: Jun 2000
Posts: 768
A
Veteran CEG\'er
Offline
Veteran CEG\'er
A
Joined: Jun 2000
Posts: 768
check your PM

#1118706 12/01/04 03:59 PM
Joined: Mar 2002
Posts: 1,325
S
Hard-core CEG\'er
Offline
Hard-core CEG\'er
S
Joined: Mar 2002
Posts: 1,325
Originally posted by alex_96GL:
check your PM




you are a better man than me - I write distributed server side applications all day, but still HATE doing any kind of academic programing assignment. They seem to be designed to purposely torment the coder


97 Contour SE MTX K&N 3530, UR UDP, 19# Injectors, mystery mod, FMS wires, Fordchip.com chip, SVT: TB, Flywheel, clutch, exhaust 04 Grand Caravan SXT
#1118707 12/02/04 02:40 AM
Joined: Jun 2000
Posts: 768
A
Veteran CEG\'er
Offline
Veteran CEG\'er
A
Joined: Jun 2000
Posts: 768
Originally posted by ScottK:
you are a better man than me - I write distributed server side applications all day, but still HATE doing any kind of academic programing assignment. They seem to be designed to purposely torment the coder



you should see some interview questions I was asked on undisclosed occasions...

how about:
define class Fraction (as in 1/3, 2/5) and implement operator+ for this class

or:
can you implement a re-entrant mutex given OS primitives. what primitives do u need? (u can do it in pseudo-code, that's ok)

or...

you got the idea...

I liked them so much I started asking them myself.
operator+ looks innocent, but I haven't seen a single person who got it right on 1st attempt

#1118708 12/02/04 02:48 AM
Joined: Dec 2003
Posts: 4,155
P
Hard-core CEG\'er
Offline
Hard-core CEG\'er
P
Joined: Dec 2003
Posts: 4,155
^^^Hoping you are close to a solution

I just took a few VB classes.
I agree, the books have problems in them that are really desinged to test your nerves!!


Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5