CISC 1600 Study Guide - Midterm Guide: Natural Number, Increment And Decrement Operators, Richard Tomlinson

351 views53 pages

Document Summary

128 to 127 char myvar; 8 bits short myvar; 16 bits. 9,223,372,036,854,775,808 to 9,223,372,036,854,775,807 long long myvar; 64 bits int myvar; 16 bits unsigned short myvar; unsigned long myvar; 32 bits unsigned long long myvar; 64 bits unsigned int myvar; Troubleshooting : first, a programmer may predict that the problem is a bad output statement. This prediction can be tested by adding the statement area = 999: next, the programmer predicts the problem is a bad area computation. This prediction is tested by assigning the value 0. 5 to radius and checking to see if the output is 0. 7855 (which was computed by hand: the programmer then predicts the problem is a bad radius computation. This prediction is tested by assigning pi_val to the circumference, and checking to see if the radius is 0. 5: the last test seems to validate that the problem is a bad radius computation. Visually inspect the code (not every test requires modifying/running the code).

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers

Related Documents