Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please do in C++ not python please post the code, program inputs, program outputs, test plan, and pseudocode write a program to input 4 individual

please do in C++ not python image text in transcribed
please post the code, program inputs, program outputs, test plan, and pseudocode write a program to input 4 individual numerical characters. The 4 digits entered must be stored into 4 distinct character variables. After inputting all 4 character variables, your program should display each character, in the order they were entered, one per line. After this, your program should calculate the sum of the digits. Display this sum with an appropriate label. Note that you will need to convert the character digit to a numerical digit prior to adding the values together. If you do not do this, you will end up summing the ASCII values. Next, calculate the numerical value of the characters in reverse. For example, if the characters are entered in this order 1234, ' 1 ' will be stored in a character variable, ' 2 ' will be stored in a character variable, ' 3 ' will be stored in a character variable, and ' 4 ' will be stored in a character variable, then you will calculate the numerical value 4,321 and store it into an integer variable. After the character processing and display, your program will then input one integer value. You should pick the digits off of the integer value and print the value in the ones place, the value in the tens place, the value in the hundreds place, the value in the thousands place, and the value in the ten-thousands place, each on an individual line with appropriate labels

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Programming Languages 12th International Symposium Dbpl 2009 Lyon France August 2009 Proceedings Lncs 5708

Authors: Philippa Gardner ,Floris Geerts

2009th Edition

3642037925, 978-3642037924

More Books

Students also viewed these Databases questions