Write qbasic program to input length in centimeter and calculate its length in meter​

Answers

Answer 1

Answer:

INPUT ”Enter length in centimetres” ; C

C = M / 10                                                                   //divide by 10

PRINT “ Length in metres is ”; M

END          

Explanation:


Related Questions

In reference to cloud computing, what does the term cloud mean?

Answers

The definition of cloud, Based on the standard cloud illustration used to describe the telephone network, it is a metaphor for the internet.

Servers that can be accessed online, together with the programmes and information they house, are collectively referred to as "the cloud." All across the world, data centres house cloud servers.

Simply described, cloud computing is the supply of computer services over the Internet ("the cloud"), including servers, storage, databases, networking, software, analytics, and intelligence, to provide speedier innovation, flexible resources, and scale economies. You normally only pay for the cloud services that you actually use, which helps you reduce operational expenses, manage your infrastructure more effectively, and grow as your business requirements change.

The way organisations think about IT resources has significantly changed as a result of cloud computing. Here are seven typical reasons why businesses are utilising cloud computing services.

Learn more about Cloud here:

https://brainly.com/question/29737287

#SPJ4

while troubleshooting, a technician notices that some clients using ftp still work and that pings to the local routers and servers are working. the technician tries to ping all known nodes on the network, and they reply positively, except for one of the servers. the technician notices that ping works only when the hostname is used but not when fqdn is used. what server is most likely offline?

Answers

The server that is not responding to pings when the FQDN is used is most likely offline.

The Importance of Troubleshooting Network Issues

Troubleshooting network issues is an important part of any network administrator’s job. Knowing how to identify and resolve any potential issues quickly and efficiently is key to keeping a network running smoothly. By using various tools such as ping, FTP, and FQDN, a technician can quickly identify the source of any network issue and take the appropriate action to fix it.

While pinging a local router or server can be a quick and easy way to determine if the network is running correctly, it is not always sufficient. In cases where ping only works when the hostname is used, but not when the FQDN is used, the technician should investigate further. This could indicate that a particular server is offline, or that there is a more serious issue with the network.

In addition to pinging, a technician should also use FTP and other tools to make sure that all known nodes on the network are responding. If any nodes are not responding, it is important to investigate further as this could be an indication of a larger network problem.

Learn more about Troubleshooting Network Issues :

https://brainly.com/question/30033227

#SPJ4

Which attributes are reasons to choose Amazon Elastic Compute Cloud (Amazon EC2)? (Select TWO.)
O Ability to run any type of workload
O Ability to run serverless applications
O Amazon Web Services (AWS) management of operating system patches
O AWS management of operating system security
O Complete control of computing resources aws academy Number correct: 0 out of O SUBMIT

Answers

The reasons to choose Amazon Elastic Compute Cloud (Amazon EC2) are;

Ability to run any type of workload

AWS management of operating system security

What is an AWS system manager?

Amazon Web Services system manager is a collection of capabilities on amazon web services that helps manage applications and infrastructures running in AWS cloud. With a system manager, you can put Bash script commands into a Command document that Systems Manager can run.

The aws service feature that provides the simplest way to automate the running of the bash scripts that routinely run on your amazon elastic compute cloud (amazon EC2) instances that run linux is,  AWS System Manager.

Ability to run any type of workload is the reasons to choose Amazon Elastic Compute Cloud (Amazon EC2).

Learn more on Amazon web services (AWS) from:

brainly.com/question/28145530

#SPJ4

