Question

What would have happened if we made the ticket prices double vs integer in your movie...

What would have happened if we made the ticket prices double vs integer in your movie programming assignment?
Did you use getline in your movie program assignment? And if so, why? And if not, why?
Why did we use setw in the movie program assignment?
What does underflow and overflow mean? (page 102)
What is type casting (page 103) and why is it used incorrectly in the following code?

Homework Answers

Answer #1

Answer 1:
if we use double for prices than we will loss any data if it has
decimal part
if we use integer than we will miss the decimal part
Answer 2:
Yes I have used because my input has white spaces while reading
Answer 3:
to put the spaces in the output
Answer 4:
overflow means when we are storing the larger value in less size

underflow means smaller value that computer can represent

Answer 5: when we want to convert to data from one data type
to another data type
here we used to convert int to data for divison operation

NOTE : PLEASE COMMENT BELOW IF YOU HAVE CONCERNS.
I AM HERE TO HELP YOUIF YOU LIKE MY ANSWER PLEASE RATE AND HELP ME IT IS VERY IMP FOR ME

Know the answer?
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
Similar Questions
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT