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
Sphinxa [80]
4 years ago
15

Consider the following program segment. ifstream inFile; //Line 1 int x, y; //Line 2 ... //Line 3 inFile >> x >> y;

//Line 4 Which of the following statements at Line 3 can be used to open the file progdata.dat and input data from this file into x and y at Line 4?
Computers and Technology
1 answer:
MrMuchimi4 years ago
6 0

Answer:

inFile.open("progdata.dat");

Explanation:

This command opens the file which is passed to it as an argument. We are quite used to the C++'s cin and cout functions contained in iostream library for reading and writing data, however, when working will real-life stuff, we find ourselves working with huge data saved as separate files and require our programs to read them, manipulate them and possibly write back to the files... The first operation usually carried out before a file can be read or written to is open

You might be interested in
Write a basic notation for
Licemer1 [7]

Answer:

a = (b + c)/(2 * c)

z = x/(y + c)

c = (9 * c + 32)/5

Explanation:

Required

The expression in basic

To do this, we use () to group items, / as divide and * to combine factors

So, we have:

(a)\ a = \frac{(b + d)}{2c}

In basic, it is:

a = (b + c)/(2 * c)

(b)\ z = \frac{x}{y + c}

In basic, it is:

z = x/(y + c)

(c)\ c = \frac{9c + 32}{5}

c = (9 * c + 32)/5

4 0
3 years ago
Which of these is an effective color scheme?
irga5000 [103]

Answer:

Yellow on white.

Explanation:

Not to bright, soft, and easy to see.

4 0
3 years ago
What is the name for unwanted software that installs when you click some links?
Rudik [331]
Malware you're welcome 
8 0
4 years ago
Read 2 more answers
When describing a software lincense, what does the phrase "open source" mean?
NikAS [45]

Answer:

The phrase "Open Source" means that a program's source code is freely available and may be modified and redistributed.

Explanation:

Hope this helped :)

8 0
3 years ago
Green Field county stadium is planning to conduct a cricket match between two teams A and B. A large crowd is expected in the st
PtichkaEL [24]

Answer:

RS422-A or RS-485

Explanation:

Mode Name: RS422-A

Well, this is the electrical interface. The microprocessor covers the logics to electrical signals, and these electrical signals are then transmitted over a long distance, which is less than 4000 feet through RS422-A. And this is a half-duplex mode with the multidrop receiver and one transmitter at a time, in master-slave format. A receiver is a slave and the transmitter is a master. And there can only be one transmitter at a time. Here, a PC collects the videos from all cameras, through a unified system, and this PC is connected to numerous receivers which are the Screens. Parallel transmission cannot be done over a single line, and it's noisy as well, and hence we stick to serial mode. and here half-duplex as one at a time need to deliver, and not both. Hence, RS422-A is the first mode. which is a half-duplex serial transmission mode.

Reason 1:

It's noiseless

Reason 2:

The number of receivers can be as high as 10.

As the second alternative option:

Mode Name: RS-485

This is even better and allows receivers as high in number as 32, and hence is better than RS-422A. The maximum distance allowed is around 4000 feet, and the rest is the same as RS-422A. it also supports half-duplex.

Reason 1: It's less noisy and even better than RS422-A

Reason 2: number of receivers, and as high as 32 are allowed.

Remember, however, Ethernet is a low distance network, though it also supports collision detection, and multiple access/ carrier detection or CSMA/CD. However, for this question requirement RS-422A and RS-485 network interface will work fine. In the case of ethernet, we have an Ethernet Interface card, which works as an Ethernet network interface. However, Ethernet is a short distance, and will not work here.

6 0
3 years ago
Other questions:
  • Stan is looking at cloud computing options for his business needs. He wants a model that helps his business customers and client
    12·2 answers
  • Which type of security personnel may work for government as well as for private security agencies?
    7·2 answers
  • Banking, insurance, telecommunications, and education are examples of the type of knowledge industry that A. has information as
    12·2 answers
  • Consider this data sequence: "3 11 5 5 5 2 4 6 6 7 3 -8". Any value that is the same as the immediately preceding value is consi
    6·1 answer
  • B.
    12·1 answer
  • Verify (valid or not valid) using resolution the following reasoning: "Every student in the SCIS is a CS student or an IT studen
    15·1 answer
  • Does Brainly have tutors?
    11·1 answer
  • Is this a desktop or a computer, or are they the same thing
    12·1 answer
  • Which of the following is/are used in multimedia?
    14·1 answer
  • A Chain of dry-cleaning outlets wants to improve its operations by using data from devices at individual locations to make real-
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!