Answer:
//Convert any decimal number to binary number
//Program is written in C++ Programming Language
// Comments are used for explanatory purpose
// Program starts here
#include <iostream>
using namespace std;
// Main Method declared here
int main()
{
int x;
cout<<"Enter any integer number: ";
cin>>x;
DecBin(x);
return 0;
}
// Here a function named DecBin is declared along with an integer variable, x
void DecBin(int x)
{
// Declare an array to store the resulting binary digits
int bindigit[32];
// counter for binary array
int kount = 0;
while (x > 0) {
// Store the remainder of each division in the declared array
bindigit[kount] = x % 2;
x = x / 2;
kount++;
}
// Loop to print the binary digits in reverse order
for (int j = i - 1; j >= 0; j--)
{
cout << bindigit[j];
}
}
// End of Program
Answer:
Phone, Eating, People in the car
Explanation:
your phone should always be off while driving and put away. Eating much like texting takes your attention away from the road so you should wait till you're parked or home to eat. People thrashing around or talking very loudly can be a terrible distraction. Ask them nicely to quiet down so you can focus on the road.
It depends on the type of weather and on the type of construction but I would say False
Let me know if it’s correct
Have a great day :)
Answer: You're question is very vague... be more specific in the problem, what is it asking you to do?
Explanation: This shouldn't be under "Engineering" you should put it under "Mathematics" for a better result. Sorry for the mix up! Hope this helps! ^^