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
alexandr1967 [171]
3 years ago
7

Write a calculate_sq_inches_of_good_pizza function that accepts the diameter of a pizza and returns the area of the pizza minus

1 inch at the edge.
Computers and Technology
1 answer:
Feliz [49]3 years ago
6 0

Answer:

#include <iostream>

using namespace std;

<em>float</em><em> calculate_sq_inches_of_good_pizza(float diameter) { </em>

<em>    </em><em>float</em><em> radius= diameter/2;     </em>

<em>    </em><em>float</em><em> pi=3.14;</em>

<em>    </em><em>float</em><em> area;        </em>

<em>    area = pi</em><em>*</em><em>(radius</em><em>*</em><em>radius );</em>

<em>    </em><em>return</em><em> area;</em>

<em>} </em>

int main() {  

   float d;

   cout<<"enter the diameter of pizza"<<endl;

   cin>>d>>endl;

   float area_of_pizza = calculate_sq_inches_of_good_pizza();

   return 0;

}

Explanation:

Above program is written in C++ language which has function namely    float calculate_sq_inches_of_good_pizza(float diameter). This will calculate area of pizza from  given diameter and return it to main() function.

As we know pizza is circle and area of circle is equal to:

Area = π * radius*radius

π =pi=3.14

and we have calculated radius from given diameter

radius = diameter/2;

If you only want function not whole program than ignore main () function and only consider float calculate_sq_inches_of_good_pizza(float diameter) function which is in ITALIC notation.

You might be interested in
Write 3 functions in the starter code below such that: add_to_dict(): takes a dictionary, a key, a value and adds the key,value
shepuryov [24]

Answer:

Required code is given below:

Explanation:

def add_to_dict(dictt, key,value):

if key in dictt.keys():

print("Error. Key already exists.")

else:

dictt[key]=value

return dictt

def remove_from_dict(dictt,key):

try:

dictt[key]

dictt.pop(key, None)

return dictt

except KeyError:

print("No such key exists in the dictionary.")

def find_key(dictt,key):

try:

value=dictt[key]

print("Value: ", value)

except KeyError:

print("Key not found.")

4 0
3 years ago
Rachel works in a bank. She wants to present the idea of implementing an IS to the management. How should Rachel describe the IS
Leni [432]

Rachael should describe information system to the management as an organized system that helps collect or gather, organize, track, store, manipulate, and analyze data to generate and distribute the information from gathered data to appropriate persons. The information generated is useful for managing your operations and making decisions. The efficient use of Information Systems will, without a doubt give a lot of opportunities to the company.

6 0
3 years ago
Read 2 more answers
Examples of pop in computer​
marishachu [46]

Answer:

Short for Post Office Protocol, POP or POP mail is one of the most commonly used protocols used to receive e-mail on many e-mail clients. There are two different versions of POP: POP2 and POP3. POP2was an early standard of POP that was only capable of receiving e-mail and required SMTP to send e-mail. POP3 is the latest standard and can send and receive e-mail only using POP, but can also be used to receive e-mail and then use SMTP to send e-mail.

3 0
3 years ago
F we are reduced to a set of computer algorithms, how do we differentiate ourselves from our programming or our connectome? is i
Goshia [24]

Answer:

Answer explained below

Explanation:

The surface biopsychology and the relatively new science of neuroinformatics are fascinating areas of study are the human brain is the most complex computer in existence. Understanding how it works has been a scientific endeavor for centuries combining the newest advances in computer programming with biochemistry computer modeling allows researchers to collect data and anticipate what may happen in a live brain helping them test and develop hypotheses that can be used in conjunction with experiments in the lab.

The reconstruction of neuronal morphology for simulation is difficult and time consuming, although recent advances in scientific software has somewhat simplified the process using the geometry preparation toolkit illustrates how the complex morphology of a neuron impacts the function of the cell Researchers are able to see the effects of the channels opening and the calcium being released both graphically and numerically.Adolescence involves sexual maturity in terms of hormones and physical development of the body.

The psychosocial context of adolescents is markedly different to that of children and adults Adolescents begin to assert more autonomous control over their decisions emotions and actions and start to disengage from parental control

  • Microchips are about the size of a grain of rice and coated with biocompatible glass upon implantation by syringe connective tissue should form to prevent migration.
  • The procedure is very low.

The current market for these devices includes livestock and laboratory animal industries though the technology is quite useful some problems have already surfaced although some of them tend to be identified with specific programs individuals or locations they are presented here as generic.he processes and methods that we use help determine the greater outcome of the venture,there is a unique quality about humans and that is the need for routine like animals humans too feel a sense of calm when falling into a pattern we are upended when we move to a new home or community when we transfer to a different school and when we change jobs even those who feel that they do not fit in as a quintessential member of society still experience the effects of routine.

That individual will have their process which contributes to the overall success of the group this also applies to education.One student may be inclined to study for seven hours before an exam and another may only study for two each possesses their routine.

  • Neuroinformatics leads us currently neuroscientists collect complex data in ever-increasing amounts fostering increased specialization with resultant challenges to integrate data between and across levels of interaction control and function the field should enhance its wealth of ever-increasing empirical data accumulated from its many disciplines and experimental approaches
  • The purpose of analyzing brain ultrastructure is to understand the normal synaptic communication pathway of neurons and supporting cellular elements and the alternations of such pathways and cellular elements caused by diseases.

6 0
3 years ago
Identify the four basic categories of hardware in a personal computer system
Pie
The four basic categories are the motherboard, the CPU, the graphics card, and the RAM.
Brainliest pls! thx! :)
5 0
3 years ago
Other questions:
  • Write a program that asks for 'name' from the user and then asks for a number and stores the two in a dictionary (called 'the_di
    9·1 answer
  • What are six external parts of a computer
    11·1 answer
  • python If the checksum is 10, the last digit is denoted as X according to the ISBN-10 convention. Write a program that prompts t
    10·1 answer
  • The code segment below uses the procedure IsPartOf (list, item), which returns true if item appears in list and returns false ot
    13·1 answer
  • Technologies can offer safety and protection for people
    11·1 answer
  • Write two examples of hard copy output?​
    9·1 answer
  • 9. What command do you enter in the Explorer search box to access the Remote Admin share on the computer named Fin?
    7·1 answer
  • 2. What is the name for an action performed by the VR Robot?
    7·2 answers
  • Select the correct answer.<br> What do you understand by "exposition"?
    10·2 answers
  • What is command is used to improve the vocabulary and in which tab is it found​
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!