Question 9: Input Cheerful Giver

🙏 Cheerful Giver

Use: import task_input_09

Ella receives money for her birthday and wants to give a tithe (10%) to church and share some with a friend in need. She also wants to save the rest. Write a Python program that asks Ella about her gift and calculates her giving and savings.

  • Use input("What is your name? ") to ask for her name. Store it in name.
  • Use input("How much did you receive? ") to ask how much money she received. Store the answer in gift_text.
  • Convert gift_text to an integer using int() and store it in gift.
  • Use input("How much to share with a friend? ") to ask how much she wants to share. Store it in share_text.
  • Convert share_text to an integer using int() and store it in share.
  • Calculate the tithe (10%) and store it in tithe using gift * 10 // 100.
  • Calculate what remains after sharing and tithing and store it in savings using gift - tithe - share.
  • Store a Bible verse in verse and set it to “God loves a cheerful giver.”.
  • Print exactly three lines:
    Name: <name>
    Tithe: <tithe>
    Savings: <savings>
  • Print one more line after that:
    <verse>
Write what you are looking for, and press enter to begin your search!