Question

# 3. The following program contains a logical error. Fix it. # Trust Fund Buddy - Bad # Demonstrates a logical error print II

help

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Answer:

the logical error is in the statements taking input.

The monthly costs are taken using input function which returns the input as a string which cannot be added to total costs like this:

games = int(input("Computer Games: "))

Like this, every input string should be first converted to integer and then stored inside the variable.

PLEASE UPVOTE IF YOU FOUND THIS HELPFUL!

Add a comment
Know the answer?
Add Answer to:
help # 3. The following program contains a logical error. Fix it. # Trust Fund Buddy...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • The following program contains a logical error. Fix it. # Trust Fund Buddy - Bad #...

    The following program contains a logical error. Fix it. # Trust Fund Buddy - Bad # Demonstrates a logical error print( """ Trust Fund Buddy Totals your monthly spending so that your trust fund doesn't run out (and you're forced to get a real job). Please enter the requested, monthly costs. Since you're rich, ignore pennies and use only dollar amounts. """ ) car = input("Lamborghini Tune-Ups: ") rent = input("Manhattan Apartment: ") jet = input("Private Jet Rental: ") gifts...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT