ittimepass.wordpress.com
74) Write a program in C++ to input roll no and marks of three subject of 10 student. Calculate total marks of all 10 student. Name of input file is marks.txt. Write roll no and total marks of only those students which total marks is greater than 300. Name of this output file is pass.txt. Write roll no and total marks of remaining student to another output file named as fail.txt?
#include #include #include void main() { int rn,s1,s2,s3,tm=0,i; clrscr(); ifstream marks(“ma…