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;
}
If you build a cellphone tower without proper building permits and equipment without permission from local government than it would be illegal
Answer:
% is a modulus operator in most languages, returning the remainder when the preceding number is divided by the following one . Assuming the language this question pertains to is one of those, then the answer is 3.
Answer:
See explaination
Explanation:
def readFileFirstLast(filename):
# doc string
''' Function accept the filename and opens the fle
and reads all lines and strips new line character and
stores first and last in a string and return that string'''
#eception handle if file not found
try:
#opening the file
f = open(filename)
#reading the first line and striping the ne line
string = f.readline().strip()
#iterating until last line
for line in f:
pass
#concate the last line after strip the new line character to the string
string = string + " " + line.strip()
#return the string
return string
except:
#if file not found
return "File not found"
#taking the file name from user
filename = input("Enter a file name: ")
#printing the doc string in function
print("\ndoc_sting: \n"+ readFileFirstLast.__doc__+"\n")
#printing the returned string by calling the readFileFirstLast()
print("output string :")
print(readFileFirstLast(filename))