Question

Data Types Selecting the correct data type for your application is critical - Please select at le...

Data Types

Selecting the correct data type for your application is critical - Please select at least two different data types and offer a description of the data type in your own words and offer an example of how/why you would use the selected data type.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The data types I would choose are INT and FLOAT

INT - As the name suggest INT stands for integers, and it is used to store integer values in a computer. The size of the INT varies typically from 16-31 bits depending on the compiler being used. The format of storing an integer is extremely simple. It consists of one bit to decide the sign and the others to decide the value.

An example of using this data type is to save the number of students in class. Different classes in a school would have a different number of students but the number would always be an integer.

FLOAT - FLOAT is a data type used to save decimal number. INT can only save whole numbers, while FLOAT can save any real number. It might be misleading to think that INT is a subset of FLOAT, and INT isnt required as FLOAT can complete all the work that INT does. This is because of two major reasons. FLOAT occupies a space of around 32-64 bits in computer, a large chunk of memory is allocated every time a FLOAT is used. Also the FLOAT structure , apart from the sign bit , includes an exponent and fractional bits too which make its processing slower, compared to the simpler INT structure. FLOAT should only be used in places where decimal precision is required.

An example of using this data type would be to save numbers that are the outputs of mathematical operations like division, multiplication etc. While saving the price of a book in a book store, the decimal is gonna matter a lot, since the error would be multiplied across all the books sold.

Add a comment
Know the answer?
Add Answer to:
Data Types Selecting the correct data type for your application is critical - Please select at le...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Psychology research 4 types Short Answer Question Please answer the questions below according to this template....

    Psychology research 4 types Short Answer Question Please answer the questions below according to this template. I understand it can be difficult to put definitions in your own words; because of this, you are welcome to copy and paste the definitions only for the definition sections. In fact, please do so. However, each example must be at least two sentences long, and needs be in your own words. Naturally, Turnitin should show that the examples you provide are not copied...

  • In your own words, describe the four different types of social support and provide an example...

    In your own words, describe the four different types of social support and provide an example of each type as it relates to a health behavior. Describe the differences between perceived and actual social support and include a discussion about which is more important and why. Make sure to support your ideas with at least two reputable references that follow APA format hun

  • The first step in selecting a Shewhart chart is to determine the type of data you are collecting....

    The first step in selecting a Shewhart chart is to determine the type of data you are collecting. For this discussion, identify and discuss the 2 types of data that can be used with this type of chart. What are some examples of each type? Be sure to discuss the subdivision of each type. Based upon your response to these questions, why is this step so important? What would happen if you skipped it?

  • After providing a description of policy modification, in your own words, please include the following information...

    After providing a description of policy modification, in your own words, please include the following information in your discussion: Why is policy modification so important? Why is policy modification sometimes necessary within the US healthcare system? Find at least one example of federal or state healthcare policy modification, which has occurred in the past three years, and use it as an example to justify your rationale for the questions asked. Using your example, please discuss how you would have modified...

  • In your own works, please explain the primary types of business entities. Be sure to include...

    In your own works, please explain the primary types of business entities. Be sure to include the principal characteristics and ownership characteristics of each business entity. What are the pro and cons of each type of entity? Why do different types of business entities allow for unique ownership structures? Do you believe ownership structure an important factor for business owners when selecting a business entity?

  • I need new and unique answers, please. (Use your own words, don't copy and paste), Please...

    I need new and unique answers, please. (Use your own words, don't copy and paste), Please Use your keyboard (Don't use handwriting) Thank you.. Supervised vs. Unsupervised vs. Semi-supervised Learning Data scientists use many different kinds of machine learning algorithms to discover patterns in data. These algorithms can be classified in three main categories: supervised, unsupervised, and semi supervised learning. For each Learning type, give an application and explain why we should use it?

  • The Task: Create a console application that prompts the user to select either a stack, queue,...

    The Task: Create a console application that prompts the user to select either a stack, queue, linked list, or binary search tree. Then prompt the user for a number that will then be passed to a recursive function that will populate an array in ascending order. If user selected binary search tree, they will then be prompted to choose how the data will be received either in-order, preorder, or post-order. If user selected linked list, they will then be prompted...

  • Job postings often state that the successful applicant must have superior critical thinking and problem-solving skills....

    Job postings often state that the successful applicant must have superior critical thinking and problem-solving skills. Yet employers tell college administrators that graduates, both from undergraduate and graduate programs, often lack these skills. 1. How would you define critical thinking? 2. Why are employers making these comments? Are they justified? Your response should be at least 250 words. Please use your own words and be sure to reference your sources.

  • Respond to the following in a minimum of 175 words PLEASE TYPE RESPONSE: Why would you...

    Respond to the following in a minimum of 175 words PLEASE TYPE RESPONSE: Why would you rather lease than own? There are five advantages these are: 1. Leasing reduces the upfront cash needed to use an asset. 2. Lease payments often are lower than installment payments. 3. Leasing offers flexibility and a lower cost when disposing of the asset. 4. Leasing might offer protection against the risk of declining asset values. 5. Leasing might offer tax advantages. Can you provide...

  • 1. Define marketing myopia in your own words. In your opinion, how critical is this problem...

    1. Define marketing myopia in your own words. In your opinion, how critical is this problem for today’s businesses? Explain your answer. 2. When have you encountered marketing myopia as you buy from a business? Give at least 1 example and specifically describe and explain the myopic behavior. 3. In your opinion, what is the best way in the article to avoid marketing myopia? Describe how to avoid it and explain why you think it is the best way.

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT