Pt1420 Unit 3 Assignment 1 Data Type Analysis

Improved Essays
Data
Type Description and example use
**You must provide an example of what each data type could be used for**
String A data type used in programmings such as an integer and floating point unit, but is used to represent text rather than numbers.
• I bought 3 CD’s which were from 3 different artists. It shows that I bought it from 3 different people.
• If (Option 1==Option 2) If the values are the same, then it is true. If they are different, then it is false.
• Usernames are an example of string data type.
Integer A data type which consists of a whole number. Examples would be numbers 1-10.
• Addition, subtraction, multiplication, division are examples when integer data types are used. When the integer is added, subtracted, multiplied or
…show more content…
It basically stores the date.
• Date on the lock screen for the iPhone or a Samsung smartphone device, used in digital calendars.
Boolean A data type which has two values intended to represent the truth values of logic and Boolean algebra.
• Used in True/False statements.
Single A 4-byte data type which includes a floating point up to a definite amount. It holds up to 7 digits.
• Shouldn’t be used for currency as the decimals will represent a lower number and it isn’t exactly a big number.
• Used as a number up to 7 digits. If the number does not have 7 digits, it will be rounded to have a format of 7 digits. An example is with the value 1.23456789. As you can see, it exceeds 7 digits and so is rounded to 1.234568.
• Used for decimals as the pre-set value.
Double An 8 data type which can hold 14 digits compared to a single data type.
• Used for defining big amounts e.g. £65k can be known as £65000 and it shows that not all the data values are within the numerical value of 65k and can show an easier way of writing code to help with memory management. Basically, it is simplifying the code.
Fixed Point A data type which represents a real data for a number that has a fixed number of digits after the decimal

Related Documents

  • Improved Essays

    Nt1310 Unit 6 Paper

    • 617 Words
    • 3 Pages

    I chose discrete because you can count out the number of dollars that the foundation costs, and it does not go on forever. It also does not have any decimals, it is a whole number. The cost of foundation is discrete. 12) The mean of my data set was approximately 14.82.…

    • 617 Words
    • 3 Pages
    Improved Essays
  • Improved Essays

    Pt1420 Unit 1 Assignment

    • 970 Words
    • 4 Pages

    Rounding Data When data is gathered and calculated, the final information presented tends to be rounded. On some occasions it may be necessary to round data, especially when rounding non-integer vales to integer values for simplicity and statistical representation. An example of this would be at the end of the calculations in sample weighting, the fractions you get are rounded to integers, since the data is based on physical objects which cannot have fractions, and so is considered extra for rounding purposes. Data may also me rounded in order for it to be understandable if the information is to be presented to other people, or just to keep important digits only to get an idea of scale. Extreme examples of this would be comparing the size of…

    • 970 Words
    • 4 Pages
    Improved Essays
  • Improved Essays

    Xacc/280 Week 6 Checkpoint

    • 1119 Words
    • 5 Pages

    In this course we will consider significant figures to be: 1) any non-zero digit, 2) zeros within a number…

    • 1119 Words
    • 5 Pages
    Improved Essays
  • Improved Essays

    12345.67 - Data Type: Double  Use of Double: A Double can be used as decimal numbers with less than 14 significant digits e.g. 12345678.78 - Data Type: Boolean  Use of Boolean: A Boolean can be used for a question with two possible answers that a value to a question e.g. is the car yellow? Yes or No. Other range of value can be true or false. As a code, a Boolean would look like Dim answer as Boolean. Importance of data…

    • 841 Words
    • 4 Pages
    Improved Essays
  • Decent Essays

    //This program uses a “brute force” strategy of examining //all the segments of an array, computing their sums, and finding the minimum. public class MinSegSum { public static void main(String[] args) { int length = args.length; int[] a = new int[length]; int sum = 0; // The variable sum is the sum of all elements of a certain segment int subSum = 0; //subSum is the sum of all elements (except the 1st) of a certain segment int min = 999999999;…

    • 96 Words
    • 1 Pages
    Decent Essays
  • Improved Essays

    Pt1420 Unit 8

    • 925 Words
    • 4 Pages

    The integer variable provided in the second argument will be assigned the position of the opening parenthesis of the parentheses that is around the string returned by the function. The third argument is an integer and is assigned a vale to indicate the position of the closing…

    • 925 Words
    • 4 Pages
    Improved Essays
  • Decent Essays

    The following shows the corresponding numbers of each day of the week Monday – 1 Friday - 5 Tuesday – 2 Saturday - 6 Wednesday – 3 Sunday - 7 Thursday – 4 Example 7-4: If today is Friday, what day of the week is 6 days after today? Solution: Since Friday is associated with number 5, we need to add 6 to 5.…

    • 293 Words
    • 2 Pages
    Decent Essays
  • Improved Essays

    Let’s say that we have calculated effectiveness (assuming PD=0,8; PA=0,9; PI=0,6; PN=0,4) and it equals to 0,8 x 0,9 x 0,6 x 0,4 =0,1728. Remember, the conditional risk formula? Assuming again, that probability of attack and relative consequences both equal 1,0, conditional risk R= 1,0 x (1 – 0,1728) x 1,0 =…

    • 498 Words
    • 2 Pages
    Improved Essays
  • Improved Essays

    Id9 Vs Icd10 Essay

    • 476 Words
    • 2 Pages

    What are the differences between ICD9 and ICD10? What were benefits to switching from ICD9 to ICD10? Do you feel that the coding process is similar? How does it differ?…

    • 476 Words
    • 2 Pages
    Improved Essays
  • Improved Essays

    Nt1310 Unit 1 Assignment

    • 1366 Words
    • 6 Pages

    1. APK: Review double-digit addition with renaming. Have students recall strategies they used to find the sum of double-digit addition problems (place value, empty number line, break apart). Ask student, “Do you think we could use some of these same strategies to find the sum of three-digit numbers?” “Today, we are going to use those same strategies to solve three-digit addition problems.” 2.…

    • 1366 Words
    • 6 Pages
    Improved Essays
  • Decent Essays

    · Memory: This is any computer component that has the ability to storing information or data temporary or permanently, e.g. Read And Write Memory (RAM) and Not Volatile Read And Write Memory (NVRAM). · CPU: This is the brain of the computer and is the central process unit, and it received command/instruction from the computer software and sends the instruction to the right hardware to execute the instruction, and also received the feedback from the hardware and forwards it to the software. · Storage: This is the part of the computer where information or data have been kept temporary or permanently.…

    • 363 Words
    • 2 Pages
    Decent Essays
  • Superior Essays

    Part B Diagnostic Interview and Tutoring Sessions Permission was granted (Appendix A) to interview and tutor Athena*, who is a 9 year old student in Year 4 who returned to Australia in the middle of Year 3, after living in the United States for 5 years. The Mathematics Assessment Interview (MAI) was conducted on a weekend afternoon at Athena’s home shortly after lunch (Australian Catholic University, 2011b). She did not seem to be nervous and was informed that the purpose of the questions was to help a pre-service teacher learn and develop some effective ways of teaching through the follow up tutoring sessions. Athena began the MAI confidently and could read, write (on the calculator) and order two digit numbers with ease.…

    • 1550 Words
    • 7 Pages
    Superior Essays
  • Improved Essays

    1.07 Case Study Answer

    • 688 Words
    • 3 Pages

    One may also have indicated the actual numbers over each…

    • 688 Words
    • 3 Pages
    Improved Essays
  • Improved Essays

    In the parentheses, tell how many significant figures are in the number. a) 987,650.0 _______________ ( ) b) 0.0001 _______________ ( ) c) 506.78 _______________ ( ) d) 7766.5 _______________ ( ) e) 0.0200 _______________ ( ) f) 340.043 _______________ (…

    • 2398 Words
    • 10 Pages
    Improved Essays
  • Improved Essays

    Numerical data are values that can be measures. By taking two numerical variables together, it can reveal possible relationships between each other. For example, two numerical variables in this data are age and the usage of product TM195. Now, to help you visualize the comparison, histograms are a great way to explain the difference. Histograms visualize data with vertical bar charts where each bar represents a class interval.…

    • 762 Words
    • 4 Pages
    Improved Essays