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

  Program reads the contents of employees

Design a program that reads the contents of the employees.dat file and prints all the data within it. Format the report as designated in the Printer Spacing Chart below.

  Calculates the average of numbers

Write a C program which takes n number of element from user (where, n is specified by user), stores data in an array and calculates the average of those numbers. Output of the program should look like this;

  Write a c++ program that prompts the user for a double

Write a C++ program that prompts the user for a double that should be between 0 and 100. If the value entered is outside of the interval the program will print an error message. The program should continue to repeat until the user enters an appropria..

  Implementing a client

The CSE3300 server for this exercise waits to receive messages on UDP port 3300 of tao.ite.uconn.edu (IP address 137.99.11.9).1 It iteratively receives a request datagram containing a 32-bit integer representing a social security number

  Develop a class airborne location

develop a class AirborneLocation that represents the location of airplanes with respect to a reference radar location. Each AirborneLocation object should include data member for aircraftID (integer),

  Write a function named sort3

Write a function named "sort3" that takes three floating point arguments, call them "x" , "y" , and "z" , and modifies their values, if necessary, in such a way as to make true the following inequalities: x y z .

  Describe what kind of architecture the new payroll

you have been tasked with building a payroll program for a large organization with offices spread across the united

  Write an application that shows the sum

This is for Object-Oriented Programming Using C++ language - Edition Joyce Farrell. Please ensure to read everything that I have wrote so that there is no confusion.

  Write a program to generate a table of conversions

Write a program to generate a table of conversions from Fahrenheit to Kelvin for values from 0 F to 200 F. Allow the user to enter the increment in degrees Fahrenheit between lines. Use a (do while loop) in your solution.

  Write statements to prompt for and read

Write statements to prompt for and read the user's full name using a Scanner variable.

  Prints the row sums and the column sums

Write a program that reads a 5 x 5 array of integers and then prints the row sums and the column sums

  Program to check compatibity for matrix multiplication

Write down program in C++ for matrix multiplication. Program must accept dimension of both matrices to be multiplied and check for compatibity.

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