Can you please make a simple python program? I will give you 20 points and branliest if it is good! It must include:
·At least 3 variables
·Contain a new function
·And must have at least 10 lines of code

Answers

Answer 1

Answer:

# Solve the quadratic equation ax**2 + bx + c = 0

# import complex math module

import cmath

a = 1

b = 5

c = 6

# calculate the discriminant

d = (b**2) - (4*a*c)

# find two solutions

sol1 = (-b-cmath.sqrt(d))/(2*a)

sol2 = (-b+cmath.sqrt(d))/(2*a)

print('The solution are {0} and {1}'.format(sol1,sol2))

Hope This Helps!!!

Answer 2

Answer:

# Newton's Law of Universal Gravitation

import math

print("This program will calculate the gravitational force between two objects")

# Gravitational Constant

G = 6.67408

while True:

   try:

       m1 = float(input("\nInput mass of first object (in kilograms): "))

       break

   except ValueError:

       print("Invalid input!")

while True:

   try:

       m2 = float(input("Input mass of second object (in kilograms): "))

       break

   except ValueError:

       print("Invalid input!")

while True:

   try:

       d = float(input("Distance between the objects (in meters): "))

       break

   except ValueError:

       print("Invalid input!")

force = G * (m1 * m2) / math.pow(d, 2)

print("The gravitational force between these two objects is {0} newtons!".format(force))


Related Questions

If you don’t want to have when green flag clicked start every one of your scripts, what block can you use instead?
run all
begin
broadcast
initialize

Answers

Answer:

broadcast

Explanation

this sounds like you are using scratch or a similar drag and drop block-based coding system so I'll just go off of that. The broadcast block is used to send out a command to other blocks. for example you could be coding a dancing animation and program a character to send out the "dance" command to all other sprites that dance. Of course, you will need the "When I receive" event block and then program a sequence of events connected to that event block so that when the sprite receives the "dance" broadcast it will execute the sequence for when it receives that broadcast. Hope this helps feel free to ask any other questions in the comments section as i will gladly answer them to the best of my abilities.

the ans is run all because yeah it is the answer

To track what level a player is on, you can create a simple variable and a block saying change level by 1 attached to the when green flag clicked.
True
False

Answers

Answer:

False

Explanation:

I did it on edgnuity also i got it right

False cause that’s not the thing to how to track a player

It wouldn't let me say it so I'm screenshotting it.

Answers

yes it happend to me if you go on my questions

It is a Trojan horse. Most people don’t understand that but basically what it wants you to think is that it will gather information off you. But in fact unless your a very public figure the site will use your computer for the virus. Most people do this so if the authorities try to find them, it will lead them to you. This is just a local scam so nothing like this will happen, but this is still no reason to click on it.

YASHARI earns $27,000 per year, is single, and lives in Wyoming. She has $7000 in Direct Subsidized loans and another $19,000 in Direct Unsubsidized loans. She is trying to save up an emergency fund of at least 6 months’ take-home pay, so she’s torn about how much she should devote to her student loans and how much to the emergency fund every month.
How do you think Yashari should prioritize between her emergency fund goal and her student loan payments?

Answers

Answer:

Income-Contingent Repayment (approximately $37,812), 21 years

Explanation:

With a monthly payment limit of 20% of her discretionary income and no loan forgiveness eligibility, Yashari would pay $147-142 per month, $37,812 total, until December 2043 (21 years from 2022).

He gets 37,812 per year! I hope this helps out a bit

Can somebody please help me with these few questions?

Jamal's computer is able to connect to the Wi-Fi signal, but there is no Internet access. Which device do you think might be causing the problem and why?

Felicia's Wi-Fi connection to her phone is extremely slow. However, her computer that is wired directly to the modem works really well. Which device do you think might be causing the problem and why?

Credence would like to set up a wireless, DSL network for his home. He would like to keep his landline working while he is online as well. Explain how he should go about setting up this network. Include all of the devices and cables that he will need.


Thank you so so much!!!!!!

Answers

he should get a new provider cause his current internet provider sucks

1. His Ethernet or whatever your class calls the device that the router connects to. He can connect to the router, but the router can’t connect to the internet.
2. Her router. Her phone is having trouble since the router is slow, but the computer is on the Ethernet, and completely bypassed the router, and is working fine.
3. I don’t know, sorry :(

a)​What would be the state of the following list after each of the first four passes in a Bubble sort, sorting into ascending sequence?​
​65, 34, 28, 68, 52, 21

Answers

21,28,34,52,65,68 Really simple good luck on what your doing
21,28,34,52,68,97,89

tasks on a checklist should be written in as general terms as possible so that developers and artists have enough creative freedom to create interesting products.

O true
O false

Answers

Answer:  True

Explanation: Developers who design always take on idea that was created and add to it. Creating a piece of artwork/ Item.

true is the answer of the queen

write a script for a difficult talk with your boss. Write down what you would say to share the facts or to tell your story. Don’t forget to write down how you would ask for your boss’s viewpoint or input.

Answers

Answer:

1st. Im sorry but i think I sincerely don't get viewed

Explanation:

(Brainliest!!)

How do i get rid of a headache?

Answers

ibuprofen

Explanation:

Ibuprofen is used to help relieve mild to moderate pain. When used with an opioid (such as morphine), it may be used to relieve moderate to severe pain. It is also used to reduce fever.

May Treat: Dysmenorrhea · Fever · Headache disorder · Juvenile idiopathic arthritis · Osteoarthritis and more

Brand Names: Caldolor · Advil · Advil Liqui-Gel · Children's Ibuprofen · IBU-200 and more

Drug Class: NSAID Analgesics (COX Non-Specific) - Propionic Acid Derivatives

Availability: Prescription sometimes needed

Pregnancy: Do not use. This medication may be harmful to an unborn child.

yeah g

Take ibuprofen, try to get rest and relax.

Guys i keep trying to get in touch with brainly but it says "your request could not be submitted" Can someone please help me ?

Answers

Sure what is your question? It also happened to me too
What grade are you in
Did u go to their online website??

Hello. I really need this done ASAP. Don't scroll down. JUst look please.

Answers

Answer:

part 1

The four factors judges consider are:

the purpose and character of your use

the nature of the copyrighted work

the amount and substantiality of the portion taken, and

the effect of the use upon the potential market.

Part 2

the author toils without copying from someone else

the work must be original

Explanation:

Copyright law gives these protections to all kinds of creative work, so long as it is:

1. Has a copy right registration
Other Questions
Find the mass of an object that has a weight of 910kg should the United States dropping atomic bombs on japan? how many joules are there in 200kj A group of friends go out for a meal and the meal costs 148.They are given a discount of 25% because of a mix-up on their orders.How much discount did the group of friends receive? Type the correct answer in the box. assume = 3.14. and round your answer to the nearest hundredth. at the rate of $2.00 per square foot, the cost of painting the rectangular board with a semicircular top shown in the figure is $ . What is m _BAC?A) 40B) 60C) 70D) 80 What is the measure of Zx?Angles are not necessarily drawn to scale. Writing PromptYou have just read two passages about students who developed science research projects. Write an informational essay that explains the various reasons that students participated in science research.Manage your time carefully so you canplan your essay and do some prewriting using your scratch paper. write your essay Be sure to:use evidence from both passages.avoid over-relying on one passageYour written response should be in the form of a multi-paragraph informational essay what is (5.03x -8.03) - (3.5x +6.2)? State two features which are only found in dicotyledonous plant What is aristotles gesture in school of athens, and what is meant by it? a. he motions towards earth, signifying that everything can be understood from gathering scientific knowledge from the material earth. b. he points to the other beings, signifying that everything comes from interaction among beings. c. he points up to heaven, signifying that everything is a reflection of forms that reside in heaven. Two number cubes are rolled what is the probability that both cubes land on 1 How did the Book of the dead work in Egypt? Fossil evidence indicates that some dinosaurs had feathers. If birds are indeed descended from dinosaurs, feathers are what kind of character?. 3. What made Queen Consort Nefertari such a prevailing force during the rule of herhusband Rameses Il? Name and describe at least four of these qualities in yourresponse. The water level at a lake is normally O feet abovesea level. During a flood, the level rose 7 feet. Overthe next two weeks the level had gone down by12 feet.a. Write an expression to represent this situation.b. What level is the water currently at? Each of 7 students reported the number of movies they saw in the past year. This is what they reported.13, 8, 6, 6, 18, 11, 4Find the median and mean number of movies that the students saw.If necessary, round your answers to the nearest tenth.(a) Median: (b) Mean: Indicate the method you would use to prove the two 's . If no method applies, enter "none". Protest is roof prefix or suffix online note taking is weird please help