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 correct answer to the following question will be "Instruction set architecture".
Explanation:
The Instruction Series Design is a component of the system that is accessible to the compiler and the programmer. It is also the distinction between hardware and software. We will describe in detail the set of instructions used in most of the microprocessors that are used today.
The processor ISA can be represented using 5 categories, these are as follows:
- The RAM Running Memory.
- Amount of clear operating names.
- Location of operands.
- Operations
- Size and type of the operand.
Therefore, Instruction set architecture is the right answer.
Answer:
1) A kiosk are small platforms that can be used for obtaining information and programming relate to entertainment, transportation, commerce, applications, and other areas. A kiosk is located in busy business areas. With Kiosks, one is able to get answers to important information such as service locations.
2) Enterprise computing is the use of information technologies and computing in organizational setting. Enterprise computing provides improved data security
3) Natural language processing is the artificial intelligence concept that deals with the interaction between man and computer by use of natural language. With natural language processing, it is possible to interact with artificial intelligence application in the same manner we interact with a real person
4) Robotics is concerned with the design construction, and operation of robots. It involves the collaboration of computer science and engineering fields. Robotics provide 24 hours assistance including in inhuman conditions such as low oxygen
5) Virtual Reality (VR) is the creation of easily believable simulation of real life by means of computer technology. With virtual reality, one is able to practice practical trade skills in their living room
Explanation: