1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
lorasvet [3.4K]
3 years ago
10

Write and run a Python program that asks the user for a temperature in Celsius and converts and outputs the temperature in Fahre

nheit. (Use the formula given in the example above and solve for tempF in terms of tempC.)
Computers and Technology
1 answer:
adelina 88 [10]3 years ago
6 0

Answer:

Program :

celsius_input= float(input("Enter the value of celcius"))#It is used for the input from the user.

print((celsius_input * 1.8) + 32) # it prints the value of fahrenheit for the user.

Output:

  • If the user gives the input as 23.6, then the output is 74.48.
  • If the user inputs is 45, then the output is 113.

Explanation:

  • The above code is in python language, in which the first line is used to generate the message for the user, take the input from the user and store it into the "celsius_input" variable after converting it into float data type.
  • Then the second line will print the value of Fahrenheit by the help of formula "(celsius_input * 9/5) + 32". The 9/5 will become 1.8. hence we used 1.8 in the place of 9/5.
You might be interested in
L00000000000000000000000000000000000000000000000000000000l they b00ty tickled
Sidana [21]

Answer:

same bruh

Explanation:

7 0
3 years ago
Read 2 more answers
How do you open Microsoft Excel 2013 with Windows 8?
adell [148]
Go to the apps page. When you get there find the search bar, and once you find the search bar, click in it and type in Microsoft Excel 2013. The application will come, click on it and it will open. *Note:- This is only if you have already downloaded it on your computer/laptop, or if it came with your laptop/computer.*

Hope I helped ya!! xD
8 0
3 years ago
Write a program to prepare the monthly charge account statement for a customer of CS CARD International, a credit card company.
WITCHER [35]

Answer:

import java.util.*;

import java.text.*;

class CreditCardBill

{

public static void main(String[] args)

{

Scanner sc = new Scanner(System.in);

NumberFormat defaultFormat = NumberFormat.getCurrencyInstance(Locale.US);

System.out.println("CS Card International Statement");

System.out.println("===============================");

System.out.print("Previous Balance: $");

double prevBalance = sc.nextDouble();

System.out.print("Additional Charges: $");

double addCharges = sc.nextDouble();

double interest;

if(prevBalance == 0)

interest = 0;

else

interest = (prevBalance + addCharges) * 0.02;

System.out.println("Interest: "+defaultFormat.format(interest));

double newBalance = prevBalance + addCharges + interest;

System.out.println("New Balance: "+defaultFormat.format(newBalance));

double minPayment;

if(newBalance < 50)

minPayment = newBalance;

else if(newBalance <= 300)

minPayment = 50.00;

else

minPayment = newBalance * 0.2;

System.out.println("Minimum Payment: "+defaultFormat.format(minPayment));

}

}

5 0
3 years ago
Nancy is working on a spreadsheet in excel on a Microsoft windows system. Which statements are true about the software she is us
valkas [14]

Answer:

The explanation of this question is given below in explanation section. however, the correct answer is C.

Explanation:

A. Microsoft windows is an example of system utility software (Incorrect). Microsoft windows is an example of system utitilty software. But the Nancy is using spreadsheat in excel software that is example of application software.  

B. Besides system utilities, the only other type of software is application software (incorrect). It is right that besides system utlilites, the only other type of software is application software.But this option does not match and make sense about Nancy working on the software.

C. Spreadsheet software, such as excel, is an example of application software (correct). Because, Microsoft Excel (that is spreadsheet software) is an example of application software.

D. Application software control and interact directly with computer hardware (incorrect). Because, driver that are example of utilities software, directly control and interact with hardware. So, this option is incorrect. Excel is an example of application software and application software does not directly control and interact with software.

5 0
3 years ago
How do you return a value from a function?
rjkz [21]

Answer:

return instruction used to return a value from a function.

Explanation:

Function is a block of statement which perform the special task.

Syntax for define a function:

type name(parameter_1, parameter_2,...)

{

  statement;

return variable;

}

In the syntax, type define the return type of the function. It can be int, float, double and also array as well. Function can return the array as well.

return is the instruction which is used to return the value or can use as a termination of function.

For return the value, we can use variable name which store the value or use direct value.

4 0
3 years ago
Other questions:
  • 3. What do you need to do before you can sort and filter data in a database?
    9·1 answer
  • Slmething about device for defrosting windscreen?
    5·1 answer
  • What statement would you use to print the phrase Hello, world and then start a new line?
    8·1 answer
  • How can a PowerPoint user add a shadow to a table
    12·1 answer
  • Which type of microphone uses two metal plates?
    7·1 answer
  • The OSI is a reference system that is used by most types of technicians EXCEPT _____.
    11·2 answers
  • #Write a function called 'string_type' which accepts one #string argument and determines what type of string it is. # # - If the
    8·1 answer
  • Subscribe to Markiplier
    15·2 answers
  • What does a class do?
    10·1 answer
  • During the POST process, the BIOS uses two (2) different ways to notify you of a problem, Error beep codes and error messages, e
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!