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

  Write a statement that passes the value 4

1) Examine the following function header, the write an example call to the function. void showValue(int quantity)

  Optimizes processing large amounts of data

Businesses today are extremely reliant on large amounts of data for making intelligent business decisions. Likewise, the data warehouses are often structured in a manner that optimizes processing large amounts of data.

  Information technology support company-s business processes

How can information Technology support a company's business processes and decision making and give it competitive advantage? Give examples to illustrate your answer.

  Election-counting algorithm

Suppose further that a friend of yours is guessing that if the winning candidate gets more than 40% of the votes, then his or her name will be encoded with a single bit. Prove that this conjecture is true and analyze the running time of this elect..

  Write a cosine function

Write a cosine function that models the movement of the boat in relationship to the equilibrium point

  What is the difference between arin, ripe, iana

What is the difference between ARIN, RIPE, IANA?

  Maximum number of guppies

A rectangular fish tank measures 5 feet long 3 feet wide and 2 feet deep. if a guppy requires 1.5 cubic feet of water, what is the maximum number of guppies that can live in this tank? show all work and round your answer to the nearest whole guppy..

  Discuss recent legislation related to ethical computing.

Discuss recent legislation related to ethical computing.

  Cloud computing to the rescue

Cloud computing provides scalable computing resources, software applications, data storage, and networking infrastructure at cost below what would cost an organization to provide an equivalent infrastructure internally.

  Which existing block can be used for this instruction

What new signals do we need (if any) from the control unit to support this instruction?

  Social and environmental risks and vulnerabilities

Compare and contrast the social and environmental risks and vulnerabilities for the two counties you selected, I have selected Norman, Oklahoma and Charles County, Maryland, and summarize your findings.

  Design a suitable source document for ads

Terrier News is a monthly newsletter devoted to various breeds of terriers and topics of interest to terrier owners and breeders. Design a suitable source document for ads that are telephoned or mailed in.

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