Amazon Fresh is a grocery delivery service that offers consumers the option of purchasing their groceries online and having them delivered on schedule. The Amazon Fresh team is planning a route for a delivery truck to deliver customer orders in the city of Techlandia. The planner will create a delivery area for each order to effectively plan the route. The area is abstracted as a grid. Not all locations are accessible by road. The truck only needs to make a single delivery Write an algorithm to determine the minimum distance required for the truck to deliver the order Assumptions: Some places in the delivery area cannot be accessed by the driver, as there are no roads in those locations The delivery area can be represented as a two-dimensional grid of integers, where each Integer represents one cell: The truck must start from the top-left corner of the area, which is always accessible and can move one cell up, down, left or right at a time. The truck must navigate around the areas without roads and cannot leave the area. The accessible areas are represented as 1, areas without roads are represented by O and the order destination is represented by 9. Input The input to the function/method consists of one argument area, representing the two-dimensional grid of integers, Output Return an integer representing the total distance traversed to deliver the order else return -1. Constraints 1 rows columns 10 Example Input: area [1.0.01 11,0,01 [1.9.11 Output: 3 Explanation: Starting from the top-left corner, the truck traversed the cells (0,0) (1.0) (2.0)-> (2,1). The truck traversed the total distance to deliver the order So, the output is 3

Answers

The number variable contains this number. printf ("Enter an integer: "); scanf ("%d," "&number);"); Finally, printf() is used to display the value stored in number on the screen. printf ('You entered:%d, number');

What Output Return an integer?

A final integer value (often 0) is returned by main before your program ends. Because it is used to determine whether the program ran successfully or not, the return value from main is commonly referred to as a status code (also occasionally known as an exit code or, less frequently, a return code).

Therefore, You can instruct functions to return data in addition to handing them data. They may do so by returning a single data item, such as an integer, an array, or an object.

Learn more about integer here:

https://brainly.com/question/13058675

#SPJ4

The system that data takes to flow between devices on a network is called?

Answers

Transmission media refers to the mechanism by which data moves between devices on a network.

A communication channel known as "transmission media" is used to send information from a source or transmitter to a receiver. Through electromagnetic impulses, it is a physical route for data transport. Through the LAN, information is transmitted in bits. The transmission of signals for telecommunications can be mediated by it. An appropriate wave for the selected medium is applied with signals. Under the physical layer that controls them, these media are located.

Guided and unguided media are the two main categories of the transmission medium in computer networks. Additionally, there are subcategories of these two transmission media types. Let's get into further depth on these.

Wired and bounded media are other names for guided media. The cables that make up these mediums are used to transfer data.

Learn more about Transmission media here:

https://brainly.com/question/13095080

#SPJ4

At what point are you responsible for following the terms in a software license agreement?- when you purchase the software- when you give the software to someone else- when you click or take another action to accept the terms- when you register the software

Answers

when you click or take another action to accept the terms  in a software license agreement.

What does licensing agreement mean?

An agreement between two parties (the licensor and licensee) known as a licensing agreement allows the licensee the right to utilize the brand name, trademark, copyrighted technology, or the capacity to create and sell items that the licensor owns.

What does a software license agreement serve?

An agreement known as a software license agreement permits a licensee to use software but not to really own it.

                      The rights to continue selling the program to others and to allow the licensee to use it on a single computer are rights that the software creator retains.

Learn more about  software license agreement

brainly.com/question/29272295

#SPJ4

The industry standard is for all cameras to be operated by humans.

A) True
B) False

Answers

the correct answer is true

answer true
I Believe the answer would Be A. True Explanation: It's true

true or false: inodes are organized in an array and placed on disk at a random location (or locations). select one: true false

Answers

The right response is "False," indicating that inodes are arranged in an array and scattered throughout the disk (or locations).

What aspect of the operating system decides which job will be executed?

It is the transition of the process from its ready state to its running state. The CPU scheduler chooses a process from those that are prepared to run and allots CPU resources to that particular process. Dispatchers, another name for short-term schedulers, choose which process should be carried out next.

What are a file type and a file system?

A file system, often written as filesystem, refers to the way files are labeled and logically structured for storage and retrieval in a computer.

To know more about an array visit:-

https://brainly.com/question/13107940

#SPJ4





I Sing the Body Electric

by Walt Whitman



Part 1:



I sing the body electric,


The armies of those I love engirth me and I engirth them,


They will not let me off till I go with them, respond to them,


And discorrupt them, and charge them full with the charge of the soul.



Was it doubted that those who corrupt their own bodies conceal themselves?


And if those who defile the living are as bad as they who defile the dead?


And if the body does not do fully as much as the soul?


And if the body were not the soul, what is the soul?



1855





Answers

These seeming rhetorical and cynical questions close out Part 1. It has been believed that Whitman struggled between disclosing and hiding his homosexuality because of the grammar's seeming purposeful obscurity.

Who is Walt Whitman?

American poetry, writer, and newspaper by the name of Walter Whitman. He was indeed a humanist who participated in the shift from existentialism to realism by mixing both ideologies into his writing. Whitman, who is frequently referred to as the founder of free poetry, is one of the most significant poets in American literature.

