User Tools

Site Tools


user:acrowle1:portfolio:cprogproject2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
user:acrowle1:portfolio:cprogproject2 [2014/03/01 02:38] – [Project: squares] acrowle1user:acrowle1:portfolio:cprogproject2 [2014/03/01 11:51] (current) wedge
Line 1: Line 1:
-======Project: squares======+======Project: data types======
  
 A project for CSCS1320S14 by Alana Whittier during the Spring Semester 2014. A project for CSCS1320S14 by Alana Whittier during the Spring Semester 2014.
  
-This project was first begunon or around, February, 20, 2014 and took approximately 1 week to complete. The program first submitted is not //incorrect//as it does compile and yields the expected outputalthough it is not necessarily the most elegant or //efficient// script. In the first programa series of 'if' and 'else if' statements were used to ensure appropriate execution of the programAfter some more consideration, decided to try writing the program in an entirely different manner, using both the factor and the remainder to achieve the same output as produced in my first program. However, even this endeavor had it's challenges as I am still not sure how to conditionally tell the compiler for ALL values greater than 95, INCLUDING those that end in 5, to //only// return the error message+This project was begun on January 30, 2014 and took approximately two weeks to complete since had to familiarize myself with data typesformat-specifiersbinary to hex conversiontwo's complement, and bitwise and/or. I suspect that an experienced C programmer would have completed it in well under an hour.
 =====Objectives===== =====Objectives=====
 The purpose of this project was to become familiar with various data types, their sizes, and the range of values for each type. This project served as an exercise to explore the various format specifiers per data type and how to represent them in order to acquire the appropriate range of values using sizeof(), bitwise and/or (&/|), hex values, and type casting, where necessary, to display the negative values in the range for the signed data types. The purpose of this project was to become familiar with various data types, their sizes, and the range of values for each type. This project served as an exercise to explore the various format specifiers per data type and how to represent them in order to acquire the appropriate range of values using sizeof(), bitwise and/or (&/|), hex values, and type casting, where necessary, to display the negative values in the range for the signed data types.
user/acrowle1/portfolio/cprogproject2.1393641534.txt.gz · Last modified: 2014/03/01 02:38 by acrowle1