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
Anuta_ua [19.1K]
3 years ago
6

Complete the PizzaCaloriesPerSlice() function to compute the calories for a single slice of pizza. A PizzaCalories() function re

turns a pizza's total calories given the pizza diameter passed as an argument. A PizzaSlices() function returns the number of slices in a pizza given the pizza diameter passed as an argument. qustion: Type the expression for Placeholder_B to compute the calories per slice. caloriesPerSlice =
Computers and Technology
1 answer:
mixer [17]3 years ago
4 0

Answer:

The Java code is given below with appropriate comments

Explanation:

//Declare the class

public class CaloriesCount

{

  // Definition of the method

  public static double PizzaCaloriesPerSlice(

  double diameter)

  {

      // To calculate calories per count

      double caloriesPerSlice = PizzaCalories(diameter)

      / PizzaSlices(diameter);

      // return the value.

      return caloriesPerSlice;

  }

  // Definition of method to calculate pizza calories.

  public static double PizzaCalories(double diameter)

  {

      // return value

      return 2 * 3.14 * (diameter / 2);

  }

  // definition to return pizza calories.

  public static double PizzaSlices(double diameter)

  {

      return 8.0;

  }

  // start the main method.

  public static void main(String[] args)

  {

      // Call the method.

      System.out.println(PizzaCaloriesPerSlice(24));

  }

}

You might be interested in
window operating system popularly known as. 1) character user interface. 2) computer user interface. 3) graphic user interface.
fredd [130]

Answer:

The window operating system is popularly known as a graphical user interface(GUI)

Explanation:

older operating systems were command line based but window uses a gui

5 0
3 years ago
Use the drop-down menus to complete the statements about using column breaks in word 2016
Naily [24]

Answer: Breaks in the word 2016 what do you mean

Explanation:

7 0
3 years ago
Read 2 more answers
Keisha wants to change the default printer before printing an e-mail. Which steps will accomplish this task?
Angelina_Jolie [31]

Answer:

The steps that will accomplish the task are;

On the File tab, clicking Print and choosing the desired printer from the Printer drop-down list

Explanation:

In steps required to change the default printer on Microsoft Outlook before printing as e-mail are as follows;

1) Select the File tab on the Menu bar

2) Click on the Print option on the File's Menu

3) From the Print window displayed under the File Menu in Microsoft Outlook select the desired printer from the Printer options drop-down list

The steps that will accomplish the task are On the File tab, clicking Print and choosing the desired printer from the Printer drop-down list.

8 0
3 years ago
_____ involves those activities that ensure the orderly dissolution of a system, including disposing of all equipment in an envi
Ad libitum [116K]

Answer:

The answer is  a stage of system development that involves...

Explanation:

___a stage of system development_ involves those activities that ensure the orderly dissolution of a system, including disposing of all equipment in an environmentally friendly manner, closing out contracts, and safely migrating information from the system to another system or archiving it in accordance with applicable records management policies.

That is the definition of system disposal

5 0
3 years ago
Elisa and Josh need to access General Help. Elisa will press the F1 key. Josh will click on ? in the upper-right corner of the W
astraxan [27]
It will be elisa who will get to it
3 0
4 years ago
Read 2 more answers
Other questions:
  • The term integration refers to the ability to
    6·1 answer
  • Consider the following C code fragment:
    10·1 answer
  • A school principal trying to find out if parents will help buy new playground equipment shows digital leadership by.
    8·2 answers
  • Create a class 'ProblemSolution' with following characteristics A public method 'solution' without parameters and return type is
    14·1 answer
  • If data from a DOS system is electronically sent to an EHR or other Windows-based system via an interface to populate an indexed
    7·1 answer
  • During the _____ of the systems development life cycle (SDLC), an information system is operating, enhancements and modification
    9·1 answer
  • 1. Which sentence best expresses the main idea
    12·1 answer
  • Write a program that reads in exam scores and displays the average score and the high score.
    9·1 answer
  • How do we prevent electrical problems as prescribe by the course?​
    11·1 answer
  • What ribbon command on the home tab can you use to change a cell fill color automatically
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!