1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
valentinak56 [21]
3 years ago
4

Given the availability of an ifstream object named indata and an ofstream object named outdata, write the other statements neces

sary to read one integer from a file called currentsales and write twice its value into a file called projectedsales. Assume that this is the extent of the input and output that this program will do.
Computers and Technology
1 answer:
mestny [16]3 years ago
8 0

Answer:

The following program:

int value;    //set an integer vaiable

indata.open("currentsales");

outdata.open("projectedsales");

//read one integer from the file "currentsales".

indata  >> value;

//write twice of its value into the file "projectedsales".  

outdata << (value*2);

indata.close();

outdata.close();

Explanation:

Here, we define an integer variable "value".

Then, we use open() method with indata and outdata for "currentsales" and "projectsales".

Then, we read one integer from the file "currentsales".

Then, we write twice of its value into the file "projectedsales".  

Then, we close both open() method which we open previously by using close() method.

You might be interested in
Greyer Corp, manufactures surgical instruments. Systems Medico Inc. enters into a contractual arrangement with Greyer that allow
hammer [34]

Answer: Licensee

Explanation:

Licensee is defined as the person who holds the licence after receiving it. He/she is known as license holder who receives it from the licensor. Licensee has the official right and permit to use a service or good.

According to the question, Greyer Corp. is granting the license to System Medico as a licensor so that they can indulge with them to manufacture and sell surgical tools.

For this agreement ,System Medico is paying a yearly fee in the form of permit (license) to access the services of Greyer Corp along with the agreement in the form of licensee

8 0
3 years ago
Using powerpoint 2016, ethan develops a short five-slide presentation for his marketing project. â â powerpoint files consist of
Lady bird [3.3K]
b. Ribbons  - Powerpoint 2016 has a tabbed ribbon system that groups relevant menus together according to category. The ribbon contains a number of tabs, each having a separate group of commands. The tabs can be used to do most of the common tasks in Powerpoint.
8 0
4 years ago
The next thing Maia wants to do is to indent the first line of her paragraphs.
mr_godi [17]

Answer:

she can indent the first line of her paragraph by clicking on the space bar a series of time.

3 0
3 years ago
Read 2 more answers
________ uses shared computing resources instead of having local servers or devices to handle computing applications.
Oksanka [162]

Answer:

cloud computing

Explanation:

3 0
3 years ago
Your reputation and credibility will be immediately destroyed if your website contains?
lora16 [44]

Answer:

B

Explanation:

8 0
3 years ago
Read 2 more answers
Other questions:
  • Which is the output of the formula =AND(12&gt;6;6&gt;3;3&gt;9)
    6·1 answer
  • Ben chang noticed that his store was lagging in sales . He realized that his staff was not experienced enough . As the store man
    13·2 answers
  • ____ is an object-oriented programming language from Sun Microsystems which allows small programs called applets to be embedded
    13·1 answer
  • Little circles located in front of various website screen options, which can be selected with the mouse, are called ________.
    6·1 answer
  • A 1400 kilogram car is moving at a speed of 25 m/s. How much kinetic energy does the car have?
    15·2 answers
  • A router has just received the following new IP addresses: 88.62.108.0/21, 88.62.116.0/21, 88.62.120.0/21 and 88.62.128.0/21. If
    5·1 answer
  • Experienced students may serve as mentors if they are at least age 21 and have at least 3 years of post-secondary education. In
    5·1 answer
  • 1. Empty tags do not have ___________.
    14·1 answer
  • What is the relationship between agile teams and project requirements
    9·1 answer
  • Anyone want to talk? it can honestly be about any subject :)
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!