These queries, however, might also serve as a starting point for the poem's condemnation of slavery, a significant subject covered in such poem's portions also cast in shadow more by antithesis of corruption as well as "discorruption." The slave markets that were held not too far from Whitman's quarters horrified him. This is important in relation to the great, almost religious question, "And if the body were not the soul, what is the soul?" Whitman's response is shown throughout the entire poem.

Learn more about Walt Whitman, Here:

https://brainly.com/question/2241669

#SPJ4

The question is incomplete, the complete question will be :

Why was the grammar that was written in the poem tested or instructive that was written by Walt Whitman?

I Sing the Body Electric

by Walt Whitman

Part 1:

I sing the body electric,

The armies of those I love engirth me and I engirth them,

They will not let me off till I go with them, respond to them,

And discorrupt them, and charge them full with the charge of the soul.

Was it doubted that those who corrupt their own bodies conceal themselves?

And if those who defile the living are as bad as they who defile the dead?

And if the body does not do fully as much as the soul?

And if the body were not the soul, what is the soul?

users at dreamhouse reality are only allowed to see opportunities they own. leadership wants an enterprise- wide dashboard of all open opportunities in the pipeline so that users can see how the company is performing at any point in time. how should an administrator create the dashboard without changing any sharing setting?

Answers

For profiles that require access to the corporate results, create individual dashboards.

What dashboard feature enables users to view a dashboard that just contains their data?

Using the dashboard viewer Viewers of dashboards perceive data as they do, based on their own data access. Dynamic dashboards are what these types of displays are known as. Charts, tables, gauges, metrics, and other components that you can make using VisualForce can all be used as dashboard components.

What do the three dashboard layers refer to?

Three separate informational levels can be divided into a dashboard: Using graphical, metrics-based data, executives may monitor information. Information for analysts using dimensional, summary data.

To know more about dashboards visit :-

https://brainly.com/question/29023807

#SPJ4

How can I download battleroyale games in computer?

Answers

To download battle royale games on a computer, open battle royale sites, or if it is present in the play store, from there you can download it.

What is downloading?

When you download, your computer is obtaining information from the Internet. Opening a website, getting an email, buying music files, and watching videos online are all examples of downloading.

The act of getting files, images, and web pages from a web server is known as downloading. You must upload a file in order for it to be accessible to everyone online.

Therefore, open battle royale websites or, if it's available in the play store, go there to download battle royale games for a computer.

To learn more about downloading, refer to the below link:

https://brainly.com/question/26456166

#SPJ1

values passed to functions when the function is called are called parameters, and the parameter values are assigned to arguments to be used in the function. group of answer choices true false

Answers

Parameter  are values passed to functions when the function is called, and the parameter values are assigned to arguments to be used in the function is true.

What is parameter?A parameter, generally, is any characteristic that can help in defining or classifying a particular system. That is, a parameter is an element of a system that is useful, or critical, when identifying the system, or when evaluating its performance, status, condition, etc.A set of facts or a fixed limit that establishes or limits how something can or must happen or be done.parameter, in mathematics, a variable for which the range of possible values identifies a collection of distinct cases in a problem.

To learn more about classifying refer to:

https://brainly.com/question/29629793

#SPJ4

Which hardware component processes data?

Answers

Answer:

cpu central processing unit

Explanation:

cpu central processing unit

The main function of Cyber Incident Response Capability (CIRC) is to _____.

a.

restrict access controls to unauthorized personnel

b.

provide level 1 security

c.

create backdoors to bypass security protocols

d.

provide information on security incidents

Answers

The main function of Cyber Incident Response Capability (CIRC) is to provide information on security incidents. so the correct option is D.

What is access control in security?

Access controls restrict unauthorized individuals from using information resources. These controls involve two major functions: authentication and authorization. Authentication confirms the identity of the person requiring access.

Access control is a central region of the information security that directs who's permitted to access and utilize organization data and assets.

Cyber Incident Response Capability (CIRC) provide the information on security incidents.

Therefore, the correct option is D.

Learn more about access control here:

brainly.com/question/27961288

#SPJ4

Which two statements characterize wireless network security? (Select Two)

Wireless networks offer the same security features as wired networks.

Wardriving enhances security of wireless networks.

With SSID broadcast disabled, an attacker must know the SSID to connect.

Using the default IP address on an access point makes hacking easier.

