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
exis [7]
3 years ago
8

PLEASE HELP ASAP I WILL MARK AS BRILLIANT

Computers and Technology
1 answer:
Natali [406]3 years ago
6 0
1) Irresponsible behavior.
2) Using a password-protected website and making sure only specific friends can see it.<span>
</span>3) Posting offensive pictures is disrespectful of the feelings of others.
4) Mark posts his e-mail address to gain access to a dozen online gambling sites.
You might be interested in
Imagine that you have access to a class named MyCircle that has void setRadius(double r) and double getRadius() methods. Write a
Nikitich [7]

Code for the method described in the question in java:

public static double averageRadius(MyCircle[] myCircles) {

       double sum = 0;

       for (MyCircle myCircle: myCircles) {

           if(myCircle.getRadius() < 0) myCircle.setRadius(0);

           sum += myCircle.getRadius();

       }

       return sum / myCircles.length;

   }

And the complete program:

import java.util.Random;

public class MyCircle {

   private double radius;

   public double getRadius() {

       return radius;

   }

   public void setRadius(double radius) {

       this.radius = radius;

   }

   public static double averageRadius(MyCircle[] myCircles) {

       double sum = 0;

       for (MyCircle myCircle: myCircles) {

           if(myCircle.getRadius() < 0) myCircle.setRadius(0);

           sum += myCircle.getRadius();

       }

       return sum / myCircles.length;

   }

   public static void main(String[] args) {

       Random random = new Random();

       int N = 10;

       MyCircle[] myCircles = new MyCircle[N];

       for (int i = 0; i < myCircles.length; i++) {

           myCircles[i] = new MyCircle();

           myCircles[i].setRadius(random.nextInt(100));

           System.out.printf("Created MyCircle %d with radius %.2f \n", i, myCircles[i].getRadius());

       }

       System.out.printf("\nAverage radius of %d circles is %.2f \n", N, MyCircle.averageRadius(myCircles));

   }

}

The output was:

Created MyCircle 0 with radius 76.00

Created MyCircle 1 with radius 86.00

Created MyCircle 2 with radius 38.00

Created MyCircle 3 with radius 4.00

Created MyCircle 4 with radius 8.00

Created MyCircle 5 with radius 39.00

Created MyCircle 6 with radius 77.00

Created MyCircle 7 with radius 78.00

Created MyCircle 8 with radius 39.00

Created MyCircle 9 with radius 46.00

Average radius of 10 circles is 49.10

7 0
3 years ago
Create a program that a professor can use to display a grade for any number of students. Each student's grade is based on four t
chubhunter [2.5K]

Using the knowledge in computational language in C++ it is possible to write a code that organizes a student's grades in some subjects

<h3>Writing the program in C++</h3>

<em>#include<iostream.h></em>

<em>#include<conio.h></em>

<em>void main()</em>

<em>{</em>

<em>int i,n,sub1,sub2,sub3,sub4,totaltestscore; </em>

<em>cout<<"Enter the number of students : ";</em>

<em>cin>>n; </em>

<em>for(i=1;i<=n;i++) </em>

<em>{</em>

<em>cout<<" Enter the test score of subject 1 out of 100: ";</em>

<em>cin>>sub1; </em>

<em>cout<<" Enter the test score of subject 2 out of 100: ";</em>

<em>cin>>sub2; </em>

<em>cout<<" Enter the test score of subject 3 out of 100: ";</em>

<em>cin>>sub3; </em>

<em>cout<<" Enter the test score of subject 4 out of 100: ";</em>

<em>cin>>sub4; </em>

<em>totaltestscore=sub1+sub2+sub3+sub4;</em>

<em>if(totaltestscore>=372&&totaltestscore<=400) </em>

<em>cout<<" The grade of the student is : A "; </em>

<em>else</em>

<em>if(totaltestscore>=340&&totaltestscore<=371) </em>

<em>cout<<" The grade of the student is : B "; </em>

<em>else</em>

<em>if(totaltestscore>=280&&totaltestscore<=339) </em>

<em>cout<<" The grade of the student is : C "; </em>

<em>else</em>

<em>cout<<" The student fail "; </em>

<em>}</em>

<em>}</em>

See more about C++ at brainly.com/question/19705654

#SPJ1

3 0
3 years ago
what is the keyboard shortcut to display formulas on the worksheet : a. CTRL+ B. CTRL+: C. CTRL+; D. ALL THE ABOVE
Orlov [11]
Girl i dont know figure it out pookie
4 0
3 years ago
The ampacity of a No. 12 aluminum wire with RHW insulation installed in a raceway that has 19 other wires is
GREYUIT [131]
<span>i believe the answer is C</span>
7 0
3 years ago
3 Which of the following statements are true about how technology has changed work? Select 3 options. With the spread of technol
madam [21]

Answer:

In a gig economy, workers are only hired when they are needed for as long as they are needed.

Businesses can be more profitable by using communication technology to reduce the costs of travel.  

Through the use of the Internet and collaboration tools, more workers are able to perform their jobs remotely.

Explanation:

7 0
3 years ago
Other questions:
  • Which country does coriander come from
    11·2 answers
  • If you see an icon in a document preset that looks like a tiny web browser window, what type of document is the preset meant to
    13·1 answer
  • Write a program which will use a template version of search function(4 points): Randomly generate a list of 100 integers(1 point
    11·1 answer
  • * Declare a variable called "race" of type "Race", andinitialise its value to a new instance of the "Race" class. The"Race" cons
    10·1 answer
  • Google's Chrome OS integrates with web servers using cloud computing and storage to run applications and to perform other functi
    10·1 answer
  • What are some disadvantages of using a word processor over a type writer?​
    7·1 answer
  • when files on storage are scattered throughout different disks or different parts of a disk, what is it called
    10·1 answer
  • You have just purchased a new Dell PowerEdge R820 Rack Server. The server is equipped with four Xeon E5-4650 CPUs, 128 GB of RAM
    8·1 answer
  • Write an inheritance hierarchy for classes Quadrilateral, Trapezoid, Parallelogram, Rectangle and Square. Use Quadrilateral as t
    14·1 answer
  • I’m select circumstances is a permissible character on the Mac operating system
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!