Create a loop to print a table with all the characters

Assignment Help C/C++ Programming
Reference no: EM13834147

- Use the Scanner class to accept input from the user.

Prompt the user for their first name, last name, and age each individually.

Use string concatenation to obtain the user's full name.

Compare the length of the first and last name and if they are the same print:

- "Hello First Last"

- "Your first and last name have both n letters"

- where First and Last are the first name and last name, and n is the length of these names.

- If the first and last name are of different size, print:

"Hello First Last"

" The length of your first name is: n"

" The length of your last name is: m"

- where First and Last are the first name and last name, and n and m are the lengths of these names.

- Create a loop to print a table with all the characters in the user's full name and their corresponding ASCII value. You may use the charAt() method of the String class to identify each of the characters in the full name and type cast them as int to obtain their ASCII value (see example).

- Print out the user's age with the format shown in the example below.

Print out the year the user was born with the format shown in the example below. This year is obtained by subtracting the age from the current year.

Using increment, increase the age by one and create the output shown in the example below.

Using compound assignment operators, increase the age by 4 more and create the output shown in the example below.

Do not forget to use comments to describe your program and variables. Also do not forget to indent it properly.

Reference no: EM13834147

Questions Cloud

Banking system and money supply increase : You take $1000 you had kept under your mattress and deposit it in your bank account. If this $1000 stays in the banking system as reserves and if banks hold reserves equal to 20 percent of deposits, by how much does the total amount of deposits in th..
Write a blog post about the given articles : In this assessment item, you are required to maintain an online reflective blog/journal and write blog posts/entries based on academic articles.
Dollars exchange value on the firms profitability : What means do they use to hedge against exchange rate risk - Using this information, what do you think would be the effect of increases or decreases in the dollar's exchange value on the firm's profitability?
Receive an inheritance-return that you can depend on forever : If you receive an inheritance of $10,000 today, how long do you have to invest it at 8% per year to be able to withdraw $2,000 every year forever? Assume the 8% per year is a return that you can depend on forever.
Create a loop to print a table with all the characters : Create a loop to print a table with all the characters in the user's full name and their corresponding ASCII value. You may use the charAt() method of the String class to identify each of the characters in the full name and type cast them as int t..
Difference between a one-tail test and a two-tail test : 1. What is the difference between a one-tail test and a two-tail test? 2. What is meant by a p-value?
Do post surgical patients have increased pain satisfaction : Locate a minimum of 15 peer-reviewed articles that describe the problem or issue and that support the proposed solution. Eight of the 15 articles must be research-based (e.g., a study which is qualita) Do post-surgical patients have increased pain sa..
Accident while driving off-road vehicle made by drivers edge : Chase is injured in an accident while driving an off-road vehicle made by Drivers Edge, Inc., an out-of-state corporation. Chase files a suit against Drivers Edge, alleging negligence, and mails a summons and a copy of the complaint to the firm by ce..
What is the optimal number of people should recruit to help : what is the optimal number of people she should recruit to help

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Explain characteristics unique to object-oriented programing

The machine language treats a message as bits while object-oriented programming language treats every message as an object. Do you agree with this statement? Why or why not? Explain the characteristics unique to object-oriented programming and how..

  Enter the temperature at noon of each of the five days

Write a program that allows each employee to enter the temperature at noon of each of the five days and displays the highest, lowest, and average (mean) temps.

  Write a corresponding if else statement

The mathematical operation max(x,y,w,z) can be represented by using the conditional expression operator, as in:  max = (x > y && x > z && x > w) ? x : ((y > z && y > w) ? y : ((z > w) ? z : w))  Write a corresponding if else statement that is equival..

  Create a two-dimensional array

Describe a problem where you might need to create a two-dimensional array to accurately model the data, and describe how you would use the data to help solve the problem.

  Taskimplement class serial using serialcpp and serialh- the

taskimplement class serial using serial.cpp and serial.h- the function call operator is overloaded and will generate a

  Display the commands

Display the commands(s) used to do the following (and show the results): see the df command to view file system use in megabytes.

  The program will read integers values

Write a C++ program to do the following. The program will read integers values one at a time from standard input (cin) until you read the value 150. assume that the number of values read in is at least 1 and less than or equal to 100

  Prepare an application that creates a quiz

Prepare an application that creates a quiz, which contains at least five questions about a hobby, popular music, astronomy, or any other personal interest.

  Write the pseudo code for a subprogram called summer

Write the pseudo code for a subprogram called summer (and only the subprogram) which has three parameters: A two dimensional array of integers which is changed by summer and sent back

  A password must have at least eight characters

A password must have at least eight characters. A password must consist of only letters and digits. A password should contain at least one uppercase letter. A password must contain at least two digits.

  Calculate the cube of a number

Write a program that will calculate the cube of a number. Do this by writing a user defined function that returns the cube of the value passed to it. Print out the results from main.

  Produce a c program to calculate the total price for order

Your friend has just opened a computer appliances shop at Changloon. He asked your help to develop a computer program which can be used at the counter. Your program should be able to input the customer's order which could be more than one item. Produ..

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