Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I really need help with my C++ program if you can help me and make it clear as possible thank you I just put what
I really need help with my C++ program if you can help me and make it clear as possible
thank you
I just put what the professer want
Correctly complete the following assignment. Follow all directions, especially note the format of the input and the format of the output. The final .cpp file and a separate output .txt text file (copied and pasted from the console screen) with the runs in the instructions should be submitted. Make sure the final .cpp file is submitted so I can see your code. Make sure the output .txt file is included with inputting the data on the instruction sheet so I can see your proper values and format for both input and output on all of the runs on the instruction sheet. Again, it is long with a lot of stream manipulators and library functions, but each section is basically prompt, input in the correct format (possibly with stream manipulators), process with library functions or stream manipulators, and output in the correct format. Use the notes, lab exercises, and cplusplus.com under Links to check all the library functions and stream manipulators. The program is a test to properly use stream manipultors and functions, so make sure to properly use them. The main part of the assignment is properly using stream manipulators and functions and showing the correct output with the included input. Any questions, let me know. Good Luck. Hint: Look up stream manipulators and library functions on cplusplus.com. Good Guides (even if they are not the same exact ones, some examples): 1-9 and 1-11 on stream manipulators, 2-1 and 2-2 on library functions, db2-2 on looking up stream manipulators and library functions. Write a program that will demonstrate some of the C++ Library Functions, Stream Manipulators, and Selection Control Structures. The user will be given a menu of four choices. They can input a 1 for finding Cosines, 2 for finding Logarithms, 3 for converting between Decimal and Hexadecimal, or 4 to Exit the program. You must use the proper functions and/or stream manipulators to find the answers. 1. If the user picks the cosine, ask them if they want to find the cosine, arc cosine, or hyperbolic cosine. Then input a floating point number (in radians) and find and print to three decimal places the proper type of cosine. 2. If the user picks the logarithms, ask them if they want to find the common logarithm or the natural logarithm. Then input a floating point number and find and print to three decimal places and a plus or minus sign (for positive or negative numbers) the proper type of logarithm. 3. If the user picks the conversion, ask them if they want to convert decimal to hexadecimal or hexadecimal to decimal. If they pick decimal to hexadecimal, ask them if they want to use lowercase or uppercase letters in the printing of the hexadecimal number. Use boolean input, so input the answer as true or false and put the user's answer in a boolean alphabetic variable. Then input a whole number in the proper base. Print the inputted number in the user's base and in the converted base. Use the prefix for printing the hexadecimal numbers. 4. If the user picks the exit, use the actual exit function to end the program If you want to use a loop in the program for multiple runs that is fine, but you can write it so it does one thing per run if you wish. Run your program with all of the following sets of data, showing all possibilities work correctly. Submit your .cpp main program and the output txt saved (copy \& paste from console) into a plain text file. Include in the program a full paragraph of documentation (at least 4 lines). Supply extra documentation (at least 5 comments) throughout for all of the not easily understandable lines of code (especially on how you used the library functions or stream manipulators). Cosine of .87 Arc Cosine of .87 Hyperbolic Cosine of .87 Common Logarithm of 33 Natural Logarithm of 33 Decimal 93 to Hexadecimal with true Lower Case Decimal 93 to Hexadecimal with false Lower Case - Upper Case Hexadecimal 5d to Decimal ExitStep 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