Question: this is written in python gtgtis a high school computer...
THIS IS WRITTEN IN PYTHON >>IS A HIGH SCHOOL COMPUTER SCIENCE COURSE. NOT TOO COMPLICATED PLEASE
Write a program to generate passwords. The program should ask the user for a phrase and number, and then create the password based on our special algorithm. The algorithm to create the password is as follows:
- If the user’s input word is less than 8 characters, output “Password not long enough.”
- If the user’s input word is greater than or equal to 8
characters, do the following:
- Replace e’s with @
- Replace s or S with $
- Replace t or T with +
- Capitalize the word and add the number to the end.
Enter your word: zebras Enter a number: 62 Password not long enough. Enter your word: newyorkcity Enter a number: 892 Password: N@wyorkci+y892
Write a program to find the average of the numbers stored in NewYorkTemps.txt (Down Below!). Be sure your output uses floating point numbers (i.e. numbers with decimals).
Write a program to input ten book titles and author’s names then save them to a file named book.txt.
For each book, the user will first input the title, then input the first name, then the last name of the author, all on separate lines. In addition to saving the books in the file, please output, using the print method. the information you've gathered from the user.
You should follow this format for your output:
TO KILL A MOCKINGBIRD Lee, Harper
All book titles should be in upper case and the author’s name should be capitalized.
Write the code to find the average of the values stored in the text file temperatures.txt. All data in the file are float values.
The average temperature is: 58.36
*average is pulled from temperatures.txt located in Google
The average temperature is: 48.005