{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

# Q1sp01 - temperature is more than 80 output “It is...

This preview shows page 1. Sign up to view the full content.

EGN 3210 Quiz 1 Spring 2001 NAME_____________________________ SS#_____________________________ 1. Determine the output x = 132; y = 7; z = 3; if ( (x <= 150 && x > 0 && y >10) || z > 3 || y == 7 ) print("Yes"); else print("No"); Ans: 2. Write a small program to input the temperature from the keyboard and output “It is hot” if the
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: temperature is more than 80, output “It is cold” if the temperature is less than 70 and “It is nice” if the temperature is between 70 and 80. Use the scanf ( ) and printf ( ) functions and assume the temperature is an integer....
View Full Document

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern