• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 4 pages
Exam (elaborations)

ET 2560 Unit 4-Assignment 1-Overview of Program

Document preview thumbnail
Preview 1 out of 4 pages

1) Self-Check Pg. 184 #1: Assuming x is 15.0 and y is 25.0, what are the values of the following conditions (True/False)? (2 Points Each)  x != y 1(True)  x x 0(False)  x = y - x 1(True)  x == y + x - y 1(True) 2) Self-Check Pg. 184 #5: What value is assigned to the type int variable ans in this statement if the value of p is 100 and q is 50? (3 Points) ans = (P 95) + (q 95); 1(True) This statement is not shown as an example of a reasonable assignment statement; rather, it is a sample of a statement that makes little sense to the reader. The statement is still legal and executable in C, however, because C uses integers to represent the logical values true and false. 3) Self-Check Pg. 190 #1: What do these statements display? (5 Points Each) a) if (12 12) printf("less"); else printf("not less"); not less! b)Varl = 25.12; Var2 = 15.00; if (Varl = Var2) printf ("less or equal"); else printf( "greater than" ); greater than 4) Self-Check Pg. 190 #2: What value is assigned to x when y is 10.0? (5 Points Each) a) x = 25.0; if (y != (x - 10.0)) x = x – 10.0; else x = x / 2.0; x=25.0; if (10.0=(x-10.0) x=x -10; else x=x / 2.0;


Document information

Uploaded on
December 17, 2021
Number of pages
4
Written in
2021/2022
Type
Exam (elaborations)
Contains
Questions & answers
$7.99

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
lectdenis
3.7
(301)
Sold
2092
Followers
1592
Items
6895
Last sold
2 weeks ago



Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions

Whoops! We can’t load your doc right now. Try again or contact support.