Answer:
Do heavier cars really use more gasoline? Suppose a car is chosen at random. Let x be the weight of the car (in hundreds of pounds), and let y be the miles per gallon (mpg)
Explanation:
The answer & explanation for this question is given in the attachment below.
Answer:
Cautionary tales about AI were all over Sundance screens this year, and not as sci-fi flights of fancy The Social Dilemma and Coded Bias
Explanation:
Answer:
P= 5.5 bar
Explanation:
Given that
L= 4000 m
d= 0.2 m
Friction factor(F) = 0.01
speed V= 2 m/s
Head = 5 m
Head loss due to friction



So the total head(H) = 5 + 40.77 + 10.3 =56.07
Where 10.3 m is the atmospheric head.
We know that
P=ρ g H
So total Pressure
P= 1000 x 9.81 x 56.07 Pa

P= 5.5 bar
Answer:
#include <iostream>
#include <string>
using namespace std;
bool isPalindrome(string str)
{
int length = str.length();
for (int i = 0; i < length / 2; i++)
{
if (tolower(str[i]) != tolower(str[length - 1 - i]))
return false;
}
return true;
}
int main()
{
string s[6] = {"madam", "abba", "22", "67876", "444244", "trymeuemyrt"};
int i;
for(i=0; i<6; i++)
{
//Testing function
if(isPalindrome(s[i]))
{
cout << "\n " << s[i] << " is a palindrome... \n";
}
else
{
cout << "\n " << s[i] << " is not a palindrome... \n";
}
}
return 0;
}