C++ Input/Output
/*Note this is a practice exercise from my textbook and I'd like to see a working program and follow the steps to complete a similar exercise to turn it (Keep in mind I'm a beginner at C++ so use the simplest method and comment effectively please)*/
Create a text file with a letter on the first line, and two double-digit numbers on the second line. Write a program using fstream that reads in your text file, creates variables to manipulate that input and outputs the following results to a different text file:
"The ASCII value of your character: " __ " is " ____"
(you will need to cast from a char to an int)
"The sum of " ___ " and " _____ " = " _____ "
(add the two numbers, display both the numbers and final result)
"The product of " ___ " and " _____ " = " _____"
(multiply the two numbers, display both the numbers and final result)
hide problem
By OTA: Yupei Xiong, PhD
OTA Rating: 4.8/5
Your Price: $2.19 (original value ~$23.94)
What's included:
Page generated in 0.0129 seconds