Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Access PyCharm. Then, demonstrate how to work with the complex objects as outlined below. Take appropriate screenshots (with descriptions) as needed. All documentation should be

Access PyCharm. Then, demonstrate how to work with the complex objects as outlined below. Take appropriate screenshots (with descriptions) as needed. All documentation should be completed in your Jupyter Notebook IPYNB file.

Five Logical Operators

Choose five logical operators. In a table, write up the following and then execute your example.

  1. The Command
  2. The Description
  3. Your own example
  4. The Result

Selection Operators

  1. Build your own if statement where there are five Code Blocks (e.g. Code block A, Code block B, etc.).
  2. Construct a diagram of the if statement that you created (use correct flow chart symbols).
  3. Buildyour own if/else statement where there are five Code Blocks (e.g. Code block A, Code block B, etc.)
  4. Construct a diagram of the if/else statement that you created (use correct flow chart symbols).
  5. Buildyour own if/elseif/else statement where there are five Code Blocks (e.g. Code block A, Code block B, etc.).
  6. Construct a diagram of the if/elseif/else statement that you created (use correct flow chart symbols).
  7. Buildyour own switch condition where there are five statements (e.g. create a story of wearing clothes based upon the weather).
  8. Construct a diagram of the switch condition that you created (use correct flow chart symbols).

Loops

Builda for loop where the output increments by a single digit 20 times.

Builda for loop that utilizes the next command where the output increments to 35 with only the odd numbers showing in the output.

Utilize the following scenario and pseudocode to construct a Python script and then run the script and display the results:

There once was a nice young couple who needed to borrow $500,000 from their local bank to purchase a home. The annual interest rate is 4.75% annually. The lifetime of the mortgage is a 30-year loan, so they need to pay it off within 360 months. The couple decides that paying $1,750 per month would be best for them as their monthly mortgage payment. Will they pay the loan off in time with those numbers?

Pseudocode example (the pseudocode below are some basic components you should consider...you can construct as you see fit):

# setup

# convert annual interest to a monthly multiplier

# keep looping until the loan is paid off...

# print the results on screen

# end of loop

# print the total payments at the end

Functions

Build functions that take five arguments and multiply them according to the type of object they are:

  1. Scalar
  2. Vector
  3. Matrix

Plot each of the functions that you have constructed.

Deliverables

A Jupyter Notebook file to include appropriate screenshots (with descriptions).

Then, in 250-500 words, explain each control statement and function. Make sure to address when and why each would be used in data science practices as well as justify your rationale using sound statistical arguments and associated formulas.

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

Complex Variables And Applications

Authors: James Brown, Ruel Churchill

9th Edition

0073530859, 9780073530857

More Books

Students also viewed these Mathematics questions