Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In this program you will find the numerical value of a character You will need at least 4 variables: 1. A character the user will

image text in transcribed
image text in transcribed
In this program you will find the numerical value of a character You will need at least 4 variables: 1. A character the user will input 2. A character for the uppercase version of the input letter 3. An integer for the numerical version of the input letter 4. An integer for the numerical version of the uppercase letter Use 3 additional integer variables for the input and 2 multiplication results. You will need to use functions from: Fincludecstdio,h> //printf, scanf \#includecctype, hs //toupper Instructions: Declare all variables. - Print "Hello my name is (add your name here)" onto the screen. - Prompt the user for a lowercase letter - Scan/read the lowercase letter (character) from the keyboard. - Change the letter to uppercase case//use toupper function from I/EXAMPLE: char newLetter - toupper(inputletter); - Print the original letter (hopefully lowercase letter) onto the screen. - Print the uppercase version of the letter onto the screen - Change the uppercase letter to an integer. Instructions: Declare all variables. - Print "Hello my name is (add your name here)" onto the screen. - Prompt the user for a lowercase letter - Scan read the lowercase letter (character) from the keyboard. - Change the letter to uppercase case//use toupper function from //EXAMPLE: char newLetter - toupper(inputLetter); - Print the original letter (hopefully lowercase letter) onto the screen. - Print the uppercase version of the letter onto the screen - Change the uppercase letter to an integer. //EXAMPLE:intnum1-(int)newLetter; - Declare, ask, and get an integer from the user - Multiply the numl (numerical value of your uppercase character) by the integer that was just enrered by the user. - Print the result onto the screen - Change the original letter to an integer. //EXAMPLEintnuad-(int)inpotletten; - Multiply the num2 (numerical value of your input character) by the integer that was just entered by the user: - Print the result onto the screen - Test your program before submitting

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

Advanced Oracle Solaris 11 System Administration

Authors: Bill Calkins

1st Edition

0133007170, 9780133007176

More Books

Students also viewed these Databases questions

Question

What lessons can be learned from such cases?

Answered: 1 week ago

Question

5. Benchmark current training practices.

Answered: 1 week ago