Q2 - Calculator (9 points each) Reference the variable names provided below (int 1, int 2, float 1. float 2) to carry ou

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Q2 - Calculator (9 points each) Reference the variable names provided below (int 1, int 2, float 1. float 2) to carry ou

Post by answerhappygod »

Q2 Calculator 9 Points Each Reference The Variable Names Provided Below Int 1 Int 2 Float 1 Float 2 To Carry Ou 1
Q2 Calculator 9 Points Each Reference The Variable Names Provided Below Int 1 Int 2 Float 1 Float 2 To Carry Ou 1 (27.78 KiB) Viewed 72 times
Q2 Calculator 9 Points Each Reference The Variable Names Provided Below Int 1 Int 2 Float 1 Float 2 To Carry Ou 2
Q2 Calculator 9 Points Each Reference The Variable Names Provided Below Int 1 Int 2 Float 1 Float 2 To Carry Ou 2 (24.1 KiB) Viewed 72 times
Q2 Calculator 9 Points Each Reference The Variable Names Provided Below Int 1 Int 2 Float 1 Float 2 To Carry Ou 3
Q2 Calculator 9 Points Each Reference The Variable Names Provided Below Int 1 Int 2 Float 1 Float 2 To Carry Ou 3 (15.51 KiB) Viewed 72 times
Q2 - Calculator (9 points each) Reference the variable names provided below (int 1, int 2, float 1. float 2) to carry out the following calculations: Set ans 1 as the result of int 2 raised to the power of float 1 . Set ans 2 as the result of . Set ans 3 as the result of correct order of operations) • Set ans 4 as the result of the remainder of int 1 divided by int_2 1:# These variables provided for you int 127 int 2 = 8 float 19.5 float 2 19.0 float 1 multiplied by int 2, with int 1 then added int 1 divided by float 2, the result of which is then raised to the power 2 (hint: you will need parentheses to ensure the 1: # YOUR CODE HERE raise NotImplementedError() ]: ## TESTS FOR Q2 [Note: Includes Hidden Tests] assert isinstance(ans_1, float) ]: ## TESTS FOR Q2 [Note: Includes Hidden Tests] assert isinstance(ans_2, float)
In [ ]: ## TESTS FOR Q2 [Note: Includes Hidden Tests] assert isinstance (ans_3, float) In [ ]: ## TESTS FOR Q2 [Note: Includes Hidden Tests] assert isinstance(ans_4, int)
Question 3 (15 points) Using the same variables provided above (int 1, int 2. float 1. float 2), carry out the following operation (remember the order of operations in math: PEMDAS and remember to use parentheses around expressions if you want them to execute in the right ordert) Multiply the sum of int 1 and float 2 with int_1, then divide by int 2 ralsed to the 4th power and then multiply by float 1 raised to the power of 0.5 tn [1: YOUR CODE HERE raise NotImplementedError() In []: ## TESTS FOR Q3 [Note: Includes Hidden Tests)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply