Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please answer number 10 only 10! its C++ Week 3 homework Answer each of the following questions. Make sure to include time and date code
please answer number 10 only 10!
Week 3 homework Answer each of the following questions. Make sure to include time and date code (see Illustration 2 arrows) in your programs so it can be seen when reviewed. 1. Which operator do you use to read into a variable? Text 2. If you want the user to input an integer value into your program for a variable named number, what are two lines of code you could write to ask the user to do it and to input the value into your program 3. What terminates input into an integer? 4. What terminates input into a string? 5. What is an object? 6. What is a variable? 7. What is an initialization and how does it differ from an assignment? 8. Write a console program in C that converts from miles to kilometers. Your program should have a reasonable prompt for the user to enter a number of miles and print result. Illustration 2 You have to find the conversion factor. Include a listing of the code and a screen shot of the console with the program results, 9. Write a similar program that calls a function to convert HWSCOP miles to kilometers. Include a listing of the code and a Enter 1 Rile 172 screen shot of the console with the program results. Today is Sun May 71.54 2017 10. Write a similar program that calls a function to change a proces preuredo (0) cation time 19.12. variable value from miles to kilometers. Include a listing of the code and a screen shot of the console with the program results. Illustration 1: Question 8 Output Make sure your listings include a printout of Date and Time ... include the following lines of code in your solutions: ENTER include contra include actie define Conversion 777 Un espace std: int saint ed Titt-time NULL) ottime and date double kilometers, Miles coat center leges can Miles Kilometers - Miles Conversion Coute Rege icoties becomes Kilometers later and Coute "Today is ctisit endl; return 2299 Illustration 7-stion & cover its C++
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started