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
svetlana [45]
4 years ago
4

Complete the pizzaCaloriesPerSlice() method to compute the calories for a single slice of pizza. A pizzaCalories() method return

s a pizza's total calories given the pizza diameter passed as an argument. A pizza Slices() method returns the number of slices in a pizza given the pizza diameter passed as an argument. double pizzacaloriesPerSlice(double pizzaDiameter) { double totalcalories; double caloriesPerSlice; totalCalories - Placeholder_A; calories Perslice - Placeholder_B; return caloriesPerSlice;
1) Type the expression for Placeholder. A to compute the total calories for a pizza with diameter pizzaDiameter totalCalories =
2) Type the expression for Placeholder_B to compute the calories per slice calories Perslice =
Computers and Technology
1 answer:
dmitriy555 [2]4 years ago
7 0

Answer:

Following are the answer to this question:

1) totalCalories= pizzaCalories(pizzaDiameter); \\defining a variable totalCalories that holds method return value.

2) caloriesPerSlice = totalCalories/pizzaSlices(pizzaDiameter); \\defining a variable caloriesPerSlice that divides totalCalories by the method "pizzaSlices" return value.

Explanation:

Following are the description of the above code:

  • In the first code, a double variable totalCalories that holds method return value. In other words, we can say that method returns its value in totalCalories.
  • In the second code, the method "pizzaSlices" return value divides by the totalCalories variable and this values will be saved in caloriesPerSlice.
You might be interested in
Which of the following statements is not true? Group of answer choices
Nesterboy [21]

Answer:

A

Explanation:

Option A is not true because a Boolean variable type can hold one of two values only that is  (true/True or false/False).

All the other options given in the question are correct because

  1. A variable declaration refers to specifying its type and name
  2. If string variables are assigned a numeric values which is legal provided the values are enclosed in quaotes( " "), trying to carryout a mathematical operation like addition will result in string concatenation.
  3. The Variable name I_Love_to_eat_pizza is legal because it contains no special characters, doesn't start with a number and its not a reserved word in any language
4 0
3 years ago
What is Automation ? Please give an example ?
Tcecarenko [31]

Answer:

Creation/application of technology to deliver goods/services with little human effort.

Explanation:

For example, manufacturing technology produces products without much need of human intervention.

6 0
3 years ago
5 efectos del desarrollo tecnológico en el medio ambiente
sineoko [7]

Answer:

english plzzz

Explanation:

5 0
3 years ago
The motion of any object can be broken down into it's component (parts of) vectors. true or false
Zepler [3.9K]

Answer:

The correct answer choice is true.

8 0
3 years ago
Read 2 more answers
When making an assembly of design what command is most.commonly used?
Schach [20]
There are two common command lines used in creating design assembly. The 'push' and 'pull' command. Both allows you to get parts from the original predelivered content's source desgian    and recreate the design faster and with less memory.
6 0
3 years ago
Other questions:
  • 1 what elements of composition are under your control in photoshop
    13·1 answer
  • What does a graphic organizer do
    6·1 answer
  • Once I have entered text into a presentation, how do I modify the font style of the text? Select the text and use options availa
    9·2 answers
  • 1. Consider a direct-mapped cache that can accommodate 8Mbytes from a main memory, that uses a 32-bit address and 32-byte blocks
    5·1 answer
  • How many of yall are willing too sub to my channel called "Space Juice" with around 200 subs?!​
    11·1 answer
  • Match the spreadsheet functions to their operations.
    10·1 answer
  • Which statement assigns the value 140 to the variable streetNumber in Python?
    13·1 answer
  • I am a mouse, but im not a mouse.<br><br> What am I?
    12·1 answer
  • Complete the getOdds method so it returns a new ArrayList of Integers containing all odd Integers from the parameter ArrayList v
    13·1 answer
  • Write a program that lets the user enter the loan amount and loan period in number of years and displays the monthly and total p
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!