Question

C++ Questions Please answer quickly!

1.

You need to write a program that uses the speed of light in a vacuum (299792458 meters per second) Realizing that this is a v

Please use this info to answer next questions ->

Question 7 2 pts After learning more about the problem in the previous question, you decided to use a double to store the spe

2. Please give reasoning

Given these constants: const int FIRST_STAGE_MILEAGE 50000; const int CARBON MONOXIDE 1; const int HYDROCARBON 2; const int N

4. Explain why, I think it is 4 but i also think it might be 0.

How many times will the body of this loop execute? int num = 4; while (num< 0) cout << num <<endl; num-1; num 4

0 0
Add a comment Improve this question Transcribed image text
Answer #1

If you have any doubts, please give me comment...

1)

CONST double SPEED_OF_LIGHT = 299792458;

2)

HYDROCARBON_ALLOWED1 = 0.31;

HYDROCARBON_ALLOWED2 = 0.5;

odometer = 12345

getAllowableLevel(0.31, 0.5, 12345);

3)

Answer: 4

while(4<0): true ---> 1

while(3<0): true ---> 2

while(2<0): true ---> 3

while(1<0): true ---> 4

while(0<0): false

Add a comment
Know the answer?
Add Answer to:
C++ Questions Please answer quickly! 1. Please use this info to answer next questions -> 2. Please give reasoning 4. Explain why, I think it is 4 but i also think it might be 0. You need to wri...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT