Question: File Edit + View Insert Cell Kernel Widgets Help Not Trusted Python 3 O Run Code Submit the assignment in the IPython document file notebook

 File Edit + View Insert Cell Kernel Widgets Help Not TrustedPython 3 O Run Code Submit the assignment in the IPython documentfile notebook (ipynb) format. You will submit only one file called calledAssignment1_XXX.ipynb, where XXX is your last name. Everything taught till Week3 is

File Edit + View Insert Cell Kernel Widgets Help Not Trusted Python 3 O Run Code Submit the assignment in the IPython document file notebook (ipynb) format. You will submit only one file called called Assignment1_XXX.ipynb, where XXX is your last name. Everything taught till Week3 is covered in this assignment. Total Points = 125 Due : 02/14/2020 Question 1 (25 points): Write a program that gets a string containing a person's first, middle, and last names including one space in between them, and desplays their first, middle, and last initials. For Example is the user enters mike william smith, the program should desplay M. W. S. (The output should be similar to the following figure) Note: Initials should be upper case letters regardless of whther user type the names correctly or not. Also the program should remove all the extra spaces from the begining and the end of the text that the user enters. Enter first, middle, and last names: mike william Smith First, middle, and last initials: M. W. S. In [4]: ***#Question 1 Code: | Question 2 (25 points): An Investor's stock portfolio consists of four Exchange Traded Funds (SPY, QQQ, EEM, and VXX). Write a program that requests the amount invested in each found as input and then displays the total amount invested and each fund's percentage of the total amount invested. (The output should be similar to the following figure) Enter amount invested in Spy: 80652.22 www.kayak.com > ... > North America > United States 1466 WAL File Edit View Insert Cell Kemel Widgets Help Not Trusted Python 3 O + Run IC Code In [4]: ***wQuestion 1 Code: | Question 2 (25 points): An Investor's stock portfolio consists of four Exchange Traded Funds (SPY, QQQ, EEM, and VXX). Write a program that requests the amount invested in each found as input and then displays the total amount invested and each fund's percentage of the total amount invested. (The output should be similar to the following figure) Enter amount invested in SPY: 89652.23 Enter amount invested in 000: 98965.46 Enter amount invested in EEM: 75298.36 Enter amount invested in Vxx: 56987.59 ETF PERCENTAGE SPY 27.94% 000 30.84% EEM 23.46% VXX 17.76% TOTAL AMOUNT INVESTED: $320,903.64 In [5]: **##Question 2 Code: Question 3 (50 points): Write a program that asks the user to enter a series of 10 numbers and store them in a list. The program should display minimum, maximum, total and average. The program should accept integer and float numbers and display the output with two decimal digits. (The output should be similar to the following www.kayak.com > ... > North America > United States 1468 File Edit View Insert Cell Kemel Widgets Help Not Trusted Python 3 O ^ Run Code Question 3 (50 points): Write a program that asks the user to enter a series of 10 numbers and store them in a list. The program should display minimum, maximum, total and average. The program should accept integer and float numbers and display the output with two decimal digits. (The output should be similar to the following figure) Enter the 1st grade: 123.36 Enter the 2nd number: 169.36 Enter the 3rd number: 852.45 Enter the 4th number: 359.49 Enter the 5th number: 752.15 Enter the 6th number: 562.19 Enter the 7th number: 694.28 Enter the 8th number: 823.16 Enter the 9th number: 121.68 Enter the 10th number: 452.13 The lowest number in the list is: 121.68 The highest number in the list is: 852.45 The total of the numbers in the list is: 4910.25 The average of the numbers in the list is: 491.02 In [6]: ####Question 3 Code: Question 4 (25 points) Write a program that asks the user to enter the number of hours remaining for the flight to Hawaii. Return the outcome in the form of weeks, days, hours and seconds. Asume 1 Week = 168 hours, 1 day = 24 hours etc. www.kayak.com > ... > North America, United States 1468 M File Edit View Insert Cell Kemel Widgets Help Not Trusted Python 3 O + ^ Run Code Enter the 9th number: 121.68 Enter the 18th number: 452.13 The lowest number in the list is: 121.68 The highest number in the list is: 852.45 The total of the numbers in the list is: 4910.25 The average of the numbers in the list is: 491.02 In [6]: #**#Question 3 Code: Question 4 (25 points) Write a program that asks the user to enter the number of hours remaining for the flight to Hawaii. Return the outcome in the form of weeks, days, hours and seconds. Asume 1 Week = 168 hours, 1 day = 24 hours etc. Sample outcome Total hours remianing for flight: 36 Time remaining for the flight is O weeks 1 days and 12 hours In [ ]: : www.kayak.com > ... > North America > United States 1468

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!