Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create an interactive program that will: Greet the user. Get a letter from an input file (input.txt) and print it to the screen. Change the

Create an interactive program that will:

Greet the user. Get a letter from an input file (input.txt) and print it to the screen. Change the letter to lowercase. Find the numerical ASCII value and print it to the screen. Change the letter to uppercase. Find the numerical ASCII value and print it to the screen. // EXAMPLE: //char letter = 'x'; //int number = (int)letter; Using an if/else statements, determine which is larger numerically and output the result to the screen. Ex. The lowercase is larger or The uppercase is larger. Get an integer from the input file (input.txt) and print it to the screen. Ask and get an integer from the user. Save the integer to a new file called result.txt Calculate the sum of the integer from the file and the integer from the user. Print the result onto the screen. Save the sum to result.txt Ask and get a double from the user. Multiply the double that was entered by the user and the sum that was calculated from step 11. Print the result onto the screen. Save to result.txt

Be sure to save the input.txt file in the same directory as your source code (.c file) in your Z drive. Your output file result.txt should have 3 values. The integer from the user The sum of the integer from the user and the integer from the file The result of the multiplication of the sum (step 11) and the double received from the user (step 14)

(In c+)(Visual studio)

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 Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions