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
Helen [10]
3 years ago
14

Complete the missing part of the line to allow you to read the contents of the file.

Computers and Technology
2 answers:
r-ruslan [8.4K]3 years ago
5 0

Answer: open

Explanation: You need the word "open" to allow inFile to interact with the text file. Correct on Edg 2020/2021.

Firlakuza [10]3 years ago
3 0

Answer: Sorry I’m late but the answer is open

Explanation: Edge 2021

You might be interested in
Peer to peer software can do the following except
Softa [21]
Software can't help us in terms of physical pleasure or help us cure mentally
6 0
3 years ago
Your program will search for prime numbers. You will first ask the user for the range of values to search, and use for loops to
Stells [14]

Answer:

Java code is given below

Explanation:

import java.util.Scanner;

public class Prime {

public static void main(String args[]) {

int first, last, flag = 0, i, j;

Scanner s = new Scanner(System.in);

System.out.println("Enter the lower limit :");

first = s.nextInt();

System.out.println("Enter the upper limit :");

last = s.nextInt();

System.out.println("The prime numbers in between the entered limits are :");

int x = 0;

for (i = first; i <= last; i++) {

for (j = 2; j < i; j++) {

if (i % j == 0) {

flag = 0;

break;

} else {

flag = 1;

}

}

if (flag == 1) {

x++;

System.out.println(i + " ");

}

}

System.out.println("Total number of prime numbes between " + first + " and " + last + " are " + x);

}

}

7 0
3 years ago
Brainliest
alekssr [168]

Answer:

fair credit reporting act

6 0
3 years ago
Write the definition of a function printAttitude , which hasan int parameter and returns nothing. The function prints amessage t
erastova [34]

Answer:

The function definition to this question can be given as:

Function definition:

void printAttitude(int x1) //define function printAttitude.

{

//nested else-if statements

if(x1==1)

 //if block

cout<<"disagree"<<endl;

//message

else if(x1==2)

 //else if block  

cout<<"no opinion"<<endl;

//message

else if(x1==3)

 //else if block

cout<<"agree"<<endl;

//message

else

cout<<" ";

}

Explanation:

In the above method definition firstly, we define a method that is "printAttitude". In this method, we pass an integer variable that is "x1". This function does not return any value because its return type is void. In this method, we use nested else-if statements. The description of these conditions can be given as:

  • In the if block we check the variable x1 value is equal to 1 If this condition is true. It will print "disagree" otherwise it will go to else-if block.  
  • In the else-if block, we check the variable x1 value is equal to 2 if the condition is true. It will print "no opinion". otherwise, we will go to another else-if block.
  • In this block, we check the variable x1 value is equal to 3 if this condition is true. It will print "agree".otherwise it will go to else block.
  • In the else block it will print nothing.
6 0
4 years ago
Compare using a compiler with using an interpreter to translate high-level programming code
uranmaximum [27]
You can translate high level programming code by using java script.
6 0
3 years ago
Read 2 more answers
Other questions:
  • An electronic resume is a plain-looking document. True of False?
    6·2 answers
  • In programming, what is a string?
    8·2 answers
  • Write an application program that creates and prints a random phone number of the form XXX-XXX-XXXX. Include the dashes in the o
    5·1 answer
  • What portable computing devices, designed for user convenience, have a sensor called an accelerometer that senses vibrations and
    10·1 answer
  • Write the reverseO function recursively. This function takes a string and the length of the string as arguments and returns the
    15·2 answers
  • In a stream channel what is deposited first?
    7·1 answer
  • (TCO 1) You want to find the IP address of an interface. How can you quickly do this?
    7·1 answer
  • Why wouldn't a game using just run-length encodings be challenging?
    9·1 answer
  • Which is an advantage of using a flat file instead of a relational database?
    5·1 answer
  • How to test someone elese internet speed from a distance
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!