An attacker needs physical access to at least one network device to launch an attack.

Answers

The two statements characterize wireless network security include all of the following:

C. With SSID broadcast disabled, an attacker must know the SSID to connect.

D. Using the default IP address on an access point makes hacking easier.

What is SSID?

In Computer networking, SSID is an abbreviation for service set identifier and it can be defined as the generic name given to a wireless local area network (WLAN) connection.

In Computer networking, the most important fact about the service set identifier (SSID) is that it is very essential and necessary for all the end users and all access points (AP) must be configured with matching SSIDs.

Read more on wireless local area network here: brainly.com/question/13697151

#SPJ11

As part of Azure AD Cloud sync troubleshooting, what would be a viable troubleshooting step? (More than one answer may apply.) * (5 Points) O Make sure Active Directory is updated to the latest version O Check that inbound traffic is completely open to all traffic through the firewall for ports 80 and 443 O Check that permissions are being applied to the local NT Service sign-in account created by the installer (NT SERVICE\Administrator) O Make sure the service is running O Check the Azure portal for object synchronization issues to view the logs

Answers

As part of Azure AD Cloud sync troubleshooting, The steps that would be a viable troubleshooting are:

Making sure Active Directory is updated to the latest versionChecking that inbound traffic is completely open to all traffic through the firewall for ports 80 and 443Checking that permissions are being applied to the local NT Service sign-in account created by the installer (NT SERVICE\Administrator)Making sure the service is runningChecking the Azure portal for object synchronization issues to view the logs

What is the Cloud sync troubleshooting about?

It is also important to make sure that the Azure AD Connect service is properly configured and that the sync between the on-premises Active Directory and Azure AD is working as expected.

Therefore, in the above case, you may want to check the sync logs and run the Azure AD Connect Health tool to diagnose any issues. Additionally, you can try running the Azure AD Connect configuration wizard to see if it can detect and resolve any issues.

Learn more about troubleshooting from

https://brainly.com/question/29022893

#SPJ1

An anchor tag can be coded using which two attributes? href and name src and id href and src name and src.

Answers

An anchor tag can be coded using href and name two attributes.

What is anchor tag ?

An element of a web page known as an anchor tag or anchor link links to another place on the same page. They are frequently used on lengthy or text-heavy pages to let users to quickly navigate to a certain area without having to scroll much.

What does an HTML anchor tag mean?

To link from one page to another, use the element that describes a hyperlink. The href attribute, which describes the location of the link, is the most crucial property of the element.

What does anchor mean?

An anchor is a tool that secures a boat to the bottom of a body of water in order to stop the craft from drifting away from the shore due to wind or current. An anchor is often composed of metal.

Learn more about anchor tag

brainly.com/question/29846761

#SPJ4

During a meeting this afternoon you learned that one of your coworkers has been promoted to a new position in the company. Use what you learned in the unit about professional communication to create a short congratulatory email to them. Be sure to include what you would write in both the email’s subject box and the email body.

Please help I only have a few minutes before my computer dies and I don't have a charger.

Answers

The example of a short congratulatory email is given below

Happy to hear about this new chance! "This professional change is a fantastic fit for you; I'm very happy for you." You all are perfect fit for the new job; congrats on winning this fantastic chance. Enjoy the fruits of your labor because all of your hard work has brought you to this point.How do you offer someone congratulations on their new job?

Another way to create the message is:

Thank you for your well-deserved promotion! The fact that your efforts and accomplishments have been noticed is wonderful.

The news of your new position has me ecstatic, and I'm happy that we'll be collaborating closely on forthcoming projects.

Learn more about email from

https://brainly.com/question/24072307
#SPJ1

for each password, how would it be cracked (what kind of attack can crack this password), and is it a weak or strong password?

Answers

Hackers often use harmful password attacks to try and access your account. Brute-force assaults, credential stuffing, and password spraying are a few examples of password attacks.

A password attack is what kind of attack?

One of the most frequent ways that personal and corporate data is compromised is through password attacks. An attempt to steal your password by a hacker is known as a password attack.

How are passwords cracked by hackers?

Any information on you that is easily accessible online is referred to as OSINT. For instance, hackers may search your social media accounts for details like names, significant dates, locations, or interests that you can use as passwords.

To know more about password attacks visit:-

https://brainly.com/question/13103250

