Answer:
Explanation:
Natural languages are used for communication between people and programming languages enable human to interact with machines.
In Python, assume that a file containing a series of integers is named numbers.txt and exist on the computer's disk. Write a program that reads the entire numbers store in the file and calculates their total.
Here is what I have written but it does not run:
def. main():
out file=open('numbers.txt','r')
temp=outfile.readline()
total=0
while temp!='':
t=int(temp)
total=total+i
temp=outfile.readline()
outfile.close()
print('Total sum is:',total)
main()
Text file is a file named numbers.txt with the numbers 1-50 in it
Learn more:
- The sum of three consecutive integers is 186. what are the integers
brainly.com/question/1768254
Keywords: python, integers, computer, numbers, program
Answer:
The algorithm for the conversion of temperature from Fahrenheit to Celsius is as follows:
Read the temperature given in degree Fahrenheit.
Convert the temperature in Fahrenheit into Celsius using the formula : C=5/9*(F-32)
Print the Fahrenheit and Celsius value of temperature.
End
Explanation:
The algorithm for the conversion of temperature from Fahrenheit to Celsius is as follows:
Read the temperature given in degree Fahrenheit.
Convert the temperature in Fahrenheit into Celsius using the formula : C=5/9*(F-32)
Print the Fahrenheit and Celsius value of temperature.
End
The code for the same is -
void main ( )
{
float a , b ;
cout<<" enter temperature in Fahrenhite : "<<endl;
cin>> b;
a = ( b - 32 ) * ( 5 / 9 ) ;
cout << " Fahrenheit = << b <<"Centigrade = " << a ;
}
In an online business, the buyers can't examine the product, their reviews are unpredictable, and there is also a threat of hackers attacking the website.
<h3>What is an online business?</h3>
Conducting an activity of selling products online with the help of internet is known as an online business. Apart from numerous benefits, it has some great disadvantages like,
- Threats of hacking and cyberattacks on the website.
- There may be bad reviews from the buyers if they are not satisfied with the product they purchased.
- The buyers don't have the accessibility of physical experience of the product before buying.
Hence, options A, C and D are the disadvantages of an online business.
Learn more about online business here:
brainly.com/question/27626484
#SPJ1
As i know,there is not any platform.Beacause when you control a device you need different computer codes (In order to adapt those environments,different devices have different environments) to drive the machine.If you are interested in this,i strongly suggest you to learn python . >.<