answer.
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
ryzh
17 days ago
6

This program finds the sum and average of three numbers. What are the proper codes for Lines a and b?

Computers and Technology
You might be interested in
During a move, employee workstations were disconnected from the network and reconnected in new offices. However, after the move
Natasha_Volkova [1026]
Ensure the cables are operational and correctly connected. Given that everything functioned well prior to the relocation, but post-move some workstations are unable to receive a valid IP, the first action should be to confirm that the cables are securely connected. If they are, also test the cables for functionality. If issues persist after this, then additional troubleshooting would be necessary.
5 0
2 months ago
To encourage good grades, Hermosa High School has decided to award each student a bookstore credit that is 10 times the student’
amid [951]

Answer:

// here's the Java code.

import java.util.*;

// definition of the class

class BookstoreCredit

{

/* method that prints a message including the name and grade point */

   public static void fun(String name,double grade)

   {

// multiplying grade by 10

       grade=grade*10;

// display the message

       System.out.println(name+"\'s average grade is $"+grade);

   }

// main method for the class

public static void main (String[] args) throws java.lang.Exception

{

   try{

    // scanner instance to read input

       Scanner s=new Scanner(System.in);

        // declaring variables

      String s_name;

      double grade;

      System.out.print("Please enter the name:");

      s_name=s.nextLine();

      System.out.print("Please enter the grade point:");

      grade=s.nextDouble();

   }catch(Exception ex){

       return;}

}

}

Explanation:

Define a string variable named s_name and a double variable named grade. Obtain the name and grade from the user, then invoke the fun() method with these parameters, which will multiply the grade by 10 and output a message that includes the student's name along with their average grade.

Output:

Please enter the name:john

Please enter the grade point:3.2

john's average grade is $32.0

7 0
3 months ago
Compute the approximate acceleration of gravity for an object above the earth's surface, assigning accel gravity with the result
maria [1035]

Response:

Written in Python

G = 6.673 *pow(10,-11)

M = 5.98 *pow(10,24)

d = float(input("Enter distance: "))

g = (G * M)/(pow(d,2))

print("Calculated gravity acceleration: "+str(g))

Explanation:

The following line sets the gravitational constant

G = 6.673 *pow(10,-11)

This line establishes the mass of the Earth

M = 5.98 *pow(10,24)

This prompts the user to input the object's distance

d = float(input("Enter distance: "))

This calculates the gravity exerted on the object

g = (G * M)/(pow(d,2))

This line outputs the gravity acceleration without rounding

print("Calculated gravity acceleration: "+str(g))

8 0
4 months ago
To be a successful computer systems engineer, you must be proficient in programming languages and operating systems. Similarly,
maria [1035]

In summary, the skills listed are referred to as Technical capabilities. These capabilities encompass the Knowledge and skillset required to execute specific tasks. Meanwhile, Soft skills are equally vital, as they pertain to the capability of effectively engaging and communicating with others.

6 0
2 months ago
Read 2 more answers
Other questions:
  • A pedometer treats walking 2,000 steps as walking 1 mile. Write a program whose input is the number of steps, and whose output i
    15·1 answer
  • Write a program that takes a date as input and outputs the date's season. The input is a string to represent the month and an in
    13·2 answers
  • for question 1-3, consider the following code what is output if the user types in 9? click all that apply A, B, C, D click all t
    13·1 answer
  • 1. Orthographic Drawings are used to express ideas that are more complicated. Explain the purpose of the different views and the
    7·1 answer
  • Write a generator function named count_seq that doesn't take any parameters and generates a sequence that starts like this: 2, 1
    5·1 answer
  • Which statement best describes the Tell Me feature in PowerPoint 2016?
    12·1 answer
  • Consider the following sequence of instructions:
    7·2 answers
  • What will be the output of “AAAAMMMMMHHHVV” using a file compression technique?
    10·1 answer
  • A network design engineer has been asked to design the IP addressing scheme for a customer network. The network will use IP addr
    6·1 answer
  • ____ twisted pair is the least quality twisted pair wire that should be used in a data/voice application.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!