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
kodGreya [7K]
3 years ago
5

Select the correct answer.

Computers and Technology
2 answers:
hammer [34]3 years ago
7 0

Answer:

B :)

Explanation:

C and D could work, but B is the most logical.

Hope it helps! :)

If I'm right, I would really appreciate it if you could vote me as the Brainliest answer. Thank you!

snow_lady [41]3 years ago
7 0

Answer:

B

Explanation:

You might be interested in
In a class named InputTextToOutputFile.java use the following prompt to get the fileName of the output file from the user: "What
grin007 [14]

Answer:

Detailed program code is written at explaination

Explanation:

Program:

import java.io.File;

import java.io.FileWriter;

import java.io.IOException;

import java.util.Scanner;

public class InputTextToOutputFile

{

public static void main(String[] args) throws IOException

{

Scanner in=new Scanner(System.in);//Scanner object to get user input

System.out.println("What is the name of your output file? ");

String fileName = in.nextLine();//get output file name

File file = new File(fileName);//File object with fileName as input

//Create the file by method file.createNewFile()

if (file.createNewFile())

{

System.out.println("File is created!");

} else {

System.out.println("File already exists.");

}

//FileWriter object with user file name given as input

FileWriter writer = new FileWriter(file);

System.out.println("Enter text to write to a file : ");

String line;//variable to store line content

do {

line=in.nextLine();//get line content from user

writer.write(line+"\n"); //write content to file by adding new line(\n) character

}while(!line.equals("STOP!"));//repeat a loop until user enters "STOP!" line

writer.close();//close the file object

}

5 0
4 years ago
Write a full class definition for a class named Averager, and containing the following members:______An data member named sum of
alina1380 [7]

Answer:

  1. public class Averager {
  2.    private int sum;
  3.    private int count;
  4.    public Averager(int sum, int count) {
  5.        this.sum = 0;
  6.        this.count = 0;
  7.    }
  8.    public int getSum(){
  9.        return sum;
  10.    }
  11.    public void add( int num){
  12.        this.sum+=num;
  13.        this.count++;
  14.    }
  15.    public int getCount(){
  16.        return this.count;
  17.    }
  18.    public double getAverage(){
  19.        double ave = (int)this.sum/this.count;
  20.        return  ave;
  21.    }
  22. }

Explanation:

  • Lines 1-3 contains the class declaration and the member (data fields)
  • Lines 4-7 is the constructor that initializes the fields to 0
  • Lines 8-10 is the method that returns the value of sum getSum()
  • lines 11-14 iss the method add() that adds a number to the member field sum and increases count by 1
  • lines 15 - 17 is the method that returns total count getCount()
  • Lines 18-21 is the method getAverage() That computes the average and returns a double representing the average values

6 0
4 years ago
Read 2 more answers
Which feature enables you to format data using specific conditions?
Nina [5.8K]
Cell protection
open Review tab>> Changes Group>>Protect Sheet
3 0
3 years ago
Read 2 more answers
Write a C program that gets 4 integer values from the user, namely, x1, x2, y1, and y2, and then calculates and returns the dist
lidiya [134]

Answer:

#include <stdio.h>

#include <math.h>

int main(){

   float x1,x2,y1,y2,distance;

   printf("x1: ");    scanf("%f", &x1);

   printf("y1: ");    scanf("%f", &y1);

   printf("x2: ");    scanf("%f", &x2);

   printf("y2: ");    scanf("%f", &y2);

   distance = sqrt((x1 - x2)*(x1 - x2) + (y1 - y2)*(y1 - y2));

   printf("Distance: %f", distance);

   return 0;

}

Explanation:

This line declares all required variable (i.e. the coordinates and the distance)

   float x1,x2,y1,y2,distance;

The next four line prompt and get input for the coordinates

<em>    printf("x1: ");    scanf("%f", &x1);</em>

<em>    printf("y1: ");    scanf("%f", &y1);</em>

<em>    printf("x2: ");    scanf("%f", &x2);</em>

<em>    printf("y2: ");    scanf("%f", &y2);</em>

This calculates the distance

   distance = sqrt((x1 - x2)*(x1 - x2) + (y1 - y2)*(y1 - y2));

This prints the calculated distance

   printf("Distance: %f", distance);

<em>See attachment for sample runs</em>

4 0
3 years ago
Schematic diagrams tell electricians where the _______ must come from either to open or close contacts.
sergeinik [125]
The answer is A I hope you get it right!
6 0
3 years ago
Other questions:
  • NEED HELP NOW 66 POINTS WILL MARK BRAINLIEST!! For the independent reading all you have to do is pick a grade six book that you
    11·1 answer
  • The is a global information system logically linked together by a globally unique address space based on the Internet Protocol o
    5·1 answer
  • :3 Brainlsit included! =) 33 points!
    10·1 answer
  • Jeremy is designing a website for a florist. He intends to discuss the web design with his client. Which tool should Jeremy use
    6·1 answer
  • What is it called when two different files generate the same hashing result?
    15·1 answer
  • Discuss similarities and differences between the software development and video game development processes.
    7·1 answer
  • You defined a book data type.
    15·1 answer
  • Technically a coding question utilizing python how would one calculate a square root
    8·1 answer
  • Write a program that asks the user to enter a positive integer that represents a number in the decimal system and then displays
    12·1 answer
  • When using VLOOKUP we can search for information from more than one spreadsheet. <br> True or False
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!