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

Other questions on the subject: Engineering

image
Engineering, 04.07.2019 08:10, doggo242
Which of the following is an easy way to remember the modified “x” tire rotation? a. nondrive wheels straight, cross the drive wheels b. drive wheels straight, cross the nondrive wheels c. drive wheels crossed, nondrive wheels straight d. drive wheels crossed, nondrive wheels crossed
Answers: 1
image
Engineering, 04.07.2019 18:10, winterblanco
The higher the astm grain-size number, the coarser the grain is. a)-true b)-false
Answers: 3
image
Engineering, 04.07.2019 18:20, alexis9263
Have a greater impact on maintenance productivity than any other support group. (clo5) a)-the top management b)-inventory and purchasing c)-sub-contracting d)-cmms
Answers: 2
image
Engineering, 04.07.2019 19:10, gabigalvis1091
What is the main objective of using reheat rankine cycle?
Answers: 3
You know the right answer?
PYTHON

In part A you are asked to write the pseudocode for the program.
In part B...

Questions in other subjects: