For python, Write a function named getResults that accepts radius of a sphere and returns the volume and surface area. Call this function with radius = 3.5 , and display results in one decimal format.
volume = 4/3 * pi * r ^ 3
Surface Area = 4pi * r ^ 2

Answers

Answer 1

import math

def getResults(r):

   return "Volume = {}\nSurface Area = {}".format(round((4/3)*math.pi*(r**3),1), round((4*math.pi)*(r**2),1))

print(getResults(3.5))

I hope this helps!


Related Questions

4.8 code practice question 2 edhesive

Answers

Answer:

for y in range(88, 43, -4):

   print(y, end=" ")

Explanation:

yw

The code practice is an illustration of loops;

Loops are program statements that are used to perform iterative operations

The complete program in Python

The program in Python, where comments are used to explain each action is as follows:

#This iterates from 88 to 42, with a difference of -4

for i in range(88, 43, -4):

#This prints the numbers on a single line

   print(i, end=" ")

Read more about loops at:

https://brainly.com/question/24833629

#SPJ2

plssss help i will mark u as brainliest plssss ​

Answers

Answer:

Explanation:

<p style="color: red">Random Name 1</p>

<p style="color: blue">Random Name 2</p>

<p style="color: yellow">Random Name 3</p>

<p style="color: green">Random Name 4</p>

<p style="color: gray">Random Name 5</p>

<ol>

   <li>Pen 1<li>

   <li>Pen 2<li>

   <li>Pen 3<li>

<ol>

<ul>

   <li>CPU<li>

   <li>Motherboard<li>

   <li>RAM<li>

   <li>GPU<li>

<ul>

I think is this you need, have a nice day ;)

How goes design again ones attention?

Answers

Answer:

the only thing i could think of is creating a different way to get someone to pay attention to you like maybe instead of shouting or tapping on ones shoulder maybe try to ask the person closest to them to get their attention for you. or by doing something extremely impressive or distracting

Explanation:

A program that will ring a bell six times is what kind of program?
A. Edited
B. Iterative
C. Selection
D. Sequence

Answers

Answer:

D

Explanation:

because it is a sequence it does more than one thing

Answer:

B

Explanation:

I took the test

Just took a test and I got 5 wrong and I wanted to know the correct answers

Answers

Answer:

I need the pic

Explanation:

Pleases Help ME An example of a _________________ impact is when a product is back ordered and the business contacts the customer via email to let them know of the new ship date.


A)Negative



B)Positive

Answers

Answer:

positive

Explanation:

it shows good customer service

What kind of skill is persuasion?


neutral skill

hard skill

soft skill

high skill

Answers

Answer:

soft skill

Explanation:

How does natural gas move through pipelines from the well head to the end user thousands of miles away

Answers

It’s the large compressors that are pumping and working together through the different stations ... They move the gas through the pipelines which they’re under high pressure.

Why is content knowledge as important as generalized critical thinking for Web Analytics and Web Intelligence reporting and insights? A) Because it's very difficult for students to apply critical thinking skills learned in one subject to another, even between different fields of science. B) It is said that content is king and that having up to date content knowledge of Web Analytics is crucial in order to be an effective Analyst C) Everything is changing so fast that you need to keep up to date with the changes in the platforms that you use or are considering using for personal or organizational deployment. D) Content knowledge of Web Analytics is important because in a field like emerging technology that Web Analytics is still considered to be, new features of a Web Analytics platform can have a major impact on the ability to do the project and deliver value from it.

Answers

Answer:

B) It is said that content is king and that having up to date content knowledge of Web Analytics is crucial in order to be an effective Analyst

Explanation:

The answer is option B. A good knowledge of content is very important and crucial due to the fact that knowledge stands at the center or the most important thing in the business sector.

Web analytics is a method of measuring, analysing and reporting web usage data. Content knowledge is a good understanding of the subject area. To understand web analytics, a going knowledge of the facts, theories and concepts are important if one wants to be an effective analyst.

Therefore b is the answer to this question.

What is the minimum size of a data type, in bytes, to be impacted by system endianness. (Whole numbers only)?

Answers

Answer:

30

Explanation:

A data type must be at least 2 bytes in size to be affected by the endianness system.

What is endianness system?

Endianness in computing refers to the arrangement of bytes inside a word of digital data stored in a computer's memory.

Big-endian or little-endian are the two main ways that endianness is stated.

The least significant byte in a word is kept at the largest memory location and the most significant byte is kept at the smallest address in a big-endian system.

The term "endianness" refers to the arrangement of bytes as they are stored in computer memory. Endianness is classified as big or little depending on which value is stored first.

Thus, for the endianness system to apply, a data type must be at least 2 bytes in size.

For more details regarding endianness system, visit:

https://brainly.com/question/14488920

#SPJ6

express cards functionalities​

Answers

Answer:

ExpressCard, initially called NEWCARD, is an interface to connect peripheral devices to a computer, usually a laptop computer. The ExpressCard technical standard specifies the design of slots built into the computer and of expansion cards to insert in the slots.

ASAP PLZ!!!. Which command group is used to apply effects and modify color schemes of SmartArt graphics?

Reset Graphics

SmartArt Styles

Graphic Layouts

Create Graphics

NVM!! The answer is B. SmartArt Styles

Answers

Answer:

I think I am wrong but I assume it is C. Graphic Layout Sorry if I am wrong but if I am not please reward me brainlist.

The answer is B. Smart Art styles because your adding a styles to SmartArt

solve the system of equations and choose the correct ordered pair.

4x+5y=22
2x+3y = 12

Answers

Answer:

(3,2) x = 3, y = 2

Explanation:

During periods when the internet is not slowed by congestion, the number of internet searches is probably close to the socially efficient number. how can we tell this this is true?

Answers

Answer:

We can this is true because the number of internet searches that are being done at that time is just enough to meet the actual capacity of the internet facility.

Explanation: Socially efficient number is that number that is just enough to meet the actual capacity of a given system such as an internet connectivity or internet facility.

When the number of internet searches are just enough not to cause congestion in the search engines or internet facility,it can be said that the socially efficient number has been achieved.

_decisions are more common at lower organizational levels

Answers

Which of the following is not a characteristic of a structured decision?

The first three phases of the decision-making process need not occur in any particular sequence.

Structured

________ decisions are more common at lower organizational levels.

Operational control

_____ is the efficient and effective execution of specific tasks.

unstructured

When there is no well-understood or agreed-on procedure for making a decision, the decision is said to be:

Users didn't have the right tools to access the data.

Refer to the Opening Case - Quality Assurance at Daimler AG: Which of the following best describes Daimler's Quality Information System (QUIS)?

digital dashboards

Which of the following information systems are very user friendly, supported by graphics, and provide exception reporting and drill down?

The number of alternatives is decreasing.

Which of the following is not a reason why managers need IT support?

implementation

Success in the _____ phase of the decision-making process results in resolving the original problem, and failure leads to a return to previous phases.

interpersonal

Being a figurehead and leader is part of the _____ managerial role.

Which of the following are reasons why it is important to write readable code?
Choose all that apply.

Readable code is easier to maintain.

Readable code is easier to modify.

Readable code is fun to write.

Writing readable code saves time in the long run.

Answers

Answer:

Readable code is easier to maintain.

Writing readable code saves time in the long run.

Readable code is easier to modify.

Readable code is fun to write.

Explanation:

Readability of a code means that how easy it is to read the code even if any person other than programmer reads the code. Different techniques like line breaks and indentation are used to make the code readable. the program follows an indentation pattern so it is easy and fun to write.

Hence,

it can be concluded that the true statements are:

Readable code is easier to maintain.

Writing readable code saves time in the long run.

Readable code is easier to modify.

Readable code is fun to write.

Answer:

for short answer it is a,b and D

Explanation:

____________________________ and _________________________ are 2 positive impacts of the internet on businesses.

A)Competition and Easy Marketing


B)Improved Communication and Worrying security


C)Improved Communication and Increased unnecessary competition


D)Improved Communication and Easy Advertisement

Answers

D improved comms and easy ads

Answer:

D)due to it we can have more profit with less time and wide area communication

Assume that you want two C# or C++ programs to share some data. You can write the first program so that it writes it's output to a file, and then write the second program so that it reads the data from this file. However this process can be difficult and time consuming, especially if you don't know how to program in C# or C++. What feature of the UNIX/Linux shell can you use to simplify the process of sharing data between programs?

Answers

Certain ways exist to simplify the process of data sharing between programs.some of these ways are;

A) When there are two programs that are not running at the same time,then the pipes or the sockets won't be able to work as their buffers would not be able to hold large files because they are small.

Looking at this scenerio,shared memory can be used.

The Sysv IPC shared memory API, POSIX shared the memory API or rather files on a tmpfs system of files can actually be used for shared memory operations.

B) Another possible solution can be named file. Instead of using an unnamed and shell pipeline,a name pipeline them uses the file system.

However,it can be treated with the use of mkfifo() or mknod() commands and then two separate programs or also processes can as well access the pipe by making use of the name of the pipe.

But one process(program) can actually open the pipe but as a reader for reading purposes and the other for writing purposes as a writer.

An important communication principle states ""prepare before you communicate."" How should this preparation manifest itself in the early work that you do? What work products might result as a consequence of early preparation?

Answers

Answer:

Planning is very important before communicating a product to others.

Explanation:

We should always prepare well about what we are going to communicate to others. We should know the topic properly or know about the product before we speak about it in front of others. We should understand the concept of the product before we communicate it to others.

Planning is also an important before going to speak or communicate.

Before communicating a product to others, we should prepare :

1. We should very well understand the concept of the product also its scope. The scope will provide product team with the destinations.

2. We should keep in mind to involve the valuable customers in our plannings.They defines the priorities of the product.

3. We should recognize that the planning is highly iterative.

4. We should do a market research or study or the business domain that the product will address.

5. We should understand the different stakeholders and their requirements and be open to negotiations.

It is vital to prepare in every communication as your success  depends on it. One can prepare by researching on the area we want to talk about and practicing one's speech.

Why do we need to prepare in communication?

The success one has in communicating is said to be a skill that is often used in a lot of field of work.

Conclusively, It is vital that a person do  prepare to communicate well when they have been given the opportunity to do so and this involves a lot of research and practice.

Learn more about preparation of manifest  from

https://brainly.com/question/13524298

Define a function pyramid_volume with parameters base_length, base_width, and pyramid_height, that returns the volume of a pyramid with a rectangular base.

Answers

Answer:

Define a function pyramid_volume with parameters base_length, base_width, and pyramid_height, that returns the volume of a pyramid with a rectangular base.

Explanation:

thats all you said

In python 3.8:

def pyramid_volume(base_length, base_width, pyramid_height):

   return round((base_length*base_width*pyramid_height)/3,2)

print(pyramid_volume(1,1,2))

I used the round function to round the volume to 2 decimal places. You can change this if you need more or less precision. I hope this helps!

In the rapid application development (RAD) model, the _____ phase focuses on program and application development tasks similar to the SDLC.A) requirements planningB) user designC) constructionD) cutover

Answers

Answer:

C) construction

Explanation:

Rapid application development abbreviated RAD is an agile software development strategy that reduces time spent on planning so that prototype development takes priority and project turnaround time is greatly reduced consequently. There are four phases in rapid application development :

requirements planning, user design, construction, cutover

The construction phase is the third stage in rapid application development. This stage builds on the progress of the previous stages- the requirements planning stage and user design stage- to go ahead to finalize the application development which has been agreed on through iterations and communication between developer and client in the user design stage. In other words, this stage basically takes the ideas, prototypes and beta products from the previous stages and makes it into a real final product. The rationale or perks behind this is that other problems such as what product would do or look like or any changes or modifications have been worked out in previous stages thereby speeding up development in this stage.

What is the purpose of a poster frame?
to allow the contents of an embed code to be displayed
to insert a downloaded video for offline playback and editing
to create the frame in which a screen recording will be inserted
to capture a portion of a video clip to show as a preview image

Answers

Answer: the last one

Explanation:

Here is the answer::

Which of the following online activities seem appropriate for the workplace? (select all that apply) A.watching a webinar to learn new job skills
B.watching TV online
C. seeking donations to support your election to the Senate
D. reading press releases from your company's competitors
E. sharing career advice with your peers
F. sharing company secrets in a public forum​

Answers

Answer:

A, D, and E

watching a webinar to learn new job skills

reading press releases from your company’s competitors

sharing career advice with your peers

Explanation:

got it right on edge2020

The online activities that seem appropriate for the workplace  is sharing career advice with your peers.

What are virtual activities?

The virtual activities are known to be any kind of online activities that is often done by people to make sure they have good and continued collaboration with other people.

