A prpgram to prompt the user for his or her first name

Assignment Help Computer Engineering
Reference no: EM132208454

Question :

Write a program in C++.Prompt the user for his/her first name. Output the user's nickname. Use this algorithm to generate a nickname:

If the first letter in the user's name is odd according to the ASCII chart, output "Big" followed by the first three letters of the name.

If the first letter in the user's name is even according to the ASCII chart, output "Lil" followed by the first four letters of the name.

Required output is below:

Standard Input
Andrew Enter your first name\n Your nickname is:\n Big And\n
Test Case 2

Standard Input
Barney Enter your first name\n Your nickname is:\n Lil Barn\n
Test Case 3

Standard Input
Cammy Enter your first name\n Your nickname is:\n Big Cam\n
Test Case 4

Standard Input
Daniel Enter your first name\n Your nickname is:\n Lil Dani\n
Test Case 5

Standard Input
Eddie Enter your first name\n Your nickname is:\n Big Edd\n
Test Case 6

Standard Input
Michael Enter your first name\n Your nickname is:\n Big Mic\n
Test Case 7

Standard Input
Stuart Enter your first name\n Your nickname is:\n Big Stu\n
Test Case 8

Standard Input
Xerxes Enter your first name\n Your nickname is:\n Lil Xerx\n
Test Case 9

Standard Input
Yasmine Enter your first name\n Your nickname is:\n Big Yas\n
Test Case 10

Standard Input
Zenith Enter your first name\n Your nickname is:\n Lil Zeni\n
Test Case 11

Standard Input
And+rew Enter your first name\n Only letters are allowed.\n

Reference no: EM132208454

Questions Cloud

Write a program in c which creates two child processes : Write a program in C which creates two child processes. Each child process should read a character from the keyboard and then write it to a single pipe.
A program to store the test grades in an array : Write a program in C++ that will ask the user to input 5 test grades. Store the test grades in an array.
Accept command line options to use in the program : Write a program in C++ that will accept command line options to use in the program. Command line option 1 will be the program name.
What is the maximum gst credit for the family : Consider a Canadian family of five - two adults and three children (age 5, 9 and 12). Currently there are two wage earners in the family - the husband's annual.
A prpgram to prompt the user for his or her first name : Write a program in C++.Prompt the user for his/her first name. Output the user's nickname. Use this algorithm to generate a nickname.
A program to implement two different searching techniques : Write a program in C++ to implement two different searching techniques: - Linear search - Binary search
Prompts you to enter a positive integer value or q to quit : Use "tail recursion" where a function calls itself as explained on page 356 to calculate the sum of all integers from 1 to the value entered.
How would mary proof negligence against chariot hotel : How would Mary proof negligence against Chariot Hotel if the cause of the severe breathing problem was the fact that Chariot Hotel staffs did not vacuum.
Allow the user to choose which lines to display on screen : Write a program in C that will Open a text file, Read the text file, and allow the user to choose which lines to display on the screen.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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