# C less than or equal to what is the value of a a 4 b

• No School
• AA 1
• Test Prep
• 8

This preview shows page 2 - 8 out of 8 pages.

c) Less than or equal to What is the Value of a? a) 4 b) 9 c) 5 d) 3 What is the value of a? a) 9 b) 17 c) 16 What data type is this? a) String b) Integer c) Float d) Not a data type

Subscribe to view the full document.

Sameer Ladha CGSC 1005 A Define this Boolean Operator !=: a) Equal to b) does not equal to c) False d) Not a Boolean operator What data type is this? a) Integer b) String c) Not a data type Part B: Code Tracing Code trace the following and determine the result after running the program 1) What is the output of the following program? 2) What would happen if the user entered 36 and Y? 3) What would happen if the user entered 15 and Y?
Sameer Ladha CGSC 1005 A 4) What would print if the user had 3 students and each student got 25 ? 5) What output does the user get if 43 is entered in the program below? 6) What output does the user get if 75 is entered in the program below?

Subscribe to view the full document.

Sameer Ladha CGSC 1005 A 7) What output does the user get if 15 and N is entered in the program below? 8) What output does the user get if -4 and N is entered in the program below?
Sameer Ladha CGSC 1005 A Part C: Code Writing *Write this code on paper first. See if it works the way you think then code it on your computer. On your midterm you will not have this luxury.* Write a program that asks the user for each of their exam grades, and to enter -1 when they are done. The program then tells them the average of the grades entered.

Subscribe to view the full document.

Sameer Ladha CGSC 1005 A Write a program that: - Asks the user how much money they received at Christmas. - Ask the user how many items they want to buy with their Christmas money. - Ask the user for the individual the price of all the items - Using the total price of the items, tell the user if they have enough, too much or too little Christmas money to afford their items. Sample output:
Sameer Ladha CGSC 1005 A Write a program that asks the user what job they are applying to in the restaurant and inform the user how much they would make per hour. (Positions: Host \$14/hr , Server \$15/hr, Cook \$25/hr, Manager \$30/hr)
• Fall '19
• Equals sign, relational operator, Sameer Ladha

### 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

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes