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
Get Answers For Free
Most questions answered within 1 hours.