Answer:
print("TAXI FARE CALCULATOR\n")
beginning = float(input("Enter beginning odometer reading => "))
ending = float(input("Enter ending odometer reading => "))
distance = ending - beginning
fare = 1.50 * distance
print("You traveled a distance of %.1f" % distance + " miles. At $1.50 per mile, your fare is $ %.2f" % fare)
Explanation:
*The code is in Python.
Print the title
Ask the user to enter beginning and ending of the odometer reading. Calculate the distance by subtracting these values
Calculate the fare, multiply the distance by 1.50
Print the distance and fare in required format
Answer:
<em> Computer is known as data processor because it processes the data. First the data is inserted in the computer through input devices. After that, computer translate the data in its own language and then the computer takes action according to the instructions given to the computer</em>
Answer:
Explanation:
The program code is written as:
#include <iostream>
using namespace std;
int main() {
int num1,num2,flag=0,flag1=0,flag_val=0,temp1,temp2,f1,f2,f3,m1,m2;
cout<<"Enter First Number ";
cin>>num1;
cout<<"Enter Second Number ";
cin>>num2;
temp1=num1;
temp2=num2;
while(temp1>0)
{
f1=temp1%10;
temp1=temp1/10;
f2=temp1%10;
if(f1!=f2)
continue;
temp1=temp1/10;
f3=temp1%10;
if(f1==f2 && f2==f3)
{
flag=1;
flag_val=f1;
}
}
while(temp2>0)
{
m1=temp2%10;
temp2=temp2/10;
m2=temp2%10;
if (m1!=m2)
continue;
temp2=temp2/10;
if(m1==m2 && flag==1 && flag_val==m1)
{
flag1=1;
break;
}
}
if (flag1==1)
{
cout<<"Both Number Are Triple + Double";
}
else
{
cout<<"Both number Are not Triple +Double";
}
return 0;
}
OUTPUT:
Enter First Number = 3555761
Enter Second Number = 72559
Both numbers are Triple + DoublePress any key to continue .....
Answer:
I’m assuming it’s a phone
Explanation:
I think it might be 6 to 5 hours but probably a lot more time depending on the person or age. I am guessing, but I think it could really depend on the persons parents or how much they have to be on their own phone.