Print the name backwards

Assignment Help Basic Computer Science
Reference no: EM131369562

Question:

Write just one program as follows, all code in the main function:

  • Prompt the user to enter his/her full name (see sample output).
  • Use awhile loop to print the name backwards.
  • Useslicing to make a new string in the format lastname, firstname. Print the new string.
  • Determine the number of upper and lower case letters in the name. Print both totals.
  • Assign "You have to be vewy, vewy twicky to twap a wascally wabbit" to another new string.
  • Use a methodto correct Elmer Fudd's bad spelling above. Print the corrected string.

SAMPLE OUTPUT

Enter your full name John Hancock

Backwards, your name is kcocnaH nhoJ

Alphabetically, your name is Hancock, John

Your name has 2 upper case letters and 9 lower case letters

You have to be very, very tricky to trap a rascally rabbit

Reference no: EM131369562

Questions Cloud

List and describe three types of training methods : There are several instructional methods and activities that can be used to deliver training. As a trainer, you should have a broad awareness of different kinds of instructional methods so that you can recommend and utilize the most appropriate soluti..
Key players-departments in the organization : So if you were doing this network design for a company and you did not have all the details above yet, where would you start? Would you begin by interviewing the key players/departments in the organization?
Would you expect the revenue management techniques : Would you expect the revenue management techniques of charging differential prices based on target customers' willingness to pay for change order respon-siveness, delivery reliability, schedule frequency, and so forth to be more effective.
Print the name backwards : Prompt the user to enter his/her full name (see sample output). Use awhile loop to print the name backwards. Useslicing to make a new string in the format lastname, firstname. Print the new string.
Discuss the challenges in opportunity for improvements : Per the textbook, to eliminate or reduce non-value-added work is a core step in improving profitability or efficiency of the business process. Give your opinion on whether or not you agree or disagree with this statement and include one (1) exampl..
Describe the training delivery method : Consider your best workplace learning experience. Describe the training delivery method(s) used and identify the factors that contributed to making it an effective workplace learning experience. Then, consider your worst workplace learning experience..
What should you learn about countrie you are considering : When selling a project to another countrie in this case i am talking about singapore. What should you learn about the countrie you are considering? Would you make contact or outsource this part of the project to another country?
What is probability that the device will work when needed : The reliabilities of the components are 0.96, 0.91, and 0.80. What is the probability that the device will work when needed?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Flowchart, psuedocode and desk check

Flowchart, psuedocode and desk check

  What should you do return computer to an operational state

Because you can't see the display, you can't work with the system. What should you do return the computer to an operational state?

  Draw context diagram and the level 0 expansion

Draw Context Diagram and the Level 0 Expansion for the following problem The pharmacy at Mercy Hospital fills medical prescriptions for all hospital patients and distributes these medications to the nurse stations responsible for the patients' care. ..

  Structure and perform any necessary computations

Assume you are given a file containing a trillion records. While inbuilt data structures in Python (e.g., lists, dictionaries) are efficient, why is it a bad idea to load a trillion records into a data structure and perform any necessary computati..

  Modernize its existing system

The library system needs to modernize its existing system. The library materials are currently cataloged in a database, but media checkout is currently done by hand.

  Determine pz and also estimate any constants

Determine P(z) and also estimate any constants in this expression so that P(z) is given in terms only of  and μ. If possible eliminate any common factors in numerator and denominator of this expression

  Display the total annual pay on the screen

Display the total annual pay on the screen.

  Draw a timeline diagram for the sliding window algorithm

Draw a timeline diagram for the sliding window algorithm with SWS = RWS = 3 frames for the following two situations. Use a timeout interval of about 2×RTT.

  Emerging cyber security approaches and technologies

Write an 18 page (or longer) paper in which you identify and assess emerging cyber security approaches and technologies as well as discuss government efforts to nurture the development of these emerging technologies.

  What is the history of the open source software movement

What is the history of the "open source" software movement

  What types of output will this model generate

What kind of environment do the agents exist in? What is the order of events that occurs at each time step of the model? What types of output will this model generate? What do you expect to observe as a result of running this model?

  Write a boolean equation for the overflow output

Design the 32-bit ALU shown in Figure 5.15 using your favorite HDL. You can make the top-level module either behavioral or structural.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd