Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

A group of students is raising money for an international charity. They aim to collect all together 10,000 US Dollars (USD). However, they are collecting

image text in transcribed
A group of students is raising money for an international charity. They aim to collect all together 10,000 US Dollars (USD). However, they are collecting the money in Omani Rials (OMR). An Omani Rail is converted into US Dollars using the following formula: US Dollars = 2.60 x Omani Rials Write a program named charity-py the helps these students figure out the amount remaining to reach their target. The program should do the following: a. Ask the user to enter the number of students in the group. b. Ask the user to enter the target amount to collect (in USD) c. Ask the user to enter the amount collected by each student (in OMR). Your program should then: 1. Convert the OMR value into USD for each student; 2. Display a table containing the amount collected by each student (in USD); 3. Calculate the sum of USD amount collected by all students; and, 4. Calculate the difference between what is collected and the target amount. Implement your program by utilizing Python loops and lists. The output of your program should look like the following

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases DeMYSTiFieD

Authors: Andy Oppel

2nd Edition

0071747990, 978-0071747998

More Books

Students also viewed these Databases questions

Question

Factor by grouping. 2mx - 6qx + 2my - 6qy

Answered: 1 week ago