Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

should be a range of numbers of the x should be plotted on the y- 1. Write PYTHON codes to plot a Sine and Cosine

image text in transcribed
should be a range of numbers of the x should be plotted on the y- 1. Write PYTHON codes to plot a Sine and Cosine graph. The X-axis should be ara between 0 and 3"pi with a step of 0.2. The Sine and Cosine of the x should be play axis. Ensure you label: a. x-axis as X b. y-axis as Y c. Title as Sine and Cosine Graph d. Legend as Sine, Cosine (24 marks) 2. Write a PYTHON code to check if a number is a negative, positive and zero. The code should ask the user for a number (6 marks) 3. Write a PYTHON FUNCTION that calculates the area and perimeter of a rectangle. (5 marks) 4. Write a PYTHON code that asks the user for name, Sex and favorite color. Include a comment that reads 'A brief Bio'. The created strings should be formatted as follows to print Hello, I am (mame), (sex) and I love (favorite color). a. The name should be capitalized b. The Sex should be in the lower case C. The favorite color of the user should be in the upper case. (10 marks) 5 List 3 of the following related to Python: a. Errors and give one example of any of the 3 errors listed b. Packages and mention the use of any of the 3 listed packages

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

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions

Question

2. How will you handle the situation?

Answered: 1 week ago

Question

3. Write a policy statement to address these issues.

Answered: 1 week ago