Imran see if this program works the same way as my professor wants it to. I will attach both his and my problems as well as the assignment.
Here's the assignment
Here's my version of the program (note only part 1 works so far) so if you select choice two or three in the beginning it wont work
Next TurboTax?
Here's the professors version.. and again i only got up to: single 171850-373650
LOLOL!! maybe =) I am actually enjoying this, and no the whole thing was my original work.. woops forgot to attach prof's version.. hold on
play around, try plugging in a couple of numbers.. I am finishing up the "Single" column on the assignment..
what's the limit for taxable income?
i dunno this is just a random assignment..
can't put $1 million
as long as whatever u enter in my program has the results that show up in professor's version im good.
limit so far is 373650
Do you have to program each of the choices separately
well I don't know but it has to work just like professors. I'm using switches for the single/joint/separate and using if/else statements for the numbers allowed.. u know
hold on im attaching the complete version for single only..
Now, I only program in Mathematica and Python
okay here, now you can enter a million.
Nooo first you need to enter 1 or 2 or 3. That's for the filing status. Then it will asks you for the actual amount of money.
It says, enter your filing status: 1 for single 2 for married joint 3 for married separate Single is the only one complete so far
Oh, I need to learn to read
that Works
okay play around with some numbers, by putting them both into my and prof's versions. Just to make sure the results are the same and my stuff so far is right.
Yeah, I tried couple and it checks out
How many lines of code did it take?
hmm.. 92 so far.. but that's with the switches for parts 2 and 3 too
Are you tired of programming now?
Not really.. im actually getting into it.. We're going thru the material a bit fast though, too much homework
What are you learning now
we just did switches and loops today..
while, for, do while
Join our real-time social learning platform and learn together with your friends!