Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a function roots that computes the roots of a quadratic equation. Check for complex roots and print an error message saying that the roots

image text in transcribed

Write a function roots that computes the roots of a quadratic equation. Check for complex roots and print an error message saying that the roots are complex. Be sure to use a variety of test cases, that include complex roots, real roots, and double roots. Write a function pig latin that takes in a single word, then converts the word to Pig Latin. To review. Pig Latin takes the first letter of a word, puts it at the end, and appends "ay". The only exception is if the first letter is a vowel, in which case we keep it as it is and append "hay" to the end. E.g. ''boot" "ootbay", and "image" "imagehay". It will be useful to define a list at the top of your code file called VOWELS. This way. you can check if a letter x is a vowel with the expression "x in VOWELS". Remember - to get a word except for the first letter, you can use word[l:]. Follow the link given in the lectures on Introduction to GitHub. Create a repository for yourself where you upload all your python files. Then, clone these files on a new folder on your Raspberry Pi. Take a screen shot of your GitHub repository and your RPi terminal window after you clone your repository and list all its contents. Follow the instructions given in the videos to set up Samba. Then create a file in the shared folder. Attach screen shots showing the existence of the file both on your computer and RPi. What you should deliver: A hand-written/typed document with your answers A hand-written/typed document with your answers Your Python program Your Python program The requested screen shots The requested screen shots

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

MySQL/PHP Database Applications

Authors: Brad Bulger, Jay Greenspan, David Wall

2nd Edition

0764549634, 9780764549632

More Books

Students also viewed these Databases questions