Answer:
def func1(x):
return (x-32)*(5/9)
def func2(x):
return (x/2.237)
def main():
x = ""
while x != "x":
choice = input("Enter 1 to convert Fahrenheit temperature to Celsius\n"
"Enter 2 to convert speed from miles per hour to meters per second: ")
if choice == "1":
temp = input("please enter temperature in farenheit: ")
print(func1(float(temp))," degrees celcius.")
elif choice == "2":
speed = input("please enter speed in miles per hour: ")
print(func2(float(speed))," meters per second")
else:
print("error... enter value again...")
x = input("enter x to exit, y to continue")
if __name__ == "__main__":
main()
Explanation:
two function are defines func1 for converting temperature from ferenheit to celcius and func2 to convert speed from miles per hour to meters per second.
Using the knowledge of pseudocodes it is possible to organize the stock of a store with the correct amount of blankets.
<h3>Writing the code in pseudocode we have:</h3>
<em>int blanket_info(30)</em>
<em>int blanket_disc,size_blanket,i,j;</em>
<em>for (i=0;i<n;i++){</em>
<em>insert the discription of every blanket (blanket_disc);</em>
<em>}</em>
<em>for(j=0;j<n;j++){</em>
<em>insert the size of blanket (size_blanket);</em>
<em>}</em>
<em>return arr [ ][ ];</em>
<em>int print_list()</em>
<em>end;,</em>
See more about pseudocode at brainly.com/question/13208346
#SPJ1
Answer:
import java.util.Scanner;
public class BarChart {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
//take input from user
System.out.println("Enter Score");
int score=sc.nextInt();
int count=score/10;
int i=1;
//print horizontal bar
//if you want to print vertical bar then simply change into print which is replace by println
while(i<=count)
{
System.out.print("*");
i++;
}
}
}
Explanation:
Answer:
they are right up there i just need the points
Explanation: