Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1: Declaring a variable as type integer: a)Allocates an infinite amount of storage b)Allocates a fixed amount storage Question 2: An integer error in

Question 1: Declaring a variable as type integer: a)Allocates an infinite amount of storage b)Allocates a fixed amount storage Question 2: An integer error in C++ or Java causes: a)a syntax error b)the program to correct itself c)unexpected behavior Question 3: How can you avoid an integer error in your program? (Hint: it might have multiple correct answer) a)Know the smallest and largest allowable values for each data type in the programming language you are using b)Always pick float or double as the data type for numbers c)Check your input for reasonable values before conducting mathematical operations

image text in transcribed

image text in transcribed

Question 8 Fill out the following table: Security Checklist Vulnerability: Integer Errors Check each line of code 1. Type the names of all integer variables. For each variable: 2. Type all lines of code that assign values to the variable. 3. Type all lines of code that involves mathematical operations with variables. 4. Type all lines of code in which assignments are made to the variable. Highlighted areas indicate vulnerabilities!

Programming section (Note: refer Background and Code Responsibly sections to answer the Assignment.) STEP 1: Type program 1 and compile. Run and enter reasonable integer values. The steps to create a new ctt project to run program 1 is available on the blackboard Program 1 #include using namespace std; int main ) int i int j cout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Office 365 For Beginners 2022 8 In 1

Authors: James Holler

1st Edition

B0B2WRC1RX, 979-8833565759

More Books

Students also viewed these Databases questions