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
Talja [164]
3 years ago
9

Suppose TestSimpleCircle and SimpleCircle in Listing 9.1 are in two separate files named TestSimpleCircle.java and SimpleCircle.

java, respectively. What is the outcome of compiling TestsimpleCircle.java and then SimpleCircle.java?
Computers and Technology
1 answer:
Brilliant_brown [7]3 years ago
3 0

Answer:

Both will compile without any error

Explanation:

Since there was nothing to note we assume that they have no errors in them, we compile each java file by typing javac "name of file.java", javac TestsimpleCircle.java in the case of TestsimpleCircle file, and later go on to type java TestsimpleCircle to see the output. Java files can be compiled either in the console (as done above) or in the development environment like Netbeans where you click the run button and it compiles and run the program for you.

You might be interested in
I’m not good at coding and I’m required to do this but I’m not sure how to do it/code it, could someone code something that has
Andre45 [30]
Hate when people post files
8 0
3 years ago
List any three positive impacts of computer technology in our society?
arlik [135]

Answer:

nWhich statement about the origins of the American population is true?

A most Americans descend from people who first populated this continent about 20,000 years ago

b about 98 percent of Americans live in this country due to the waves of Irish and German people who came in mid 1800s

c immigration expander the American population before 1806 ,bur has no significantly contributed to it since then

d the vast majority. of Americans ms either descended from immigrats or are immigrants themselves

Explanation:

sjsikskakakakakkakznxjduwjawjieieiwiwiwiwiwiw idek computer mouse laptopdhsjsjsjsjjsjs

6 0
4 years ago
Write a short program using Python that will:
Alexxx [7]

Answer:

// program in Python to check perfect number

#function to find number is perfect or not

def is_Perfect_Number(n):

   #total variable

   tot = 1

   i = 2

   #sum of all divisor of number

   while i*i<=n:

       if n%i==0:

           tot = tot + i + n/i

       if tot == n and n != 1:

           return 1

       i = i+1  

   return 0

#read until user enter a perfect number

while True:

   #read integer

   num = int(input("Input an integer: "))

   #call the function

   if(is_Perfect_Number(num)):

       print(num,"is perfect number")

       #if perfect number break

       break

   else:

       print(num,"is not a perfect number")

       #ask again

   print("try again.")

Explanation:

Read number from user and then call the function is_Perfect_Number() with  parameter "num".This will find the sum of all divisor of number.If sum is  equal to number then it will return 1 else return 0.If the number is not  perfect then it will again ask to enter a number until user enter a perfect  number.

Output:

Input an integer: 24

24 is not a perfect number                                                                                                

try again.                                                                                                                

Input an integer: 28                                                                                                      

28 is perfect number

6 0
3 years ago
What is you college success
nadya68 [22]

Answer:

The true measure of student success is how well students are prepared to accomplish their current and future academic, personal, and professional goals through the development of knowledge, a sense of responsibility and self-reliance, and a connection to the college and wider community.

6 0
3 years ago
Where should the works cited page appear in the document?
max2010maxim [7]

Answer:

The Works Cited Page should be the last page of the documents (and it should be a separate page on its own, not just at the bottom of the essay).

4 0
3 years ago
Other questions:
  • Two files named numbers1.txt and numbers2.txt both have an unknown number of lines, each line consisting of a single positive in
    11·1 answer
  • Look at the following list of peripheral items and determine what type they are: mouse, keyboard, webcam, microphone. Input Outp
    15·1 answer
  • Explain what a wiki is and list its advantages.
    5·1 answer
  • When you take a multiple-choice test, you are relying on ________, a means of retrieving information out of your long-term memor
    8·1 answer
  • In a function name, what should you use between words instead of whitespaces?
    10·1 answer
  • I Promise Brainliest !!!!! Describe how the aperture size relates to the size of the lens opening.
    15·2 answers
  • Debevec mentions using the technology he described to animate entire human bodies. Discuss why you think this is or is not a goo
    13·1 answer
  • If you selected row 17 and then selected Insert Sheet Rows, row 17 _____.
    13·1 answer
  • PLEASE I NEED HELP ASAP PLEASE PLEASE!!!
    11·1 answer
  • Which code snippet is the correct way to rewrite this in Semantic HTML?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!