subject
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!

ansver
Answers: 3

Another question on Engineering

question
Engineering, 03.07.2019 14:10
Amass of m 1.5 kg of steam is contained in a closed rigid container. initially the pressure and temperature of the steam are: p 1.5 mpa and t 240°c (superheated state), respectively. then the temperature drops to t2= 100°c as the result of heat transfer to the surroundings. determine: a) quality of the steam at the end of the process, b) heat transfer with the surroundings. for: p1.5 mpa and t 240°c: enthalpy of superheated vapour is 2900 kj/kg, specific volume of superheated vapour is 0. 1483 m/kg, while for t 100°c: enthalpy of saturated liquid water is 419kj/kg, specific volume of saturated liquid water is 0.001043m/kg, enthalpy of saturated vapour is 2676 kj/kg, specific volume of saturated vapour is 1.672 m/kg and pressure is 0.1 mpa.
Answers: 3
question
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
question
Engineering, 04.07.2019 18:20
The characteristic roots of a dynamic system are: 1.7920 1.8160 i, -1.7920 1.8160 i, -0.4160 what is the order of this system? what are the settling time and damping ratio of the system?
Answers: 3
question
Engineering, 04.07.2019 19:10
10 kg of co2 is initially contained at 400 kpa and 300 k. the gas constant for carbon dioxide is 189 j/lkg k) and has a specific heat ratio, k, of 1.289. isentropic expansion then occurs until the pressure is 200 kpa. a) determine the initial volume of co2 in m. b) determine the final temperature in k. c) determine the work done by the system during the expansion kl.
Answers: 2
You know the right answer?
PYTHON

In part A you are asked to write the pseudocode for the program.
In part B...
Questions
question
Mathematics, 28.07.2020 01:01
question
Mathematics, 28.07.2020 01:01
question
Mathematics, 28.07.2020 01:01
question
Mathematics, 28.07.2020 01:01
question
Physics, 28.07.2020 01:01
Questions on the website: 13722363