Code in Python:
num = float(input("Enter any number : "))
ab = abs(num)
sqrt = float(ab ** 0.5)
print(sqrt)
The code to input a number and print the square root is,
import math
# Input a number from the user
number = float(input("Enter a number: "))
# Use the absolute value function to handle negative numbers
abs_number = abs(number)
# Calculate the square root using the math module
sqrt_number = math.sqrt(abs_number)
# Print the square root
print(f"The square root of {number} is {sqrt_number}")
Given that,
Write the code to input a number and print the square root.
Now, A code snippet in Python that accomplishes what you described:
import math
# Input a number from the user
number = float(input("Enter a number: "))
# Use the absolute value function to handle negative numbers
abs_number = abs(number)
# Calculate the square root using the math module
sqrt_number = math.sqrt(abs_number)
# Print the square root
print(f"The square root of {number} is {sqrt_number}")
In this code, the abs() function ensures that even if the user enters a negative number, it will be converted to its positive equivalent before calculating the square root.
The math.sqrt() function is used to compute the square root, and the result is printed using the print() function.
To learn more about Function visit:
https://brainly.com/question/11624077
#SPJ6
_______are a set of track sectors, ranging from 2 to 32 or more, depending on the formatting scheme in use.
a.
Cylinders
b.
Track sectors
c.
Tracks
d.
Cluste
Answer:
Clusters
if thats incorrect than Cylinders
Write a python program to input money in Bahrain dinar and find out number of denominations can be used to make that money.
For example: -
Enter total money in BD: 76
Then the output Should be :
No.of 20 BD : 3
No.of 10 BD : 1
No.of 5 BD : 1
No.of 1 BD : 1
Pls answer fast
n = int(input("Enter total money in BD: "))
n20 = n//20
n10 = (n-(n20*20))//10
n5 = (n - ((n20*20)+(n10*10)))//5
n1 = (n - ((n20*20)+(n10*10) + (n5*5)))//1
print("No. of 20 BD: "+str(n20))
print("No. of 10 BD: "+str(n10))
print("No. of 5 BD: "+str(n5))
print("No. of 1 BD: "+str(n1))
Answer: There are various ways to earn money online in Bangladesh. Here are some options you can explore:
Freelancing: Freelancing is one of the most popular ways to earn money online in Bangladesh. You can offer your skills and services on various freelance platforms such as Upwork, Fiverr, and Freelancer. You can offer services such as content writing, graphic designing, web development, data entry, and more.
Affiliate marketing: You can earn money by promoting products and services through affiliate marketing. You can join affiliate programs of various companies such as Amazon, Clickbank, and ShareASale and earn commission on the sales made through your unique affiliate link.
pls help quick
Question #4. This question is worth 55 points. You may use the exam reference sheet. Write the pseudocode for a procedure, pow2() that displays the nth power of 2 where n is a parameter passed into the procedure. PROCEDURE pow2 ) { }
Answer:
The procedure is completed as follows:
PROCEDURE pow2(n){
count = 1
power = 1
WHILE count <= n
power = power * 2
count = count + 1
END WHILE
Print power
}
Explanation:
A pseudocode is not a real code and might not be syntactically correct. This is so because it only helps to understand what the code is all about and gives and insight of the code.
Having said that, the pseudocode for the program is as follows:
This line defines the procedure
PROCEDURE pow2(n){
This line initializes count to 1
count = 1
This line initializes power to 1
power = 1
The following iteration iterates from 1 to n
WHILE count <= n
This calculates the nth power of 2
power = power * 2
count = count + 1
The ends the while loop
END WHILE
This prints the calculated power
Print power
The procedure ends here
}
Note that: I'll assume that the 4 lines illustrated do not mean that the pseudocode be written in just 4 lines.
So, more lines would be needed
why are media conductors needed in computer network?
Answer:
Transmission media connectors attach directly to the medium itself and serve as the physical interface between cabling and network nodes.
Explanation:
Answer:
masamstha 31 is correct hope it's help you have a good day
For this assignment, you will create a calendar program that allows the user
to enter a day, month, and year in three separate variables as shown below.
Day:
Month:
Year:
Then, your program should ask the user to select from a menu of choices
using this formatting
Menu:
1) Calculate the number of days in the given month.
2) calculate the number of days left in the given year.
I would really appreciate it if someone could help me on this.
Following are the program to the given question:
Program Explanation:
Defining three methods "leap_year, number_of_days, and days_left " is declared. In the "leap_year" method, it accepts the year variable, which calculates the year is the leap year and returns its value that is 1. In the next method "number_of_days", it is define which accepts the "year and month" variable in the parameter and calculate and returns its value. In the last "days_left" method, it calculates the left days and returns its value, and outside the method, two dictionary variable days_31 and days_30 is declared. It initilized a value by using 3 input variable "day, month, and year" variable which accepts user-input value. In the next step, a "c" variable is declared, that input values and calls and print its value accordingly.Program:
def leap_year(y):#defining a method leap_year that takes one parameter
l= 0#defining l variable that holds an integer
if y % 4 == 0:#using if block that check year value module by 4 equal to 0
l = 1#holding value in l variable
if y % 100 == 0:#using if block that check year value module by 100 equal to 0
l = 0#holding value in l variable
if y % 400 == 0:#using if block that check year value module by 400 equal to 0
l= 1#holding value in l variable
return l#return l value
def number_of_days(m, y):#defining a method number_of_days that takes two parameters
months = {1: 31, 3: 31, 4: 30, 5: 31, 6: 30, 7: 31, 8: 31, 9: 30, 10: 31, 11: 30, 12: 31}#defining months variable that hold value in ictionary
l = leap_year(y)#defining l variable that calls leap_year method and holds its value
if l == 1 and m == 2:#use if that check l value equal to 1 and 2
return 29#return value 29
if m == 2:#use if that check month value equal to 2
return 28#return value 29
return months[m]#return months value
def days_left(d, m, y):#defining a method days_left that takes three variable in parameter
l = leap_year(y)#defining l variable that hold leap_year method value
days = 0#defining days variable that hold integer value
months = {1: 31, 3: 31, 4: 30, 5: 31, 6: 30, 7: 31, 8: 31, 9: 30, 10: 31, 11: 30, 12: 31}#defining months variable that hold value in ictionary
if l== 1:#using if that check l equal to 1
if m > 2:#defining if that check m value greater than 2
days += (29 + 31)#using days variable that Calculate holds its value
i = m#defining i variable that holds months value
while i > 2:#defining while loop that checks other days
days += months[i]#defining a days variable that holds months value
i -= 1#decreasing i value
days -= (months[m] - d)#defining days that subtracts leap value
elif m == 2:#defining elif block that checks m equal to 2
days += (29 - d) + 31#holding value in days variable
else:#defining else block
days = 31 - d#Calculating days value
return 366 - days#using return keyword that Calculates days value
else:#defining else block
if m > 2:#using if that checks m value greater than 2
days += (28 + 31)#Calculating and store value in days
i = m#holding months value in i
while i > 2:#defining while loop that checks i value greater than 2
days += months[i]#holding list value in days
i -= 1#decreasing i value
days -= (months[m] - d)#defining days that subtracts leap value
elif m == 2:#using elif block that checks m value equal to 2
days += (28 - d) + 31#Calculating and store value in days
else:#defining else block
days = 31 - d##Calculating and store value in days
return 365 - days#return total days
print("Please enter a date")#print message
day = int(input("Day: "))#input value
month = int(input("Month: "))#input value
year = int(input("Year: "))#input value
print("Menu: ")#print message
print("1) Calculate the number of days in the given month.")#print message
print("2) Calculate the number of days left in the given year.")#print message
c = int(input())#input value
if c == 1:#using if that checks c value equal to 1
print(number_of_days(month, year))#calling method and print its return value
elif c == 2:#using if that checks c value equal to 2
print(days_left(day, month, year))#calling method and print its return value
Output:
Please find the attached file.
Learn more:
brainly.com/question/16728668
A ______ is a portable device for recording audio and video.
a. recorder
b. video
c. television
d. camcorder
Answer:
D
Explanation:
A camcorder is a portable device for recording audio and video. Thus, option D is correct.
What is video?A video is a recording of a motion, or television program for playing through a television. A camcorder is a device or gadget that is used to record a video. audio is the sounds that we hear and mix media is a tool used to edit the video.
Digital camcorders are known to have a better resolution. The recorded video in this type of camcorder can be reproduced, unlike using an analog which losing image or audio quality can happen when making a copy. Despite the differences between digital and analog camcorders, both are portable, and are used for capturing and recording videos.
A camcorder is a self-contained portable electronic device with video and recording as its primary function. A camcorder is specially equipped with an articulating screen mounted on the left side, a belt to facilitate holding on the right side, hot-swappable battery facing towards the user, hot-swappable recording media, and an internally contained quiet optical zoom lens.
Therefore, A camcorder is a portable device for recording audio and video. Thus, option D is correct.
Learn more about recording audio on:
https://brainly.com/question/27861365
#SPJ5
Which of the following is true about overloaded methods?
Answer:
Overloaded must have the same name but different parameter lists.
Explanation:
Given that in certain programming languages such as Java, the overload method is a means by which a specific word or symbol has more than one meaning or function, that Is, different parameters or executions but have the same name.
Hence, in this case, what is true about overloaded methods is that "Overloaded must have the same name but different parameter lists."
Can you guys list all the Linux Debian Apps that can only be installed on a Linux terminal command line, I have a deb 32 bit
Answer:
Two of those are apt and apt get and the other one is dpkg. 4. You will see a list of Debian Ensure package lists and installed packages are up to date. ... Apt may fail to remove old Linux kernels when using an Ubuntu version that 39 s ... To install it just enter the following command from the Terminal sudo apt install apt ...
Explanation:
what is the importance of planning before you start your vegetable farm business?
Answer with Explanation:
"Planning" plays a crucial role before starting any business. If you've decided to start a vegetable farm business, then you better plan ahead.
Vegetables are "perishable," which means it is easy for them to get spoiled. Thus, you have to consider many things such as: what kind of crops to sell, where to sell them, what season you're going to sell them and how much you are going to sell them.
Choosing the kind of crop depends on whether you'll be requiring intensive labor or not. Although the former means more profit, it will require more capital. Knowing your target market is essential. For example, if your target are health-conscious people, then you have to go for organic vegetables. Determining the season to sell the vegetables will allow you to price them accordingly. Lastly, you have to know how much you're going to sell your vegetables in order for you to have an idea of the profit you're going to make. This will also allow you to budget your money.
What will you see on the next line?
>>> int(13.6)
Answer:
[tex]\huge\boxed{\texttt{13}}[/tex]
Explanation:
If we input [tex]\texttt{int(13.6)}[/tex] into bash (say python3), we will return with 13.
Why?The [tex]\texttt{int()}[/tex] function of python basically stands for integer. It will convert whatever is inside the parentheses to an integer. This works with strings as well, and can be useful for turning strings into numbers readable by a program.
An integer is any real whole number (like -2048, 0, or 6, etc.) However, Python does not round the number based on whether it's closest to one value or not. Python always rounds down, basically what it does is takes away the decimal from the number.
If you would like to round to up, however, you might have a program that does this.
[tex]\texttt{import math}[/tex]
[tex]\texttt{int(math.ceil(5.7))}[/tex]
Hope this helped!
What are the pros and cons for E-trade?
Answer:
Pros Cons
• Free stock and ETF trading • Higher fees for non-free mutual funds
• Some mutual funds and bonds are free
• Low non-trading fees
Answer:
Pros-Quick, easy purchases, ability to know what's available, access to limitless products.
Cons-Potential to get hacked, get scammed by false advertising, amount of time to receive product
Explanation:
Its not a great list but I really hope this helps
write some positive and negative impacts of computer in our daily life
If it is 12 am on January 7 in Reykjavík, Iceland (location B), what date and time is it in Galápago Islands,
Ecuador (location E)?
Answer:
Since the time zone of the Galapagos Islands is UTC -06: 00, while the time zone of Iceland (including its capital, Reykjavik) is UTC 00:00, the time difference between both territories is 6 hours behind in the Islands Galapagos with respect to Iceland.
Thus, since 12:00 AM implies 00:00 hours or the beginning of the day, if it were 12:00 AM on January 7 in Reykjavik, it would be 06:00 PM on January 6 in the Galapagos Islands.
okay all the people that make other people cry leave me alone got it good
Answer:
YESSS
Explanation:
So many people have made me cry!!
Which careers require completion of secondary education, but little to no postsecondary education? Mathematical Technicians and Mechanical Engineers Sociologists and Electronics Engineering Technicians Food Science Technicians and Zoologists Nondestructive Testing Specialists and Surveying Technicians
Answer:
Nondestructive Testing Specialists and Surveying Technicians
Explanation:
A nondestructive testing specialist and surveying technician refers to an individual who is saddled with the responsibility of providing services such as the inspection of structures (aeroplane, dam, trains, reactors, bridges), machines or equipments, and raw materials in order to check for problems or any defective part.
Hence, Nondestructive Testing Specialists and Surveying Technicians is a career that requires the completion of secondary education, but little to no postsecondary education because they use equipments mainly to find detects and gather details about any problem.
Answer:
D is correct on test review
PLEASE HELP ME!!! I REALLY NEED YOU TO HELP ME NOW!!!! THANKS!
PLEASE ANSWER CORRECTLY!!!!!!!!!!!!! DONT ANSWER FOR THE POINTS!!!
In this project, you will plan and write a program to solve a math algorithm. You will identify possible errors and handle them in your program. Choosing Your Math Algorithm Think of a math question that takes several steps to solve. It should not be a math question already programmed in the unit. The question should require input from the user, process the information, and display the results. You can choose your own algorithm. It does not need to be one of these. Find the surface area of a cylinder. Find the surface area of a pyramid. Find the hypotenuse of a right triangle. Your Task Write a pseudocode plan for your program. Write the code for your program. Test your program. Run it at least three times with different inputs. Save your program as a .txt file for you cannot upload a .py file. Evaluate your project using this rubric. What to Submit Submit the .txt file holding your program.
Answer:
Surface of a Cylinder Code:
#import math package to use math.pi for the value of PI
import math
#take radius of the base of a cylinder from user
r=float(input("Enter r of a cylinder"))
#take height of the curve surface of a cylinder from user
h=float(input("Enter the Height of a cylinder"))
#calculate the surface area of cylinder
s_area=2*math.pi*pow(r,2)*h
#calculate the volume of cylinder
volume=math.pi*pow(r,2)*h
print("surface area of a cylinder wll be %.2f" %s_area)
print("volume of a cylinder will be %.2f" %volume)
Quadratic Equation Code:
import math
a = int(input("Enter the coefficients of a: "))
b = int(input("Enter the coefficients of b: "))
c = int(input("Enter the coefficients of c: "))
d = b**2-4*a*c # discriminant
if d < 0:
print ("This equation has no real solution")
elif d == 0:
x = (-b+math.sqrt(b**2-4*a*c))/2*a
print ("This equation has one solutions: "), x
else:
x1 = (-b+math.sqrt((b**2)-(4*(a*c))))/(2*a)
x2 = (-b-math.sqrt((b**2)-(4*(a*c))))/(2*a)
print ("This equation has two solutions: ", x1, " or", x2)
A typical day in programming and software development would involve
Answer:
software development would involve
Explanation:
Sean works for a company that ships hospital equipment. He needs to calculate the weight of the items being shipped. He enters the number of items in cell A1. The weight of each item is 180 pounds, so Sean enters 180 in cell A2. The weight of the packaging for each item also needs to be included. This weighs 10 pounds for each item, so he enters 10 in cell A3. Which formula should Eric use to calculate the total weight?
Answer:
= A1 * (A2 + A3)
Explanation:
In order to calculate the total weight of the equipment, he would need to first add the total weight of each item. This is done by adding the weight of the item by the weight of the packaging. Once you have this amount you can multiply this value by the total number of items being shipped and that should give you the total weight of the shipment. Using the cells, this can be calculated with the following formula in Excel...
= A1 * (A2 + A3)
Which view would you need to use to make changes to the design theme for the entire presentation?
Answer:
slide master
Explanation:
the answer on edge2020
4.9 Code Practice: Question 2
Instructions
Write code using the range function to add up the series 20, 30, 40, ... 90 and print the resulting sum each step along the way.
Expected Output
20
50
90
140
200
270
350
440
total = 0
for x in range(20,91,10):
total += x
print(total)
I hope this helps!
Answer:
sum = 0
for i in range (20, 91, 10):
sum += i
print(sum)
Federico is using diagrams in a PowerPoint presentation for his science project. He needs to draw four different circles on one slide. Although the circles should be different sizes, none of them should be stretched like an oval. They must be perfectly round circles.
Which sequence of buttons and keys should Federico press to draw a perfectly round circle?
A. click Design tab → click Shapes in the Drawing group → press and hold Shift → select Oval while holding Shift → left-click on the slide and drag the mouse while still holding Shift
B. click Home tab → click Shapes in the Drawing group → select Oval → press and hold Shift → left-click on the slide and drag the mouse while holding Shift
C. click Design tab → click Shapes in the Drawing group → select Oval → press and hold Shift → right-click on the slide and drag the mouse while holding Shift
D. click Home tab → press and hold Shift → click Shapes in the Drawing group → select Oval while holding Shift → right-click on the slide and drag the mouse while still holding Shift
Answer:
b
Explanation:
click Home tab → click Shapes in the Drawing group → select Oval → press and hold Shift → left-click on the slide and drag the mouse while holding Shift.
What is Powerpoint Presentation?A complete presentation graphics suite is PowerPoint. It provides you with everything required to create a presentation that looks polished. Word editing, outlining, sketching, graphing, and presentation management tools are all available in PowerPoint, all of which are simple to use and pick up.
The slides that make up a PowerPoint presentation are what the presentation is built of. The PowerPoint slides you produce can also be shown as overhead transparencies or 35mm slides.
You can print audience handouts, outlines, and speaker's notes in addition to the slides. The robust Slide Master, which will be discussed in the tutorial, can format any slide in a presentation.
Therefore, click Home tab → click Shapes in the Drawing group → select Oval → press and hold Shift → left-click on the slide and drag the mouse while holding Shift.
To learn more about Powerpoint presentation, refer to the link:
https://brainly.com/question/22438059
#SPJ2
What are elements ?Give any five example
Technical environment refers to all the technological surroundings that influence organization. Technology consists of skills,methods,systems and equipment. It includes and innovations. It makes work more efficient. It is a means to transfer input into outputs.
Technology influences organizations by bringing about changes in jobs, skills, lifestyles, production methods and processes. Automation, computerization, robotics, informatics, biotechnology, laser, new materials and artificial intelligence have all influenced organizations.Information technology affects every function of within the organization.Organizations should be aware of technological changes tot avoid obsolescence and promote innovation.
Technological forecasting is also important.Technology reaches people through organization. It is a powerful force that shapes their destiny.
1)Level of technology: The level of technology can be appropriate or sophisticated. It can be labour-based or capital-based.The level of technology influence organizations.
Labour based technology: Human labour is mainly used for operations.
Capital based technology: Machinery is mainly used for operations. Technology is represented by automation, computerization, robotizing, etc.
2)Pace of technological change: Technology is a dynamic force. Its speed of change is accelerating. Invention, innovation and diffusion increase its pace. Organizations should adapt to changing technological forces. They should also upgrade the skills of their human resources to effectively cope with the demands of technological changes.
Technological change influences organizations in the following :
It can make existing industries obsolete.It can the rates of obsolescence.
It can rejuvenate the existing industries through product improvements or cost reductions.
It can create entirely new industries.
It can increase government regulations.
3)Technological transfer: Sources of technology can be within the organization, within the country or foreign countries. Technology transfer implies technology import for organizations.
Technological transfer implies technology imported from technologically advanced foreign countries. Its speed is important for organizations.
Globalization: Global companies are the key sources of technology transfer in developing nations.
Projects: Turnkey projects based on global bidding serve as a source of technology transfer.
Trade: This consists of the sale of equipment or machines by the manufacturer.
Technical assistance: Bilateral and multilateral donors under technical assistance provide international consultants who bring new technology with them.
Training and publication: They provide opportunities to about new technology.
Technological transfer influences organization by :
Increasing and decreasing costs.
New product development and product improvement.
Improving production systems and processes.
Better satisfaction of customer needs.
4)Research and development: R&D is the essence of innovation. The Expectation for improvement is increasing. Customers expect new products of superior quality which are safe, comfortable and environment friendly. This calls for increase research and development budget by organizations. Government and industry collaboration and spending in R&d efforts is also an important aspect of the technology environment.
I hope this helped!
Analyze the map below and answer the question that follows. A topographic map of Northwestern Russia. Areas on the map are circled and labeled 1, 2, 3, and 4. 1 is a mountain range. 2 is a flat area. 3 is a highland area. 4 is a plateau. Image by Natural Earth The region labeled with the number 1 on the map above is the __________.
Answer:region 1
Explanation:
Answer:
region 1
Explanation:
correct on edg 2020
Joann wants to save the building block she created for the title of her company.
In which file does she save this building block?
Answer:
Building Blocks.dotx
Explanation:
Just did it on Edge2020
In which area of the screen can features and functions of Word be accessed?
Command
Ribbon
Scroll bar
Tab
Please Hurry!!!
Answer:
Toolbar
Explanation:
j don't know if you meant that instead of scroll bar, but tool bar is the answer
Answer:
scroll bar
Explanation:
CORRECT ANSWER GETS BRAINLIEST!!!
Which area of engineering focuses on the study of materials, products, and structures that may cause injury or damage?
forensic engineering
mechanical engineering
biomedical engineering
materials engineering
Answer:
Forensic engineering
Explanation:
Forensic engineering matches the definition of "a area of engineering that focuses on the study of materials, products, and structures that may cause injury or damage"
3. Shirky describes that the Internet gives us a many-to-many pattern when it comes to networks. How might this be beneficial or detrimental to journalists needing to decide between personal and observational sources?
Answer:
Find the explanation below.
Explanation:
Many-to-many pattern provided by the internet refers to the ability of the internet to spread information among a wide audience who can access the message at the same time. This feature of the internet would prove beneficial to the journalist in making his choice because;
1. He would then have to resort to the observational sources which also has some advantages which include the following;
a. It is less time-consuming as he can obtain the opinions of people on different subjects in a short space of time.
b. It is easier. The logistics involved in going to obtain information from personal sources can b by-passed.
c. The chances of getting more accurate information is higher as most people are more expressive on the internet.
The detriments of the many-to-many pattern of the internet for this journalist would mean;
1. By-cutting the personal sources of information that are more reliable and authentic.
2. Depending on anonymous sources that cannot be easily referenced.
What is application software used for?
Answer:
Explanation: Application software is a type of computer program that performs a specific personal, educational, and business function. Each program is designed to assist the user with a particular process, which may be related to productivity, creativity, and/or communication.
Answer:
to make certain tasks easier for the computer user
Explanation: a p e x
I WILL GIVE BRAINLIEST TO WHO ANSWERS FIRIST AND CORRECT
How are blogs and wikis alike?
accessible 24/7
telecommunications technology
collaboration tool
available online
used for online dialog
increase business productivity
Answer:
i think 1 3 and 4
Explanation:
_______are a set of track sectors, ranging from 2 to 32 or more, depending on the formatting scheme in use.
a.
Cylinders
b.
Track sectors
c.
Tracks
d.
Clusters
Answer:
pretty sure it's d. clusters
if not it's also probably a. cylinders
Explanation: