// reading_from_file

#include <iostream>
#include <fstream>
#include <cstdlib>
using namespace std;

int main()
{
	// *********** declaration statements *************
	int numBooks = 0;
	int numMovies = 0;
	double totalPrice = 0.0;
	ifstream infile("C:/Users/PSU_USERNAME/Desktop/data.txt"); // or PSU_USERNAME.ACCESS.00?

	// ************ input statements ******************
	infile >> numBooks; 
	infile >> numMovies;

	totalPrice = numBooks * 9 + numMovies * 14;
	cout << "The total price is $" << totalPrice << endl;

	infile.close();

	system("pause");
	return 0;
}// end of main
