Python Program for Ohms Law Physics and Banking
COP 2273 Python Programming for Engineers In-class Assignments 1 (ICA1): Python Basics Part A Create a Python program to display the current and resistance values in terms of amperes (for current), ohms (for resistance), and the voltage of the circuit using Ohm’s Law as shown in the test case. Specifications • Your program must ask the user for the current and resistance values of a circuit in terms of milliamperes (for current) and kiloohms (for resistance) as shown in the test case. • The Ohm’s law formula for voltage in terms of current and resistance is: voltage = current × resistance • Assume the user will always enter valid data, no error checking needed. COP 2273 Python Programming for Engineers In-class Assignments 1 (ICA1): Python Basics Part B Create a Python program to calculate and display the final distance of an object as shown in the test case. Specifications • In physics, the final distance (df) can be calculated with the following formula. 𝑑𝑑𝑓𝑓 = 𝑑𝑑𝑖𝑖 + ∆𝑑𝑑 = 𝑑𝑑𝑖𝑖 + ((𝑣𝑣𝑖𝑖 × 𝑡𝑡) + (0.5 × 𝑎𝑎 × 𝑡𝑡 2 )) 𝑤𝑤ℎ𝑒𝑒𝑒𝑒𝑒𝑒 𝑑𝑑𝑖𝑖 (𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖 𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑), 𝑣𝑣𝑖𝑖 (𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖𝑖 𝑣𝑣𝑣𝑣𝑣𝑣𝑣𝑣𝑣𝑣𝑣𝑣𝑣𝑣𝑣𝑣), 𝑡𝑡 (𝑡𝑡𝑡𝑡𝑡𝑡𝑡𝑡), 𝑎𝑎(𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎𝑎) • Assume the user will always enter valid data, no error checking needed. • The program should round the result to a maximum of four decimal places. COP 2273 Python Programming for Engineers In-class Assignments 1 (ICA1): Python Basics Part C Create a Python program to output the most effective amount of bills that will be “deposited” as shown in the test cases. Specifications • Your program must prompt the user to input an integer as the number of dollars. • USD has dollar bills for $1, $5, $10, $20, $50, and $100. You can assume $2 bill won’t be deposited due to rarity. • Assume the user will always enter valid data, no error checking needed. Hint • Use the modulo or remainder operator (%) to find the most effective amount of bills.
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.
