answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
kenny6666
23 days ago
14

Write a script that prints the multiples of 7 between 0 and 100. Print one multiple per line and avoid printing any numbers that

aren't multiples of 7. Remember that 0 is also a multiple of 7.

Computers and Technology
You might be interested in
An online bank wants you to create a program that shows prospective customers how their deposits will grow. Your program should
8_murik_8 [964]

Answer:

  1. init_balance = float(input("Enter initial balance: "))
  2. interest = float(input("Enter the annual interest rate in percent: "))
  3. monthly_interest = (interest / 100) / 12
  4. current_amount = init_balance + init_balance * monthly_interest
  5. print("Balance after first month: %.2f " % current_amount)
  6. current_amount = current_amount + current_amount * monthly_interest
  7. print("Balance after second month: %.2f " % current_amount)
  8. current_amount = current_amount + current_amount * monthly_interest
  9. print("Balance after third month: %.2f " % current_amount)

Explanation:

The following code is written in Python.

First, prompt the user to input the initial balance and annual interest rate (Lines 1-2).

Next, derive the monthly interest rate by dividing the annual interest by 100 and then by 12 (Line 4).

The calculations for the current amount are applied, adding the monthly interest (Line 5) and displaying the balance after the first month (Line 6).

This procedure is repeated to compute amounts for the second and third months, followed by printing the results to the console (Lines 8-12).

5 0
2 months ago
Read 2 more answers
Other questions:
  • 6. Write pseudo code that will perform the following. a) Read in 5 separate numbers. b) Calculate the average of the five number
    6·1 answer
  • If a packet gets “sucked down a black hole” (figuratively speaking) and is not received by its sender, and no message is sent ba
    14·1 answer
  • Redo Programming Exercise 16 of Chapter 4 so that all the named constants are defined in a namespace royaltyRates. PLEASE DONT F
    14·1 answer
  • During a move, employee workstations were disconnected from the network and reconnected in new offices. However, after the move
    11·1 answer
  • On January 1, 1980, Moises deposited $1850 into a savings account paying 5.6% interest, compounded quarterly. If he hasn't made
    9·2 answers
  • Under what category of programs and apps do databases and enterprise computing fall?
    8·1 answer
  • An automobile battery, when connected to a car radio, provides 12.5 V to the radio. When connected to a set of headlights, it pr
    11·1 answer
  • ANSWER AS SOON AS POSSIBLE: When I try to join roblox adopt me it says: "Roblox Datastore servers are currently down. Please rej
    10·2 answers
  • 14. Write a program that accepts or rejects applicants for admission at Fictional University. To qualify, an applicant must be a
    8·1 answer
  • Which of these graphic elements combine text, illustrations, and color? Word Art Smart Art Clip Art none of the above
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!