subject

Reading and Writing to a File Bring in billfile. cpp from the Lab 5 folder.
The code is as follows:

// This program will read in the quantity of a particular item and its price.
// It will then print out the total price.
// The input will come from a data file and the output will go to
// an output file.
// PLACE YOUR NAME HERE
#include
#include
using namespace std;
int main()
{
ifstream dataIn; // defines an input stream for a data file
ofstream dataOut; // defines an output stream for an output file
int quantity; // contains the amount of items purchased
float itemPrice; //contains the price of each item
float totalBill; //contains the total bill. The price of all items
dataIn. open("transaction. dat"); // This opens the file.
dataOut. open("bill. out");
// Fill in the appropriate code in the blank below
<< setprecision(2) << fixed << showpoint; // formatted output
// Fill in the input statement that brings in the
// quantity and price of the item.
// Fill in the assignment statement that determines the totalbill.
// Fill in the output statement that prints the total bill,
// with a label, to an output.
return 0;
}

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:30
My mom and i are moving and we don’t have wifi for the next week, i want to know if using a using a hotspot with unlimited data is better than using regular wifi. i’m considering cost, speed, and data sacrifices.
Answers: 1
question
Computers and Technology, 22.06.2019 22:00
Researchers measured the data speeds for a particular smartphone carrier at 50 airports. the highest speed measured was 78.1 mbps. the complete list of 50 data speeds has a mean of x overbarequals16.11 mbps and a standard deviation of sequals18.65 mbps. a. what is the difference between carrier's highest data speed and the mean of all 50 data speeds? b. how many standard deviations is that [the difference found in part (a)]? c. convert the carrier's highest data speed to a z score. d. if we consider data speeds that convert to z scores between minus2 and 2 to be neither significantly low nor significantly high, is the carrier's highest data speed significant? a. the difference is nothing mbps.
Answers: 3
question
Computers and Technology, 23.06.2019 16:30
What is one reason why indoor air pollution has become an increasing problem.
Answers: 1
question
Computers and Technology, 24.06.2019 07:40
What type of multimedia are live news feeds? live news feeds are examples of multimedia.
Answers: 2
You know the right answer?
Reading and Writing to a File Bring in billfile. cpp from the Lab 5 folder.
The code is as fo...
Questions
question
Mathematics, 28.04.2021 16:30
question
Mathematics, 28.04.2021 16:30
question
Mathematics, 28.04.2021 16:30
question
Mathematics, 28.04.2021 16:30
question
Mathematics, 28.04.2021 16:30
question
Mathematics, 28.04.2021 16:30