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

  Design a generic unit that implements maps

Design a generic unit that implements maps. A map is an unordered collection of (key, value) entries in which no key is duplicated.

  What controls would prevent or minimize an outbreak

Research a news story related to software license agreements. What controls would prevent or minimize an outbreak within a company?

  Describe the tangible and intangible values

Locate a news article in an IT trade magazine about an organization that is implementing a new computer system. Describe the tangible and intangible values that the organization likely will realize from the new system.

  How many linear feet of shelf space are required

A standard computer CD holds approximately 700 million characters. Estimate how many linear feet of shelf space are required to store 700 million characters encoded as text (i.e., printed, bound books) rather than as electronic media.

  Compare two object oriented programming languages

Write a minimum three page paper that compares and contrasts two object oriented programming languages. Be sure to cover the following:

  What is the index type of the array variable rainbow

What is the index type of the array variable Count? What is the index type of the array variable Rainbow? How many components are there in array variable Count?

  Analyze running time of algorithm

Analyze running time of algorithm

  Write the content of the array

Use a second loop to sum the values stored in the array after the prices of all the books have been read. Write the content of the array to a second file.

  What are the errors

What are the errors

  What is a file protection mechanism

What is a file protection mechanism? How does Unix implement file protection? Who can execute the file? What do you know about the content of the file?

  Recognize what stuffed animals were bought

recognize what stuffed animals were bought before the year 2000. Advise her regarding how she can accomplish these tasks.

  Which command can be used to rename a file or directory

What command flag can you use with cp so that it doesn't accidentally overwrite a file if it already exists (hint: look up the man page for cp)?

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