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
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:
# 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))
(Brainliest!!)
How do i get rid of a headache?
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
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
Answer: True
Explanation: Developers who design always take on idea that was created and add to it. Creating a piece of artwork/ Item.
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
Answer:
False
Explanation:
I did it on edgnuity also i got it right
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
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
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
Hello. I really need this done ASAP. Don't scroll down. JUst look please.
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:
Guys i keep trying to get in touch with brainly but it says "your request could not be submitted" Can someone please help me ?