CYB 130 Week 1 Individual: Data Types

0 items
CYB 130 Week 1 Individual: Data Types
CYB 130 Week 1 Individual: Data Types
$7.00
  • Description

CYB 130 Week 1 Individual: Data Types

One of the most common data types in all programming languages is Float, which represents decimal values.

Programming declares variables and specifies the data types of these variables at the beginning of a program.

However, depending on the order of operations, the output of an operation involving floating numbers might not necessarily be a floating number.

Input the following in JES or Python IDLE to see the output (hereafter, JES will be used in the course but is interchangeable to Python IDLE, whichever the student downloaded):

  • print 1.0 / 3
  • print 10 + 3 * 7
  • print (10 + 3) * 7

Zip your Python .py file and submit the.zip file so the code can be validated.

Write a 1/2 page on why each of your three inputs resulted in its particular output.

Submit your assignment using the Assignment Files tab.