#SPJ4

Windows media player cannot play the file. the player might not support the file type or might not support the codec that was used to compress the file.
a. True
b. False

Answers

Answer:

True!

Explanation:

Can you help me with a question like this I have! I have posted it 3 times, and haven't got a response yet. I need this within the hour, because I have a time limit on how long I am allowed on my chromebook so...

Thank you!

A data lake is composed of:
Select one:
A. historical data from legacy systems.
B. unstructured and structured data that has not been analyzed.
C. internal and external data sources.
D. historic and current internal data.
E. historic external data.

Answers

A data lake is composed of unstructured and structured data that has not been analyzed. The correct option is B.

What is a data?

Data is information that has been transformed into a format that is useful for transfer or processing in computing.

Data is information that has been transformed into binary digital form for use with modern computers and communication mediums. The topic of data may be used in either the singular or the plural.

Large amounts of organised, semistructured, and unstructured data can be stored, processed, and secured using a data lake, a centralised repository. It can process any type of data, regardless of its variety or magnitude, and save it in its original format.

Thus, the correct option is B.

For more details regarding data, visit:

https://brainly.com/question/10980404

#SPJ4

which of the following is true about overloaded methods? a. java cannot use a method's return type to tell two overloaded methods apart b. java cannot use a method's parameters to tell two overloaded methods apart c. you can only overload methods that have parameters. d. all overloaded methods must have different names. e. none of the above

Answers

Note that the option that is true about overloaded methods is: "Java cannot use a method's return type to tell two overloaded methods apart." (Option B)

What are overloaded methods in programming?

Overloading occurs when two methods with the same name but distinct signatures coexist (or arguments). We can implement two or more methods with the same name in a class. Overloaded methods are distinguished by the number and kind of parameters given as method arguments.

Method Overloading, in other words, is a feature that permits a class to have numerous methods with the same name but different numbers, sequences, or types of parameters. In summary, numerous methods with the same name but distinct signatures exist.

Polymorphism is classified into two types:

method overloading and method overriding.

Method overloading occurs when many methods with the same name but different parameters are used. Method overriding indicates that a method with the same name as the parent class but a different implementation can exist in the child class.

Learn more about Java:
https://brainly.com/question/12978370
#SPJ

Sprint, T-Mobile, ATT & ___ are the major national cell phone providers in the U.S

Answers

Major national cell phone providers in the U.S. include Sprint, T-Mobile, ATT, and Verizon.

Which two of the following are necessary for setting up a home Wi-Fi network?

The essential elements needed to create a standard home/small business network are as follows: Network to Internet connection is made via a router or wireless router. Wi-Fi equipped devices are linked to the network by means of a wireless access point.

What type of internet can you get the quickest?

This is gigabit service, which guarantees internet download rates of at least 1,000 Mbps. Gigabit service is offered by nearly all cable and fiber internet providers, and since there is so much competition, the costs have remained cheap.

To know more about T-Mobile visit :-

https://brainly.com/question/28480148

#SPJ4

What is the Start menu PC?

Answers

The Start menu is a graphical user interface element used in Microsoft Windows since Windows 95 and in other operating systems. It provides a central launching point for computer programs and performing other tasks in the Windows shell. It is named Start screen in Windows 8.
ANSWER -

Please Help! (Language= Java) Beginners Comp. Science
Assignment Details=

Create a class called Palindromes, which will determine if a user’s entry is a palindrome. A
palindrome is a word or phrase that reads the same backwards or forwards. See the examples.
A Santa at NASA My gym taco cat kayak NOW I WON race car
Your program will ignore spaces and ignore case when determining if a string is a palindrome.
Use the String method replace to remove the spaces. If it is a palindrome, output
PALINDROME, or else output NOT PALINDROME.
Additional requirements:
 Add an infinite loop with a sentinel-trigger break test (allowing them to input multiple
attempts). You may decide on its command word or exit-condition.
 As below, make sure a spacer line exists between each run of the program
Here are two sample runs of the program.
Enter a word or phrase: Noon
PALINDROME
Enter a word or phrase: bookkeeper
NOT PALINDROME

Answers

Answer:

import java.util.Scanner;

class Main {

 public static void main(String[] args) {

   test("A Santa at NASA");

   test("My gym");

   test("taco cat");

   test("kayak");

   test("NOW I WON");

   test("race car");

   test("bookkeeper");

   Scanner scanner = new Scanner(System.in);

   

   while(true) {

     System.out.print("Enter a word or phrase: ");

     String line = scanner.nextLine();

     if (line.equals("exit")) break;

     if (Palindromes.isPalindrome(line)) {

       System.out.println("PALINDROME");

     } else {

       System.out.println("NOT PALINDROME");

     }

   }

   scanner.close();

 }

 public static void test(String s) {

   System.out.printf("'%s' is %sa palindrome\n", s, Palindromes.isPalindrome(s) ? "" : "not ");

 }

}

class Palindromes {

 static boolean isPalindrome(String s) {

   s = s.replaceAll("\\s","").toLowerCase();

   return s.equals(reverseString(s));

 }

   public static String reverseString(String str){  

     StringBuilder sb = new StringBuilder(str);  

     sb.reverse();  

     return sb.toString();  

 }  

}

Explanation:

I chose to use a string reverse routine. This is slightly less efficient than iterating the string from both ends, but performance is less important than readability here.

The stop word is exit.

The file class only provides information (metadata) about a file or a directory. it does not perform data input or output operations.

a. True
b. False

Answers

The class file does not conduct data input or output operations; rather, it solely offers information (metadata) about files and directories.

What function does the File class serve?

The File class has a number of methods for working with the pathname, renaming and removing files, making new directories, showing their contents, and figuring out a number of common properties of files and directories.

Input and output file operations: what are they?

An output file is often created on the disk when it is opened, enabling the software to write data to it. A program can read data from a file by opening an input file.

To know more about class file visit :-

https://brainly.com/question/6238505

#SPJ4

What is the main function of executive?

Answers

The executive arm of government is in charge of overseeing a state's overall administration.

What is the executive's primary duty? The executive arm of government is in charge of overseeing a state's overall administration.The executive branch of government is in charge of implementing and carrying out legislation passed by the legislative branch of government in nations with a political system based on the separation of powers.The president is in charge of the executive branch, and according to the constitution, he or she is also responsible for acting as head of state, choosing ambassadors, federal judges (including those who sit on the Supreme Court), and commander in chief of the armed forces.The responsibilities of the executive:Law enforcement, appointment-making, and treaty-making are all included.Functions: Warfare, peacekeeping, and defense

To learn more about  executive refer

https://brainly.com/question/838027

#SPJ4

The accelerated mobile pages project is trying to address what shortcoming of mobile devices?

Answers

The accelerated mobile pages project is trying to address slow loading of webpages.

A web page or webpages is a piece of writing that is typically created in HTML and is accessed in an internet browser. You may visit a web page by typing a URL address into the address bar of your browser. Text, pictures, and connections to other web sites and files are all possible components of a web page.

In order to better explain crucial concepts to users, material is frequently provided on a website in the form of images or videos. Additionally, visitors may be sold goods or services via a website. A website, such as the one for Computer Hope, is composed of several web pages.

Learn more about Webpages here:

https://brainly.com/question/21587818

#SPJ4

in terms of the ansi-sparc architecture, when designing a database, a determination of the general types of queries that the database should be able to support should be done during question 6 options: this is nonsense, queries are not a consideration in the database design process the logical design phase the cartographic process the conceptual design phase the physical design phase

Answers

The general types of queries that the database should be able to support should be decided upon during the logical design phase of the database design process.

What is the logical design phase?This is an important phase since the queries will determine the structure and operation of the database.The needs for the database are identified and its structure is designed during the logical design stage. The construction of tables, fields, indexes, and relationships may be part of this. Additionally, the queries that will be used to communicate with the database are chosen. Depending on the application and the database's goal, these queries will change.The queries should also be planned to enhance the database's performance. The phase of physical design can start once the queries have been resolved. Here, the storage architecture, access strategies, and security controls for the database are further honed.The database can be implemented once the logical and physical design processes have been finished.

To learn more about The logical design phase refer to:

https://brainly.com/question/17216999

#SPJ4

Pls answer these

Question-1 Write a program in Python to read the room temperature and display the same using variable.

Question-2 list 3 input and output in smart living

Question-3 Write a program in python to turn the LED on/off according to the availability of light using IF…ELSE statement.

Question-4 Mary wants to help her visually challenged elderly uncle to maintain the room temperature by switching on AC; alert him with a beep sound(temp>28).Create a python script for the same.

Answers

Using the knowledge in computational language in python it is possible to write a code that read the room temperature and display the same using variable.

Writting the code for the temperature and a list:

temp = float(input("Enter Temperature: "))

unit = input("Enter unit('C' for Celsius or 'F' for Fahrenheit): ")

if unit == 'C' or unit == 'c' :

   newTemp = 9 / 5 * temp + 32

   print("Temperature in Fahrenheit =", newTemp)

elif unit == 'F' or unit == 'f' :

   newTemp = 5 / 9 * (temp - 32)

   print("Temperature in Celsius =", newTemp)

else :

   print("Unknown unit", unit)

Writting the code for the LED:

from pyfirmata import util, Arduino

import time

def blink(b_time):

   board = Arduino('COM5')

   it = util.Iterator(board)

   it.start()

   led_13 = board.get_pin('d:13:o')

   while True:

       led_13.write(1)

       print('Led ON')

       time.sleep(b_time)

       led_13.write(0)

       print('Led OFF')

       time.sleep(b_time)

if __name__ == '__main__':

   blink(0.2)

See more about python at brainly.com/question/29897053

#SPJ1

Other Questions
What are homologous structures give two examples and explain how they are homologous? Why? Do you think there any amendments missing that are important and would be beneficial to our society? Writing at least one paragraph, please address the question prompt above. Support your response with as much detail/facts as possible. Once completed, respond to at least one of your classmates' posts. Be sure to follow all guidelines listed below and remember to be respectful to one another. Guidelines Your initial response should be 100-200 words in length, reflecting on the prompt above. Reply to at least one of your classmates' posts. Your response to your classmates discussion should be around 50 words (each) and add to the discussion (i.e. reflecting on their response, asking questions, etc.). Avoid inappropriate or disrespectful comments. This is not a course where we disparage others or question their beliefs. Overt political/social/religious messages about any particular party, politician, religion will be removed. What is the most common method of comparing economic development of a country what are its drawbacks? When the nurse is testing the triceps reflex, what is the expected response? How is i 4 equal to 1? During the more advanced stages of aids, patients experience _____. Which former 49ers of has the second most wins in Seahawks history What is interest group in psychology? Pursuing a strategy of social responsibility and corporate citizenship helps increase a company's image rating, provided the company spends a meaningful amount on socially responsible activities and such spending is sustained over a multi-year period. has the effect of boosting the company's EPS, ROE, and stock price by 10% in those years when the company's spending for socially responsible activities is the highest in the industry. boosts a company's sales of entry-level and multi-featured cameras by 10% in each geographic region when a company wins one or more Gold Star Awards for Corporate Citizenship given by the World Council to Promote Exemplary Corporate Citizenship. helps increase a company's global sales volume and global market share of entry-level and multi-featured cameras by up to 10% whenever the company's annual spending for socially responsible activities exceeds $10 million. enhances the effectiveness of a company's quarterly advertising expenditures by about 10%whenever the company's total spending for socially responsible activities is 10% or more above the prior year's industry average. What are the 4 common characteristics shared among living things? Which part of the 14 Points Plan do you think is most needed to achieve Wilson's goal of international peace? Why? What guidelines might be missing but would be helpful to complete Wilson's goal? write at least a paragraph for your explanation. worth 8 points What is an example of hyper automation? What are the 2 types of voting systems? How do you summarize text in one sentence? Why do we address counter arguments? What did Woodrow Wilson want to achieve with his new freedom? Which of the following terms refers to the economic circulation of works of art? Art gallery Auction Patronage Art market CONCEPT Where does your body get the energy for reattaching a third phosphate to ADP, creating ATP?answer choicesfrom the sunusually from carbsfrom nucleic acidsfrom breaking ATP For each graph, select all symmetries that apply. (a) (b) (C) y 6- y 4 4. 4-1 2 2- X x 76 TC -4 6 -6 -4 -2. -2 -2- -2- -4- -4- -4 -6 -6- -67 Symmetry: Symmetry: Symmetry: X-axis X-axis Ox-axis y-axis | y-axis y-axis origin origin origin none of these none of these none of these s ? Patients with agraphia ______.are suffering from Wernicke's aphasiawould have Brocas aphasiacannot read a map or graphhave the inability to write