Conclusively, Note that the use of online activities in the workplace should be the one that will help you and your peers to grow such as  sharing career advice with your peers.

Learn more about  online activities  from

https://brainly.com/question/13171394

Range is an example of a ______________.

Answers

Answer:

example in ( 4,6,9,3,7) lowest value is 3and highest is 9.

Which of the following is considered an input device?

Answers

Do you have a picture or list?

Answer:

Keyboard

Mouse

Light pen

Microphone

Touch pad

Write a program (main method) that advises the user on programming language. So if a user for instance enters "Java" the program might say "awesome" or if the user enters "Ruby" it might say "are you sure?" . Make the program comment on at least 5 programming languages.

Answers

import java.util.Scanner;

public class JavaApplication41 {

   

   public static void main(String[] args) {

       Scanner scan = new Scanner(System.in);

       String language = scan.nextLine();

       if (language.toLowerCase().equals("java")){

           System.out.println("Awesome!");

       }

       else if (language.toLowerCase().equals("python")){

           System.out.println("A very simple language!");

       }

       else if (language.toLowerCase().equals("ruby")){

           System.out.println("Are you sure?");

       }

       else if (language.toLowerCase().equals("javascript")){

           System.out.println("Easy enough");

       }

       else if (language.toLowerCase().equals("c")){

           System.out.println("Cool!");

       }

   }

   

}

I hope this helps!

Given main(), complete the Car class (in file Car.java) with methods to set and get the purchase price of a car (setPurchasePrice(), getPurchasePrice()), and to output the car's information (printInfo()).
Ex: If the input is:_______.
2011
18000
2018

Answers

Answer:

Explanation:

This a java code for a car and can be written as follows:

public class Car {

   private int modelYear;

   private int purchasePrice;

   private int currentValue;

   public int getModelYear() {

       return modelYear;

   }

   public void setModelYear(int modelYear) {

       this.modelYear = modelYear;

   }

   public int getPurchasePrice() {

       return purchasePrice;

   }

   public void setPurchasePrice(int purchasePrice) {

       this.purchasePrice = purchasePrice;

   }

   public int getCurrentValue() {

       return currentValue;

   }

   public void calcCurrentValue(int year) {

       int age = year - modelYear;

       currentValue = (int) Math.round(purchasePrice * Math.pow(0.85, age));

   }

   public void printInfo() {

       System.out.println("Car's information:");

       System.out.println("   Model year: " + modelYear);

       System.out.println("   Purchase price: " + purchasePrice);

       System.out.println("   Current value: " + currentValue);

   }

}

Can someone help me to write a python code to save list form python to CSV file please?​

Answers

f = open("MyFileName.csv", "w")

lst = ["Hello", "Hi", "Bye"]

f.write(str(lst))

f.close()

I didn't necessarily know what you meant by list form. This program works for me in pycharm. I had to install the CSV plugin though. If you encounter any errors, I'll try my best to help you.

Before radio, many minority musicians were severely limited by the prejudice of the era. true o rfalse

Answers

Answer:

True

Explanation:

Minoritys have always faced prejudice

Why would a programmer use a flow chart? (Edge2020 Coding Critical Thinking Questions)

Answers

Answer:

As a visual representation of data flow, flowcharts are useful in writing a program or algorithm and explaining it to others or collaborating with them on it. You can use a flowchart to spell out the logic behind a program before ever starting to code the automated process.

Explanation:

Answer: I answered yo can give the other guy brainliest yw

Explanation:

Other Questions
pls help!!!!! will give brainly!!!how to say: My furniture store is in Argentina. the correct form of the verb estar When x = 3, y = 4. What is y when x = 12?Group of answer choicesA)3B)4C)12D)16 Patrick Henry opposed ratifying the U.S. Constitution because he believed that under it:a. The states would surrender too much power to the federal governmentb. Alliances could not be formed with other countriesc. The courts would not be able to hold government officials accountabled. Individuals would exercise too much power over the federal government I need Help with this Question Plzz!!! Odd One OutCircle the instrument name whichdoes not belong to the same family as the others1)TrumpetFrench homPiccoloTuba2)TimpaniCelloDouble bassViola3)OboeCastanetsBassoonFlute4)Snare drumCymbalsXylophoneCor anglais5)TromboneTriangleTubeFrench hornSaxophoneViolinHarp6)Double bass7)BassoonClannetTimpanOboe8)Bass drumGongClavesBass clannerCelloTenor hom9)TubaEuphoniumViolaMandolin10)GuitarAccordionLo How many distinct rearrangements of the letters in "tweedledee" are there? Which one of the following is the final stage in presenting your information?A. Gathering informationB. Evaluating informationC. Connecting informationD. Integrating information PLEASE HELP ME FILL OUT 40 POINTS5.01 World War AgainI have provided a base outline for notes on this lesson. You should be adding information where it is asked for and anywhere else you think it is important. Be sure to put information in your own words and write the information so that you will remember it. You should read ALL of the information in a lessonWW2 BeginningsWW1- the end of the war brought economic issues and made life hard on the GermansDictators- are totalitarians- they rule the entire societyGermany- Hitler come to power- had to pay large amounts of money to the winning countries of WW1, left the Germans angry, Hitler blamed the Jews for the issues of the Germans, came to power through the Nazi party, re-built Germany and put people back to work,Italy- Mussolini-extreme nationalism and strong militaryAppeasement- Great Britain and France allowed Germany to break the Treaty of Versailles several times and hoped that Germany would stopBuilt up armyTook over Sudetenland in CzechoslovakiaUS isolationism- refers to when a country tries to stay out of issues between other countries1st neutrality acts- 1935-1936- the US could not lend money or sell military supplies to any nations at war2nd neutrality acts- 1937- US could not take people or any goods to countries that were at war but if the country wanted to pay cash for and come get the goods in the US and take them back they could (cash and carry policy)3rd neutrality act-1939- allows the US to sell military supplies to countries at warTests of IsolationJapan invaded China and were taking their resources (we were allies with them)President Roosevelt was able to help them through the cash and carry policyGermany invades Poland- GB and France declare warThe US passes the 3rd neutrality act which allows us to help GBPage 3- you try to fill in the blanks based off of what you readPresident RooseveltWanted to ____________isolationism and favored___________________Got Congress to pass the Lend-Lease Act- countries were allowed _______________________for our military supplies- this would go to any country the government wanted to helpWould help those countries who held US interests Subtract 7 from all and tell which is the most accurate measurement. what would happen if theattractive forces between all of the particlesof matter on Earth were equal? Hiker's Elevation 3,000 Hiking The scatter plot shows a hiker's elevation above sea level during a hike from the base to the top of a mountain. The equation of a trend line for the hiker's elevation is y=9.84x + 651, where x represents the number of minutes and y represents the hiker's elevation in feet. Use the equation of the trend line to estimate the hiker's elevation after 140 minutes. why was thomas jefferson the wrong person for a black civil rights activist to protest too? Let A represent reading newspaper and represent watching televisionWhich statement is true?Watching television and and reading newspaper are independent events because P(AB) + P(A) andPBAP(B)Watching television and reading newspaper are not independent events because P(AB)=P(A) andP(BA) - P(B)Watching television and reading newspaper are independent events because P(AB) = P(A) and P(BA) = P(B).Watching television and reading newspaper are not independent events because P(AB) + P(A) andP(BA) = P(B)Lo 4x+15-3x+10= help me please Analyze continuities and changes in the beliefs and practices of ONE of the religions listed below from its beginnings to 1450.BuddhismChristianityIslam 3. What health resources are available at your school? List at least three. a)b)c)4. In what circumstances would you use each resource at your school? a)b)c) Nitrogen gas at 300 k and 200 kpa is throttled adiabatically to a pressure of 100 kpa if the change in kinetic energy is negligble the temperature of the nitrogen after throttling will be:_________ Kim hired Gold Contracting to build a pool and a fancy gazebo in her backyard. The plans were complex and required expert workmanship. After the work was completed, Kim was so pleased that she promised to pay Gold an additional $3,500 performance bonus. Later, when Gold demanded the bonus, Kim refused to pay it. If Gold sues Kim for the money, what will probably happen?A. Gold will win, because the bonus was adequate consideration and served to entice Gold to do an outstanding job.B. Kim will win, because the bonus is a reward for work they have already performed, which is past consideration and cannot be used to create a contract.C. Gold will win, because the bonus is for work they have already performed.D. Kim will win, because the bonus agreement was not in writing. A water molecule is attracted to another water molecule. This is an example of Question is attached PLS HELP!