Question: Instructions: Write a complete C++ program that will allow the user to convert a sequence of floating point numbers into hexadecimall numbers. The hexadecimal number

 Instructions: Write a complete C++ program that will allow the user
to convert a sequence of floating point numbers into hexadecimall numbers. The

Instructions: Write a complete C++ program that will allow the user to convert a sequence of floating point numbers into hexadecimall numbers. The hexadecimal number will be stored in a vector of characters System Requirements: 1. The main function will use a loop to do the following: Input a floating point number from the console screen. Call a function entitled Float To Hex. This function will take a floating point number in as a parameter The function will return a vector of characters. This vector will contain the characters that make up the hex number. Example: 757.25->'2' 'F 5 4 Call the function: Display 1D Vector. This function will take in a vector of characters as a parameter. The function will output every character that exists in the vector. a. b. c. Note: The main function's loop will end when the user does not input a Y or y to indicate that they want to continue. You can assume that the user will always input valid floating point numbers to convert. 2. The Float To Hex function should work for any valid non-negative floating point number. Each element of the vector that is returned will contain either a " or exactly 1 digit in the hex number. If there are no significant digits to the right of the decimal place, the rightmost digit will contain a 'o A sample run exists on the following page: Input a floating point number: 18.26 Hexadecimal Equivalent: 12. 428F6 Do you want to continue (Y/y)? y Input a floating point number: 757.25 Hexadecimal Equivalent: 2F5. 4 Do you want to continue (Y/y)? y Input a floating point number: 123. 17 Hexadecimal Equivalent 7B.2B85 Do you want to continue (Y/y)? Y Input a floating point number: 16 Hexadecimal Equivalent 10.0 Do you want to contue (Y/y)? N Press any key to cont i nue

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!