Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started