PYTHON
In part A you are asked to write the pseudocode for the program.
In part B...
Engineering, 03.03.2020 16:33 ejones123
PYTHON
In part A you are asked to write the pseudocode for the program.
In part B you are asked to write the syntax of the code for the program you outlined in the pseudocode.
Program requirements:¶
Accepts the user response to the prompt "What is your favorite quote from a book?"
Accepts the user repsonse to the prompt "What book was that quote from?"
Accepts the user reponse to the prompt "What page was that quote from?"
Count the number of upper case letters
Count the total number of characters
Dispaly "This includes 'dog' in the quote" if the quote includes the three characters to form the series of characters dog any place in the quote.
Use a loop
Print the total number of characters
Example Input:¶
What is your favorite quote from a book?:
Whatever its immediate consequences, the Paramount decision launched a transformation of American film as cultural institution, throwing the industry back into the open state it had emerged from in the 1920s.
What book was that quote from?:
The Master Switch, The Rise and Fall of Information Empires
What page was that quote from?:
179
Example Output displayed to a user:¶
The quote "Whatever its immediate consequences, the Paramount decision launched a transformation of American film as cultural institution, throwing the industry back into the open state it had emerged from in the 1920s." comes from the book The Master Switch, The Rise and Fall of Information Empires and is located on page 179.
Upper Case count:3
Number of characters in the quote: 208
Thank you for your quote, this is a very good quote!
Answers: 3
Engineering, 03.07.2019 14:10
The y form of iron is known as: a) ferrite b) cementite c) perlite d) austenite
Answers: 3
Engineering, 04.07.2019 18:10
Abrake has a normal braking torque of 2.8 kip in and heat-dissipating cast-iron surfaces whose mass is 40 lbm. suppose a load is brought to rest in 8.0 s from an initial angular speed of 1600 rev/min using the normal braking torque; estimate the temperature rise of the heat dissipating surfaces.
Answers: 3
Engineering, 04.07.2019 18:10
Adouble-strand no. 60 roller chain is used to transmit power between a 13-tooth driving sprocket rotating at 300 rev/min and a 52-tooth driven sprocket. a) what is the allowable horsepower of this drive? b) estimate the center-to-center distance if the chain length is 82 pitches. c) estimate the torque and bending force on the driving shaft by the chain if the actual horsepower transmitted is 30 percent less than the corrected (allowable) power.
Answers: 3
Engineering, 04.07.2019 18:10
Thermal stresses are developed in a metal when its a) initial temperature is changed b) final temperature is changed c) density is changed d) thermal deformation is prevented e) expansion is prevented f) contraction is prevented
Answers: 2
English, 26.09.2019 07:30
Mathematics, 26.09.2019 07:30
History, 26.09.2019 07:30
History, 26.09.2019 07:30
Chemistry, 26.09.2019 07:30
Health, 26.09.2019 07:30
Business, 26.09.2019 07:30
Mathematics, 26.09.2019 07:30
Social Studies, 26.09.2019 07:30
Mathematics, 26.09.2019 07:30