Write a converter program for temperatures. This program should prompt the user for a temperature in Celsius. It should then convert the temperature to Fahrenheit and display it to the screen. Finally, it should convert the Fahrenheit temperature to Kelvin and display that to the screen.

Answers

Answer 1

Answer:

c = float(input("Enter the temperature in Celsius: "))

f = c * 1.8 + 32

print("The temperature in Fahrenheit: " + str(f))

k = (f - 32) / 1.8 + 273.15

print("The temperature in Kelvin: " + str(k))

Explanation:

*The code is in Python.

Ask the user to enter the temperature in Celsius

Convert the Celsius to Fahrenheit using the conversion formula and print it

Convert the Fahrenheit to Kelvin using the conversion formula and print it


Related Questions

Describe any five GSM PLMN basic services?

Answers

Answer:

Your answer can be found in the explanation below.

Explanation:

GSM is the abbreviation for Global System for Mobile communication. Its purpose is to transmit voice and data services over a range. It is a digital cellular technology.

PLMN is the abbreviation for Public Land Mobile network. It is defined as the wireless communication service or combination of services rendered by a telecommunication operator.

The plmn consists of technologies that range from Egde to 3G to 4G/LTE.

PLMN consists of different services to its mobile subscribers or users but for the purpose of this question, i will be pointing out just 5 of them alongside its definitions.

1. Emergency calls services to fire or police: Plmn provides us with the option to make emergency calls in the event of any accident or fire incident, etc.It is available on devices either when locked or unlocked.

2. Voice calls to/from other PLMN: This entails the putting of calls across to persons we cannot reach very quickly. PLMN helps to connect persons through its network of from other networks thus making communication easier.

3. Internet connectivity: PLMN provieds us with internet services through wifi or bundles that enable us have access to the internet as well as help us communicate with people and loved ones over a distance. Internet service are possble either on GPRS or 3G or 4G networks.

4. SMS service: SMS means short messaging service. This is also know as text messages. PLMN allows us to be able to send short messages to people as oppposed to mails. It is mostly instant and can be sent or recieved from the same PLMN or others.

5. MMS service: Multimedia messaging service whose short form is MMS ccan be descibed as the exchange of heavier messages such as a picture or music or document but not from an email. It is availabel for use from one PLMN to another.

Cheers.

If i wanted to change my phones simcard, does anything need transferring, or is it an easy swap?

Answers

Most likely not but I think you’ll have to log in your account like if you have an Apple phone . You’ll have to log into your Apple ID

10. Which of these is not an HTTP verb? PUT AJAX GET DELETE

Answers

Answer:

Brainliest!

Explanation:

The primary or most-commonly-used HTTP verbs (or methods, as they are properly called) are POST, GET, PUT, PATCH, and DELETE. These correspond to create, read, update, and delete (or CRUD) operations, respectively. There are a number of other verbs, too, but are utilized less frequently.

-

restapitutorial

.

com

AJAX

The word that is not an HTTP verb is AJAX.

But PUT, GET, and DELETE are HTTP verbs.

A HTTP verb is a word or method (it can also be a noun) for retrieving information (documents) in a web-based environment.  There are other HTTP verbs used for various purposes.  The most common include PUT, GET, DELETE, and POST.

HTTP is a computer-based abbreviation that means Hypertext Transfer Protocol.  It is the protocol for transferring data over the web using a client's home computer, laptop, or mobile device.

AJAX, which means Asynchronous Javascript and XML, is mainly used as a technique for creating fast and dynamic web pages using small amounts of data.

There is no suitable reference of HTTP verbs at brainly.com.

In this lab, you declare and initialize constants in a C++ program. The program, which is saved in a file named NewAge2.cpp, calculates your age in the year 2050.

Answers

Answer:

#include <iostream>

using namespace std;

int main()

{

   const int YEAR = 2050;

   int currentYear = 2020;

   int currentAge = 38;

   

   cout<<"You will be " << currentAge + (YEAR - currentYear) << " years old in " << YEAR;

   return 0;

}

Explanation:

Initialize the YEAR as a constant and set it to 2050

Initialize the currentYear as 2020, and currentAge as 38

Calculate and print the age in 2050 (Subtract the currentYear from the YEAR and add it to the currentAge)

Type a statement using srand() to seed random number generation using variable seedVal. Then type two statements using rand() to print two random integers between (and including) 0 and 9. End with a newline. Ex: #include < iostream > #include < cstdlib > // Enables use of rand() #include < ctime > // Enables use of time() using namespace std: int main() { int seedVal = 0 /* Your solution goes here */ return 0: }

