Question: Please help me in both questions.They are inC++ language 4) (8 points) Data types: For each of the following, list the data type that would
Please help me in both questions.They are inC++ language


4) (8 points) Data types: For each of the following, list the data type that would be most appropriate and efficient to use to store the information. Choose from: short int, int (same as long int), long long int, float, and double. Also include unsigned if appropriate. a. (2 points) The weight of a ball bearing to the nearest tenth of a gram. b. (2 points) The number of employees in a standard office building. c. (2 points) The temperature, in Celsius, to many, many significant digits. d. (2 points) The number of ants in Santa Clara County (over 100 trillion) 6) (15 points) Type coercion and Type Casting: a. Predict the output of the following lines of code. cout (5.3) * 3 (answer2)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
