Answer:
See Explaination
Explanation:
#include <stdio.h>
MphAndMinutesToMiles()
{
double milesPerHour;
double minutesTraveled;
double hoursTraveled;
double milesTraveled;
scanf("%lf", &milesPerHour);
scanf("%lf", &minutesTraveled);
hoursTraveled = minutesTraveled / 60.0;
milesTraveled = hoursTraveled * milesPerHour;
printf("Miles: %lf\n", milesTraveled);
}
int main()
{
MphAndMinutesToMiles();
return 0;
}
Answer:
None
Explanation:
Logical operators:
'and' indicates that the statement is true if both conditions are true.
'or' indicates that the statement is true if one or both conditions are true.
Given that a = 1 and b = 10:
The first statement is false (1×10 <= 1 is false, 1 >= 10 is also false)
The second statement is false (1>10 is false, a does not equal b)
The third statement is false (a does not equal b)
None of these statements are true.
Hope this helps :)
Answer: <u>EXE files are mainly used to indicate that the file is executable</u>
<u>MSI files show that the file is a Windows Installer</u>
<u />
Explanation:
EXE files are mainly used to indicate that the file is executable
MSI files show that the file is a Windows Installer
<u>MSI files are only used with launchers, EXE does not need to be used with launchers </u>
Hope this helped :)
A Python program that can convert a Fahrenheit temperature to Celsius, or vice versa. The program should use two custom functions, f_to_c and c_to_f, to perform the conversions.
Explanation:
- Functions should be defined in a custom module named temps. Custom function c_to_f should be a void function defined to take a Celsius temperature as a parameter.
- It should calculate and print the equivalent Fahrenheit temperature accurate to three decimal places.
- Custom function f_to_c should be a value-returning function defined to take a Fahrenheit temperature as a parameter.
- This function should calculate the equivalent Celsius temperature and return it.
The code is given below :
def c_to_f(tempCelsius):
tempFahrenheit = ((9/5)*tempCelsius) + 32;
print("\n %.3f Celsius is %.3f Fahrenheit \n" %(tempCelsius, tempFahrenheit));
def f_to_c(tempFahrenheit):
tempCelsius = (tempFahrenheit - 32) * (5/9);
return tempCelsius;
(Import modules)
import temps;
def main():
temperature = float(input("\n Enter a temperature: "));
scale = input("\n Was that input Fahrenheit or Celsius c/f? ");
if scale.lower() == 'c':
temps.c_to_f(temperature);
else:
tempCel = temps.f_to_c(temperature);
print("\n %.1f Fahrenheit equals %.3f Celsius \n" %(temperature, tempCel));
main();
3
thank me later :))))))))