ممكن تساعدوني على حل هالاسايمنت .. عجزت و انا ابي احله .. اللي يعرف له يحله بليييز والله يجعله في ميزان حسناتكم..
ITCS101
Assignment #2 (chapter 3)
Suppose that the file inData.txt contains the following data:
56.4 38.1
7.5 3.2
X
Write a C++ program that read from the inData file the first two numbers, calculate and print the sum of them into outData.txt file. Then read the next two numbers , find the production and print it in the outData file. Finally, read the character in the last line and print the character that comes before it in the ASCII set .
After the execution, the outdata.txt should contain;
********************************
56.40+ 38.10= 94.50
7.50* 3.20= 24.00
The cahracter before X is :W