Answers

Answer:

Replace /* Your solution goes here */ with the following code segment

srand(seedVal);

cout<<rand()%(int)(9 - 0 + 1) + 0<<endl;

cout<<rand()%(int)(9 - 0 + 1) + 0<<endl;

Explanation:

From the code segment, the seedVal has already been declared and initialized to 0; The next step is to seed it as random number using srand.

The first line of the code segment in the Answer section "srand(seedVal); " is used to achieve that task.

Having done that, the next step is to write statements to generate the two random numbers using rand();

When generating random numbers, two things are to be noted;

The lower bound; LThe upper bound; U

Here, the lower bound is 0 and the upper bound is 9;

C rand() function uses the following syntax to generate random numbers

rand()%(int)(U - L + 1) + L

Where U = 9 and L = 0

Replacing U and L with there respective values; the syntax becomes

rand()%(int)(9 - 0 + 1) + 0

So, the two print statements will be written as

cout<<rand()%(int)(9 - 0 + 1) + 0;

Also, the question states that, each print statement be ended with a new line;

So, the print statements will be

cout<<rand()%(int)(9 - 0 + 1) + 0<<endl;

Alternatively, by solving (9 - 0 + 1) + 0; the statements can be written as

cout<<rand()%(int)(10)<<endl;

Conclusively, the complete statements is as follows;

srand(seedVal);

cout<<rand()%(int)(9 - 0 + 1) + 0<<endl;

cout<<rand()%(int)(9 - 0 + 1) + 0<<endl;

or

srand(seedVal);

cout<<rand()%(int)(10)<<endl;

cout<<rand()%(int)(10)<<endl;

if you want to exclude a portion of an image which option should be chosen?? A. Arrange B. Position C. Crop D. Delete

Answers

It would be C- crop. This allows you to specifically delete parts of the image using drag and drop features. Hope this helps!

Write a python program that asks the user to enter a student's name and 8 numeric tests scores (out of 100 for each test). The name will be a local variable. The program should display a letter grade for each score, and the average test score, along with the student's name. There are 12 students in the class.
Write the following functions in the program:
calc_average - this function should accept 8 test scores as arguments and return the average of the scores per student
determine_grade - this function should accept a test score average as an argument and return a letter grade for the score based on the following grading scale:
90-100 A
80-89 B
70-79 C
60-69 D
Below 60 F

Answers

Answer:

The program doesn't make use of comments (See Explanation)

Also the source code is attached as image to enable you see the proper format and indexing of the source code

The program using python is as follows

def calc_average(name):

   score = []

   sum = 0

   for j in range(8):

       inp = int(input("Test Score"+str(j+1)+": "))

       score.append(inp)

       sum = sum + inp

       if inp>=90 and inp<=100:

           print("A")

       elif inp>=80 and inp<90:

           print("B")

       elif inp>=70 and inp<80:

           print("C")

       elif inp>=60 and inp<70:

           print("D")

       else:

           print("F")

   avg = sum/8

   print("Result Details of "+name)

   print("Average Score: "+str(avg))

   return avg

def determine_grade(result):

   if float(result) >= 90.0 and float(result) <= 100.0:

       print("Letter Grade: A")

   elif float(result) >= 80.0 and float(result) <90.0:

       print("Letter Grade: B")

   elif float(result) >= 70.0 and float(result) < 80.0:

       print("Letter Grade: C")

   elif float(result) >= 60.0 and float(result) < 70.0:

       print("Letter Grade: D")

   else:

       print("Letter Grade: F")

   print(" ")

for i in range(2):

   name = input("Student Name: ")

   result = calc_average(name)

   determine_grade(result)

Explanation:

def calc_average(name):  -> Declares the function calc_average(name); It accepts local variable name from the main function

   score = []

-> Initialize an empty list to hold test scores

   sum = 0

-> Initialize sum of scores to 0

   for j in range(8):

-> Iterate from test score 1 to 8

       inp = int(input("Test Score"+str(j+1)+": "))

-> This line accepts test score from the user

       score.append(inp)

-> The user input is then saved in a lisy

       sum = sum + inp

-> Add test scores

The following lines determine the letter grade of each test score      

if inp>=90 and inp<=100:

           print("A")

---

      else:

           print("F")

   avg = sum/8  -> Calculate average of the test score

