answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Tanzania [10]
2 years ago
5

Choose the best data type for each of the following so that any reasonable value is accommodated but no memory storage is wasted

. Give an example of a typical value that would be held by the variable, and explain why you chose the type you did.
a. the number of siblings you have

b. your final grade in this class

c. the population of Earth

d. the population of a U.S. county

e. the number of passengers on a bus

f. one player's score in a Scrabble game

g. one team's score in a Major League Baseball game

h. the year an historical event occurred

i. the number of legs on an animal

j. the price of an automobile
Engineering
1 answer:
stiks02 [169]2 years ago
3 0

Answer:

Explanation:

Part (a):

Statement : The number of siblings you have

Suitable Data type : Byte

Typical Value : From -128 and up to 127

Explanation: Byte data type is the most suitable since it can covers minimum and maximum number of siblings one can have.

Part (b):

Statement : Your final grade in this class

Suitable Data type : Char

Typical Value : 1 byte

Explanation: Grades is in the form of alphabetical letter which is either A, B, C, D, F or E which can be stored in character data type.

Part (c):

Statement : Population of Earth

Suitable Data type : Long

Maximum Value : 9223372036854775807

Explanation: Long Data takes up to 8 bytes and can store up to 9223372036854775807 which can cater for more than 36 billion. The population of earth is only around 7 billion currently making Long data type the most suitable data type to store earth population.

Part (d):

Statement : Population of US Country

Suitable Data type : Integer

Typical Value :2147483647

Explanation: Integer data type takes up to 4 bytes and can store up to  2147483647 making it suitable to store U.S population.

Part (e):

Statement : The number of passengers on bus

Suitable Data type : Byte

Typical Value :From -128 up to 127

Explanation: The typical maximum number of passengers of a bus are only around 72. Byte data type is the most suitable since it can cater the number up to 127.

Part (f):

Statement : Player's score in a Scrabble game

Suitable Data type : Short

Typical Value : 32767

Explanation: The maximum point can be scored in the Scrabble game is only 830 therefore the most suitable data type for this case is the short data type.

Part (g):

Statement : One team's score in a Major League Baseball game

Suitable Data type : Byte

Typical Value : From -128 up to 127

Explanation: The maximum point can be scored in the Base ball game is only 49 therefore the most suitable data type for this case is the Byte data type since it can cater up to 127.

Part (h):

Statement : The year an historical event occurred

Suitable Data type : Short

Maximum Value: 32767

Explanation: The historic event year can be any number from 1 to 2020 therefore the most suitable data type is the short data type.

Part (i):

Statement : The number of legs on an animal

Suitable Data type : Short

Maximum Value: 32767

Explanation: The most number of legs found are 750 legs therefore the most suitable data type is the short data type which can cater up to 32767.

Part (j):

Statement : The Price of an automobile

Suitable Data type : Float

Maximum Value: 340282350

Explanation: The most expensive car is around 15 million therefore the most suitable data type is the float data type which can cater up to 340 million.  

You might be interested in
Water at 200C flows through a pipe of 10 mm diameter pipe at 1 m/s. Is the flow Turbulent ? a. Yes b. No
Degger [83]

Answer:

Yes, the flow is turbulent.

Explanation:

Reynolds number gives the nature of flow. If he Reynolds number is less than 2000 then the flow is laminar else turbulent.

Given:

Diameter of pipe is 10mm.

Velocity of the pipe is 1m/s.

Temperature of water is 200°C.

The kinematic viscosity at temperature 200°C is 1.557\times10^{-7}m2/s.

Calculation:

Step1

Expression for Reynolds number is given as follows:

Re=\frac{vd}{\nu}

Here, v is velocity, \nu is kinematic viscosity, d is diameter and Re is Reynolds number.

Substitute the values in the above equation as follows:

Re=\frac{vd}{\nu}

Re=\frac{1\times(10mm)(\frac{1m}{1000mm})}{1.557\times10^{-7}}

Re=64226.07579

Thus, the Reynolds number is 64226.07579. This is greater than 2000.

