1answer.
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]
3 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]3 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
A crankcase heater is often used to prevent refrigerant from mixing with compressor oil during periods of:
stira [4]

Answer:

Low ambient temperature

Explanation:

Hope this helps. If it did, please mark as brianliest so other people see it. Thanks! - Kai

5 0
2 years ago
Read 2 more answers
You installed a new 40 gallon water heater with a 54,000 BTUh burner. The underground water temperature coming into the house is
kipiarov [429]
14256000. Kanjiuijhgg
5 0
3 years ago
Read 2 more answers
N DevOps, high levels of automation are expected, which increases productivity. Which fact illustrates this productivity increas
Bess [88]

Answer:

Less intervention of humans.

Explanation:

This fact illustrate that less intervention of human in the production is the main cause for increase in productivity because use of machinery completed the work in less time as compared to the use of human labour. In many industries, machines takes the place of humans which increases the production of products but at the same time, increase the unemployment rate in the society. Making the whole industry on automation can increase the productivity of products in less time.

3 0
3 years ago
The domain of discourse is the members of a chess club. The predicate B(x, y) means that person x has beaten person y at some po
satela [25.4K]

Answer:A. No one has ever beat Nancy.

Explanation:

The dormain of discourse in a simple language is the set of entities upon which our discussions are based when discussing about something.

The dormain of discourse is also known simply as universe, can also be said to be a set of entities o

upon which certain variables of interest in some formal treatment may range.

The dormain of discourse is generally attributed to Augustus De Morgan, it was also extensively used by George Boole in his Laws of Thought.

THE LOGICAL UNDERSTANDING OF THE THE QUESTION IS THAT NO ONE HAS EVER BEAT NANCY.

8 0
3 years ago
Many households in developing countries prepare food over indoor cook stoves with no ducting system to exhaust the combustion pr
lorasvet [3.4K]

Answer:

   C = 0.22857 ng / m³

Explanation:

Let's solve this problem for part the total time in the kitchen is

          t = 2h (60 min / 1h) = 120 min

The concentration (C) quantity of benzol pyrene is the initial quantity plus the quantity generated per area minus the quantity eliminated by the air flow. The amount removed can be calculated assuming that an amount of extra air that must be filled with the pollutant

amount generated

         C = co + time_generation rate / (area_house + area_flow)

         C = 0.2 + 0.01 120 / (40+ 2)

         C = 0.22857 ng / m³

7 0
3 years ago
Other questions:
  • The 30-kg gear is subjected to a force of P=(20t)N where t is in seconds. Determine the angular velocity of the gear at t=4s sta
    9·1 answer
  • a valueable preserved biological specimen is weighed by suspeding it from a spring scale. it weighs 0.45 N when it is suspendedi
    11·1 answer
  • If superheated water vapor at 30 MPa iscooled at ​constant pressure​, it will eventually become saturated vapor, and with suffic
    5·1 answer
  • Chemical materials that are transported are called..
    8·1 answer
  • Help Please!!!!!!!<br><br> Whatever3443<br> Please help!
    9·2 answers
  • Write what you already know about college majors. What are they? Can you think of any examples? When do you have to pick one? Ca
    10·2 answers
  • 30 points have a good day
    11·1 answer
  • Set the leak rate to zero and choose a non-zero value for the proportional feedback gain.Restart the simulation and turn on the
    5·1 answer
  • 1)
    13·1 answer
  • Technician A says that synthetic blend oil has the same service life as that of full synthetic oils. Technician B says that conv
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!