Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

**MUST FOLLOW THE EXAMPLE IN THE SECOND PICTURE ** Program in C with visual studio Preprocessor directives: #define _CRT_SECURE_NO_WARNINGS //for Visual studio compiler #pragma warning(disable:6031)

**MUST FOLLOW THE EXAMPLE IN THE SECOND PICTURE ** Program in C with visual studio
image text in transcribed
image text in transcribed
Preprocessor directives: #define _CRT_SECURE_NO_WARNINGS //for Visual studio compiler #pragma warning(disable:6031) //ignore scanf warnings #include //for printf and scanf #include //toupper and to lower Instructions: NOTE all statements MUST be mplemented in the order listed below: Declare all variables. Print "Hello my name is (add your name here)" onto the screen. Prompt the user for a letter. Scan read the character from the keyboard. NOTE: you do not need to force the user to enter a letter, it is ok for the user to enter any character (number, symbol, etc.) Change the letter to lowercase //EXAMPLE: char lowerLetter = tolower(first_letter); Print both the original letter and the lowercase letter onto the screen. NOTE: if the user entered a lowercase letter you will print 2 lowercase letters onto the screen Prompt the user for a second letter. Scan/read the letter from the keyboard. NOTE: you do not need to force the user to enter a letter, it is ok for the user to enter any character (number, symbol, etc.) Change the letter to uppercase //EXAMPLE: char upperletter - toupper(second_letter); Print both the original letter and the uppercase letter onto the screen. NOTE: if the user entered an uppercase letter, you will print 2 uppercase letters onto the screen Prompt the user for a double //Example: double input Scan/read the double from the keyboard (assume the user will enter a double) Prompt the user for an integer //Example: int second_input Scan/read the integer from the keyboard (assume the user will enter an integer) Multiply the double and the integer that were just entered and store the product in a double 7/Example double product; Print the all three numbers (double input, integer second input, and the product) onto the screen . NOTE: You are not required to use the variable names in the assignment description * Add name, date, and a brief description here #define _CRT_SECURE_NO_WARNINGS //for Visual Studio compiler #pragma warning (disable: 6031) I/ignore scanf warnings #include //for printf and scanf #include //toupper and tolower int main() { //declare variables //ask and get the letter 1/change the letter to lowercase //print both letters onto the screen // continue with the rest of the staments in order return 0; }

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

Beginning Databases With PostgreSQL From Novice To Professional

Authors: Richard Stones, Neil Matthew

2nd Edition

1590594789, 978-1590594780

More Books

Students also viewed these Databases questions

Question

What resources will these tactics require?

Answered: 1 week ago