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

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

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