Answer:
Following are the C++ code
int speed=20; // Store 20 in the speed varaible.
int time=10; //Store 10 in the time variable.
int distance = speed *time; // multiply by speed *time
cout<<distance; // display the value of distance
Explanation:
Following are the program in C++ language :
#include <iostream> // header file
using namespace std; // namespace
int main()
{
int speed=20; // Store 20 in the speed varaible.
int time=10; //Store 10 in the time variable.
int distance = speed *time; // multiply by speed *time
cout<<distance; // display the value of distance
return 0;
}
Output:20
Explanation:
Following are explanation of following code
- Declared a vaiable of type int called "speed" and store 20 on it.
- Declared a vaiable of type int called "time" and store 10 on it.
- multiply by speed into the time and store into the distance variable.
- finally print the "display" value
Answer:
\, /, -
Explanation:
The three symbols are forward slash, backward slash, and the hyphen. These were allowed in previous versions of the MS Word. However, since the MS Word 2016 and a little earlier, these three symbols have been banned. And you will immediately get a message if you use these, to correct, and only then the file will be saved with that new name, and that must not have the forward or backward slash or the hyphen.
Solution:
three reasons you might use hwinfo when troubleshooting and upgrading a computer are as follows:
1) If we want to identify a hardware component with out opening the case.
2. if we want identify Features of a motherboard, video card, or processor.
3. establish benchmarks for the components in
Answer:
float(distance) / speed
Explanation:
Given the variable <em>distance</em> and <em>speed</em> in a program that hold a integer value respectively. We can perform the division between the two variable using / operator. Since both distance and speed are integers, we need to convert one of them to float type to perform the floating point arithmetic. Otherwise the division output will be rounded up to the nearest integer which is not a desired result.