subject

Create program and prompt me to enter a dollar amount between 0 and 999.99999 as a C-string or X to exit. Loop unit I enter X to exit. Use a C-string for the input amount and related method processing. Review section 10.4. This implies you will have the following:#include #include may be needed in Visual Studio, but still use C-String functions. Create a method that will use the functions described in Chapter 10. It is OK to use a globally defined char array. You must call this method to produce the formatted results. The program must modify or build a C-String in this format. Display the C-String created.1. Include leading $ sign.2. Must have a single decimal point with 2 digits after the decimal. If the amount had extra digits, then the result is a truncated value. 100.99 = $100.99 150.00999 = $150.00 50 = $50.00 48.1 = $48.10This program is not simple. This exercise will help you understand some of the limitations of C-Strings. Do not process as string and then convert to C-String.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 03:50
Iam a bacterium. i cause stomach cramps and diarrhea. i am caused by eating rotten foodssuch as chicken, fish, or eggs. sometimes turtles carry my bacteria.what am i?
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
Best laptops for college [$100-$500 range]?
Answers: 2
question
Computers and Technology, 24.06.2019 00:40
What is the error in the following pseudocode? module main() call raisetopower(2, 1.5) end module module raisetopower(real value, integer power) declare real result set result = value^power display result end module
Answers: 1
question
Computers and Technology, 24.06.2019 08:00
Can someone work out the answer as it comes up in one of my computer science exams and i don't understand the cryptovariables
Answers: 1
You know the right answer?
Create program and prompt me to enter a dollar amount between 0 and 999.99999 as a C-string or X to...
Questions
question
Mathematics, 01.06.2020 17:57
Questions on the website: 13722362