|
Joined: Jun 2003
Posts: 1,145
Hard-core CEG\'er
|
OP
Hard-core CEG\'er
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
|
|
|
|
Joined: Nov 2000
Posts: 1,101
Hard-core CEG\'er
|
Hard-core CEG\'er
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
|
|
|
|
Joined: Jun 2003
Posts: 1,074
Hard-core CEG\'er
|
Hard-core CEG\'er
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!
|
|
|
|
Joined: Jun 2000
Posts: 768
Veteran CEG\'er
|
Veteran CEG\'er
Joined: Jun 2000
Posts: 768 |
 bring it on
|
|
|
|
Joined: Jun 2003
Posts: 1,145
Hard-core CEG\'er
|
OP
Hard-core CEG\'er
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
|
|
|
|
Joined: Jun 2003
Posts: 1,145
Hard-core CEG\'er
|
OP
Hard-core CEG\'er
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
|
|
|
|
Joined: Jun 2000
Posts: 768
Veteran CEG\'er
|
Veteran CEG\'er
Joined: Jun 2000
Posts: 768 |
|
|
|
|
Joined: Mar 2002
Posts: 1,325
Hard-core CEG\'er
|
Hard-core CEG\'er
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
|
|
|
|
Joined: Jun 2000
Posts: 768
Veteran CEG\'er
|
Veteran CEG\'er
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 
|
|
|
|
Joined: Dec 2003
Posts: 4,155
Hard-core CEG\'er
|
Hard-core CEG\'er
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!!
|
|
|
|
|