#include<iostream> #inlcude<fstream> #include<iomanip> using namespace std; //gl
ID: 3613864 • Letter: #
Question
#include<iostream>
#inlcude<fstream>
#include<iomanip>
using namespace std;
//global declarationsection
ifstream infile;
ofstream outfile;
int main()
{
//declaration
int tickets250, tickets100, tickets50,tickets25;
outfile<<fixed<<showpoint;
otfile<<setprecision(2);
infile.open("ticketsinput.txt");
outfile.open("ticketsoutput.txt");
//input section
//computation section
//output section
outfile<<setw(5)<<"250"
Explanation / Answer
please rate - thanks even with the message I'm not sure what you wanted Hope this gets you started #include #include #include using namespace std; //global declaration section ifstream infile; ofstream outfile; int main() { //declaration int tickets250, tickets100, tickets50,tickets25, total=0; int price250, price100, price50,price25; outfileprice25>>tickets25; //computation section total+=price250*tickets250; total+=price100*tickets100; total+=price50*tickets50; total+=price25*tickets25; //output section outfileRelated Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.