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
AveGali [126]
3 years ago
12

Given an initialized String variable outfile, write a statement that declares a PrintWriter reference variable named output and

initializes it to a reference to a newly created PrintWriter object associated with a file whose name is given by outfile.
Computers and Technology
1 answer:
Zina [86]3 years ago
5 0

Answer:

PrintWriter output=new PrintWriter(outfile);

Explanation:

In object oriented programming, the statement PrintWriter output=new PrintWriter(outfile); creates an object of the class PrintWriter this object is the reference variable called output. and it is assigned the string variable outfile. The object output can then be used to access other methods and fields of the class PrintWriter using the dot notation (or operator)

You might be interested in
Select the correct answer.
oee [108]

Answer:

D

Explanation:

3 0
3 years ago
Hiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
Marianna [84]

Answer:

hello

Explanation:

how are you?

7 0
3 years ago
What happens when you position the mouse cursor over an edge or corner of a bounding box that has sizing handles?
bezimeni [28]

Answer:

The cursor changes to a two edged arrow pointer and the bounding box is highlighted.

Explanation:

Bounding boxes in windows operating system is a boundary line of the windows box that run that runs applications and other utilities in the system. A sizing handle is a tool used in place of a the minimize and maximize button on top of the windows box. It is found on the bottom right edge of the windows box.

When a cursor points to the sizing handle, the cursor changes to a double edge arrow pointer and the bounding box is highlighted, and can be resized on the screen.

7 0
3 years ago
Read 2 more answers
Advanced Sounds is engaging in a full upgrade of its Windows Server 2003 network to Windows Server 2008. The upgrade includes us
Lynna [10]

Answer:

cs

Explanation:

5 0
3 years ago
Modify the program you wrote for Chapter 6 Exercise 6 so it handles the following
Basile [38]

Answer:

#try except

try:

   #opening the file

   read_file = open('numbers.txt', 'r')

   #Store the numbers in the variable file_numbers.

   file_numbers = read_file.read()

   #close the file

   read_file.close()

   #Split the number of files in list_values.

   list_values = file_numbers.split()

   #how many numbers are there

   list_length = len(list_values)

   try:

       #loop it up

       for i in range(list_length):

           list_values[i] = float(list_values[i])

       #Add up all the numbers, put into list_sum

       List_sum = sum(list_values)

       #heres how we average it

       Average_value = (List_sum)/list_length

       #print

       print(Average_value)

   except ValueError:

       print( "File must have only numbers. Try again." )

   #handles IOError exceptions

except IOError:

   #Display statement

   print("Trouble opening file. Try again.")

Explanation:

The python program uses the try-except exception handling method to catch errors in the code. The IOError is used for catching input and output errors in the program like file handling while the ValueError keyword in the except statement is used to catch data type errors from a return statement, calculation or user input.

6 0
3 years ago
Other questions:
  • A person who enjoyed making paper airplanes as a child might very well find a satisfying career as a(n) _____ engineer.
    7·2 answers
  • The medium format camera uses ___ film
    7·1 answer
  • A vast global network that is made up of many smaller interconnected networks is known as:
    13·2 answers
  • When Twitter is used to gather a large group for a face-to-face meeting it is called a
    10·1 answer
  • The ____________ deals with the well-being of the EMT, career progression, and EMT compensation. Select one: A. EMS administrato
    9·1 answer
  • People should never use telepresence when virtually meeting with a group of co-workers. True False
    11·2 answers
  • Iman manages a database for a website that reviews movies. If a new movie is going to be added to the database, what else will n
    7·2 answers
  • with the advent of technology one can experience special features such as 3D theater experiences true or false
    8·1 answer
  • What kind of personal information are you comfortable sharing with others online? Why? What steps do you take to control how tha
    8·2 answers
  • Can someone help me explain Nvm scheduling in operating systems?
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!