The answer is B, sorry if I’m wrong
#1 answer:X=-18
Mdkdkkdkdkdkkdkdkdk
Answer:
#include <bits/stdc++.h>
using namespace std;
// driver function
int main()
{
// variables
const double g = 9.8;
int sec;
double height;
int t = 0;
double d = 0;
bool flag = false;
// ask to enter time
cout << "Please enter the time of fall(in seconds):";
// read time
cin >> sec;
//ask to enter height
cout << "Please enter the height (in meters):";
//read height
cin >> height;
cout << '\n'
<< "Time(seconds) Distance(meters)\n"
"********************************\n";
// calculate height after each seconds
while ( t <= sec) {
cout << setw(23) << left << t
<< setw(24) << left << d << '\n';
// if input height is less
if ( d > height ) {
flag = true;
}
// increament the time
t += 1;
// find distance
d = 0.5 * g * (t) * (t);
}
cout << '\n';
// if input height is less then print the Warning
if ( flag ) {
cout << "Warning - Bad Data: The distance fallen exceeds the height"
" of the bridge.\n";
}
return 0;
}
Explanation:
Read the time in seconds from user and assign it to "sec" then read height and assign it to "height".After this find the distance after each second.If the input height is less than the distance at any second, it will print a Warning message. otherwise it will print the distance after each second.
Output:
Please enter the time of fall(in seconds):11
Please enter the height (in meters):1111
Time(seconds) Distance(meters)
********************************
0 0
1 4.9
2 19.6
3 44.1
4 78.4
5 122.5
6 176.4
7 240.1
8 313.6
9 396.9
10 490
11 592.9
Answer:
The title tag is an HTML title element critical to both SEO and user experience that is used to briefly and accurately describes the topic and theme of an online document. The title tag is displayed in two key places: Internet Browser – Title Tags display in the top bar of internet browsers.
Answer:
Code below
Explanation:
n = int(input('Please enter n: '))#take input n
print('please enter the numbers')#print enter the numbers
total = 0 #intially take total as 0
original_total = 1 #intially take original_total=1
for i in range(2, n+1): #take the range 2 to n+1
total += int(input('Please enter a number: ')) # add total and enter the number
original_total += i
missing = original_total - total #you got missing number original_total - total
print('The missing number is: ' + str(missing)) # print missing number in the given data