The next two lines prints the name and average test score of the student

   print("Result Details of "+name)

   print("Average Score: "+str(avg))

   return avg

-> This line returns average to the main method

The following is the determine_grade method; it takes it parameter from the main method and it determines the letter grade depending on the calculated average

def determine_grade(result):

   if float(result) >= 90.0 and float(result) <= 100.0:

       print("Letter Grade: A")

   elif float(result) >= 80.0 and float(result) <90.0:

       print("Letter Grade: B")

   elif float(result) >= 70.0 and float(result) < 80.0:

       print("Letter Grade: C")

   elif float(result) >= 60.0 and float(result) < 70.0:

       print("Letter Grade: D")

   else:

       print("Letter Grade: F")

   print(" ")

for i in range(2):

-> This is the main method

   name = input("Student Name: ")  -> A local variable stores name of the student

   result = calc_average(name)  -> store average of scores in variable results

   determine_grade(result)-> Call the determine_grade function

In this exercise we have to use the computer language knowledge in python to write the code as:

the code is in the attached image.

In a more easy way we have that the code will be:

def calc_average(name):

  score = []

  sum = 0

  for j in range(8):

      inp = int(input("Test Score"+str(j+1)+": "))

      score.append(inp)

      sum = sum + inp

      if inp>=90 and inp<=100:

          print("A")

      elif inp>=80 and inp<90:

          print("B")

      elif inp>=70 and inp<80:

          print("C")

      elif inp>=60 and inp<70:

          print("D")

      else:

          print("F")

  avg = sum/8

  print("Result Details of "+name)

  print("Average Score: "+str(avg))

  return avg

def determine_grade(result):

  if float(result) >= 90.0 and float(result) <= 100.0:

      print("Letter Grade: A")

  elif float(result) >= 80.0 and float(result) <90.0:

      print("Letter Grade: B")

  elif float(result) >= 70.0 and float(result) < 80.0:

      print("Letter Grade: C")

  elif float(result) >= 60.0 and float(result) < 70.0:

      print("Letter Grade: D")

  else:

      print("Letter Grade: F")

  print(" ")

for i in range(2):

  name = input("Student Name: ")

  result = calc_average(name)

  determine_grade(result)

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

DEF is a small consulting firm with ten on-site employees and 10 to 12 part-time (off-site) software consultants. Currently, the network consists of 2 servers for internal business processes, 1 server that handles the call-in connections; 10 on-site wireless workstations/devices, and 2 printers. Respond to the following in a minimum of 175 words: Identify one network security strategy that would help this organization. Why did you choose this strategy over others

Answers

Answer:

What i would suggest for the organization is to use the Testing Infrastructure strategy. it is good for your consulting firm because it is less costly and provide security.

Explanation:

Solution

There are different network security strategy which is listed below:

Segment the network:

Segmentation in network is very useful for providing security.If any threat is occur only one segment is effected remaining are safe and it is less cost process. very useful for small organizations.

Test your infrastructure :

Testing infrastructure also very good technique.

Always we have to test our infrastructure whether threat is occur or not.

If any threat is happen we can detect that easily by testing our infrastructure.

Regularly update anti-virus software :

This is very useful for small organizations and it is less cost.with less cost we can provide security for all devices like computer,server,modems etc.

Frequently backup your critical data :

This is very good technique for crucial data.If we backup important data any time that will be useful if any attack is happen.

This is less costs and simple.

Change router default security settings :

Changing router password and settings also helpful for providing security.If we maintain same password and same settings for a long time that may lead to data hacking.It is cost less process very useful for small organizations.

Assign True to the variable is_ascending if the list numbers is in ascending order (that is, if each element of the list is greater than or equal to the previous element in the list). Otherwise, assign False with is_ascending.

Answers

Answer:

The question seem incomplete as the list is not given and the programming language is not stated;

To answer this question, I'll answer this question using Python programming language and the program will allow user input.

Input will stop until user enters 0

The program is as follows

newlist = []

print("Input into the list; Press 0 to stop")

userinput = int(input("User Input:"))

while not userinput == 0:

     newlist.append(userinput)

     userinput = int(input("User Input:"))

is_ascending = "True"

i = 1

while i < len(newlist):  

     if(newlist[i] < newlist[i - 1]):  

           is_ascending = "False"

     i += 1

print(newlist)

print(is_ascending)

Explanation:

This line declares an empty list

newlist = []

This line prompts gives instruction to user on how to stop input

print("Input into the list; Press 0 to stop")

This line prompts user for input

userinput = int(input("User Input:"))

This next three lines takes input from the user until the user enters 0

while not userinput == 0:

     newlist.append(userinput)

     userinput = int(input("User Input:"))

The next line initialized "True" to variable is_ascending

is_ascending = "True"

The next 5 line iterates from the index element of the list till the last to check if the list is sorted

i = 1

while i < len(newlist):  

     if(newlist[i] < newlist[i - 1]):  

           is_ascending = "False"

     i += 1

The next line prints the list

print(newlist)

The next line prints the value of is_ascending

print(is_ascending)

Other Questions
... in his outrageously demanding and protective way heloved his children, who were black like him and menaced,like him...What rhetorical device is James Baldwin most clearly using in this passage?A. ImageryB. ParallelismC. AllusionD. Metaphor Potential difference of a battery is 2.2 V when it is connectedacross a resistance of 5 ohm, if suddenly the potential differencefalls to 1.8V, its internal resistance will be in what ways did education seek to reinforce nazi beliefs about the aryan race? 5 PointsGreat Britain would have a much colder climate than it does if not for theO A. polar easterliesB. gulf streamC. trade windsD. jet streamSUBMIT Bill Phillips is developing a Monte Carlo simulation to value a complex and thinly traded security. Phillips wants to model one input variable to have negative skewness and a second input variable to have positive excess kurtosis. In a Monte Carlo simulation, Phillips can appropriately use:_________ Which elements cause the catastrophe in Act V, scene iii of Romeo and Juliet? Select 3 options. Romeo mistakenly believes Juliet is dead when he sees her lying in the tomb. The prince scolds both the Capulet and Montague families for their behavior. Juliet acts rashly after she awakens and finds Romeo's lifeless body next to her. Friar Laurence does not reach Romeo in time to tell him that Juliet is alive. Romeo writes a letter to Balthasar explaining his decision that he shows to the families. Which statement accurately describes one role of water on Earth?Water in plants and animals transports nutrients into cells.Water reflects sunlight that hits the oceans. Water builds up rock and soil.Water holds heat by trapping it within the equator. Ms. Parker would like to have $99.000 buy a new car in 8 yearsTo accumulate $99,000 in years, how much should she invest monthly in a sinking tund with 3% Interest compounded monthly? If a company fails to adjust for accrued revenues:______. a. assets will be understated and revenues will be understated. b. liabilities will be understated and revenues will be understated. c. liabilities will be overstated and revenues will be understated. d. assets will be overstated and revenues will be understated. Please help theres a picture 6060Y=? The vertex of this parabola is at (4,-3). Which of the following could be itsequation?A. x==3(y - 3)2 + 4B. X=-3(+4)2-3C. X=-3(-4) 2-3D. X=-3(y + 3) - 4 An effect of the Lewis and Clark expedition on US business was that itfound a location for a national bank.located important routes for trade and travel.brought back specimens of natural discoveries.found a water route across the continent. Which statement about the function is true?O The function is positive for all real values of x whereThe function is negative for all real values of x where-6exs-2.O The function is positive for all real values of x whereX-6 orr-3O The function is negative for all real values of x wherex State whether the data described below are discrete or continuous, and explain why. The exact lengths (in kilometers) of the ocean coastlines of different countries.a. The data are continuous because the data can only take on specific values. b. The data are discrete because the data can only take on specific values. c. The data are continuous because the data can take on any value in an interval. d. The data are discrete because the data can take on any value in an interval. Any answers plzzzzzz Find the general solution to 3y+12y=0. Give your answer as y=... . In your answer, use c1 and c2 to denote arbitrary constants and x the independent variable. Enter c1 as c1 and c2 as c2. The Hudson Corporation makes an investment of $24,000 that provides the following cash flow: Use Appendix B and Appendix D for an approximate answer but calculate your final answer using the formula and financial calculator methods.Year Cash Flow 1 $ 13,000 2 13,000 3 4,000a. What is the net present value at an 8 percent discount rate? (Do not round intermediate calculations and round your answer to 2 decimal places.)b. What is the internal rate of return? (Do not round intermediate calculations. Enter your answer as a percent rounded to 2 decimal places.) What is the measure of arc ADC if the measure of arc BC is 52 degrees Identify the products of cellular respiration and photosynthesis What is the purpose of an index in an informative text?