EBK COMPUTER SCIENCE ILLUMINATED
EBK COMPUTER SCIENCE ILLUMINATED
7th Edition
ISBN: 9781284174755
Author: Dale
Publisher: JONES+B CO
bartleby

Videos

Question
Book Icon
Chapter 2, Problem 20E
Program Plan Intro

a.

Natural number:

  • Natural number is actually a positive that is obtained by adding one to the number repeatedly.
  • Natural numbers can be 1, 2, 3 and so on.
  • All positive integers are natural numbers.

Negative number:

  • Negative number is a number which is less than zero and is represented by a negative sign on the front.
  • Negative number generally represents negative of a number.
  • If the movement is from right, then it represents a positive number and if movement is from left, then it represents a negative number.
  • Thus on a scale a negative number is used to represent the numbers that is less than zero.

Rational number:

  • Rational number is a number that can be expressed as quotient of two integers.
  • Rational numbers can be either positive, negative or zero.
  • Rational numbers can be either greater than or less than or equal to zero. It can either be positive, negative or equal to zero.
  • Rational numbers can be expressed as a fraction of two integers p and q represented by “pq” where p is numerator and q is denominator.

Explanation of Solution

b.

  • The given number is13 .
    • When -1 is divided by 3 then it results in “-0.3333”.
    • After the decimal point the same number is repeated continuously

Explanation of Solution

c.

  • The given number is “1066”
    • It can be obtained by adding one repeatedly to the number.
    • The given number 1066 can also be written as a fractional number in the for...

Explanation of Solution

d.

  • The given number is “25”.
    • When 2 is divided by 5, then it results in “0.4”.
    • The number 25 is in a fractional form that can be represented in the form

Explanation of Solution

e.

  • The given number is “6.2”.
    • The number is represented with a decimal ...

Explanation of Solution

f.

  • The given number is “π(pi)”.
    • This usually refers to 227 or 3

Blurred answer
Students have asked these similar questions
In 32-bit MSAM, You were given the following negative array. write a program that converts each array element to its positive representation. Then add all these array elements and assign them to the dl register. .data    myarr sbyte -5, -6, -7, -4.code     ; Write the rest of the program and paste the fully working code in the space below.   the dl register should have the value 22 after summing up all elements in the array.
Microprocessor 8085 Lab Experiment Experiment No. 3 Logical Instructions Write programs with effects 1. B=(2Dh XOR D/2) - (E AND 2Eh+1) when E=53, D=1Dh 2. HL= (BC+HL) XOR DE (use register pair when necessary), when BC=247, HL 516, DE 12Ach 3. Reset bits 1,4,6 of A and set bits 3,5 when A=03BH Write all as table (address line.hexacode,opcede,operant.comment with flags)
In 32-bit MASM, Assume your grocery store sells three types of fruits. Apples, Oranges, and Mangos. Following are the sale numbers for the week (7 days).dataapples   dword 42, 47, 52, 63, 74, 34, 73oranges dword 78, 53, 86, 26, 46, 51, 60mangos dword 30, 39, 41, 70, 75, 84, 29Using a single LOOP instruction, write a program to add elements in all these three arrays. Then assign the total result into the eax register. The eax register should have the value 1153 after a successful execution.
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Text book image
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Text book image
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
Text book image
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Text book image
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Text book image
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education
Introduction to Computers; Author: Tutorials Point (India) Ltd.;https://www.youtube.com/watch?v=-AP1nNK3bRs;License: Standard YouTube License, CC-BY
Computers for Beginners: Introduction; Author: Carson City Library;https://www.youtube.com/watch?v=jH8pgGfG9HY;License: Standard Youtube License