Hence, the given flow is turbulent flow.

5 0
2 years ago
3/63 A 2‐kg sphere S is being moved in a vertical plane by a robotic arm. When the angle θ is 30°, the angular velocity of the a
miss Akunina [59]

Answer:

Ps=19.62N

Explanation:

The detailed explanation of answer is given in attached files.

5 0
2 years ago
A double-acting duplex pump with 6.5-in. liners, 2.5-in. rods, and 18-in. strokes was operated at 3,000 psig and 20 cycles/min.
Stella [2.4K]

Answer:

Pump factor = Fp =  7.854 gal/cycle

Ev = 82.00 %

P_H = 183.29 hp

Explanation:

Given data:

Dimension of duplex pump

6.5 inch liner  

2.5 inch rod

18 inch strokes

Pressure 3000 psig

Pit dimension

7 ft wide

20 ft long

Ls = 18 inch

Velocity = (18)/10

volumetric efficiency is given as E_v = (Actual flow rate)/(Theortical flow rate) * 100

we know that flow rate is given as = Area * velocity

Theoritical flow rate = \frac{\pi}{2}\times Ls(2d_l^2 - d_r^2)\times N

Ev = \frac{7\times 12 \times 20\times 12\times 12 \times \frac{18}{10} inch^3/min}{\frac{\pi}{2} \times 18 (2\times 6.5^2 -2.5^2) \times 20}

Ev = 82.00 %

Pump factor Fp = = \frac{\pi}{2}\times Ls(2d_l^2 - d_r^2)\times Ev

Fp =\frac{\pi}{2} \times 18 (2\times 6.5^2 -2.5^2) \times 0.82

Fp = 1814.22 in^3/cyl

Fp =  7.854 gal/cycle

Flow rate q = NFp = 20 \times 7.854 = 157.08 gal/min

Power Ph = \frac{\DeltaP q}{1714} = \frac{3000 \times 157.08}{1714} = 274.93 hp

6 0
2 years ago
Consider film condensation on a vertical plate. Will the heat flux be higher at the top or at the bottom of the plate? Why?
STALIN [3.7K]

Answer:

During film condensation on a vertical plate, heat flux at the top will be higher since the thickness of the film at the top, and thus its thermal resistance, is lower.

Explanation:

https://www.docsity.com/pt/cengel-solution-heat-and-mass-transfer-2th-ed-heat-chap10-034/4868218/

https://arc.aiaa.org/doi/pdf/10.2514/1.43136

https://arxiv.org/ftp/arxiv/papers/1402/1402.5018.pdf

8 0
2 years ago
An overpass is being built over the PVI of an existing equal-tangent sag curve. The sag curve has a 70 mi/h design speed and G1=
vivado [14]

Answer: Resultant elevation will be 30.98 ft

8 0
2 years ago
Other questions:
  • The pressure at any point in a static fluid depends only on the Select one a)- depth, surface pressure, and specific weight. b)-
    11·1 answer
  • The basic barometer can be used to measure the height of a building. If the barometric readings at the top and the bottom of a b
    15·1 answer
  • Air in tankBis at 200 kPa, 280 K and mass 1 kg. It is connected to an empty piston/cylinder with a float pressure of 400 kPa sim
    6·1 answer
  • A desktop computer is to be cooled by a fan whose flow rate is 0.34 m3/min. Determine the mass flow rate of air through the fan
    12·1 answer
  • Python Homework
    12·1 answer
  • Madison and Oxford are the same distance from the equator and they are both near the ocean. Use the information on the map to an
    11·1 answer
  • A glycerin pump is powered by a 5-kW electric motor. The pressure differential between the outlet and the inlet of the pump at f
    13·1 answer
  • Anytime scaffolds are assembled or __________, a competent person must oversee the operation.
    15·2 answers
  • Interlocking stacked material is done by​ _____.
    10·2 answers
  • What are practical considerations you might encounter when you increase the moment of inertia (I) while keeping the cross-sectio
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!