
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Concept explainers
Question

Transcribed Image Text:M midterm - herjam X
← → C
KER
Account
Dashboard
CPS2231_lecture7_Midterm_review.pdf TER PROGRAMMING > Slides
Courses
900
DOD
<
History
TT
Studio
Help
K
Introduction to Ja X
34°F
Cloudy
Introduction to Ja x
kean.instructure.com/files/folder/courses_12224/Slides?preview=448997
Exercise 1
int a = 110;
int b = 0;
if (a <= 100)
b = b + 100;
Introduction to Ja X|
else if (a > 100 && b <= 200)
b = b + 200;
What is the value of b ?
1
▬▬
Q Search
Introduction to Ja X
[
Page <
a
Files
26
X C Expert Q&A | Che x | +
> of 67
C
Download
ZOOM
+
PO
i Info
X Close
11:37 PM
3/15/2023
X
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- Function Name: compliments Parameters: answer1 - a boolean (True or False) representing whether the user is "smart" answer2 - a boolean (True or False) representing whether the user is "awesome" answer3 - a boolean (True or False) representing whether the user is "fun" Description: Write a function that outputs a string of compliments based on the adjectives selected by the inputs. Use the inputs True and False. The function should return the string “You are” concatenated with the compliments that are true. The three compliments should be: "smart" "awesome" and "fun". If none of the compliments are true, print the string “Goodbye.” instead. Test Cases: >>>compliments(True, True, True) You are smart awesome fun. >>>compliments(False, True, False) You are awesome. >>>compliments(False, False, False) Goodbye.arrow_forwardint input; cout << "enter input " << endl; cin >> input; int i = input / 2; int d; for (i >= 2; i--;) { d = input % i; if (d == 2 || i == 1) cout << "not prime" << endl; else cout << "prime" << endl; } This code outputs prime numbers as both "prime" and "not prime" but I just want it to say "prime". Please help me with this problem using c++.arrow_forwardQuestion 10 programming in racket Write a procedure (timezone) that takes no arguments and returns a ; *string* indicating your time zone. ; Remember the difference between a procedure call and the evaluation of a variable! ; Ex: (timezone) => "EST"arrow_forward
- C++arrow_forwardFind the error(s), if any 1) void main(){int a = 15;float b = 10;char cha = 'a';char chb = 'b';do{a += b;a = a * b / 4;cout<<a<<b/a<<endlcout<<cha;for (int i=0; i<20; i++); {cout<<i;}}while(a=<1000)}; 2) The following code should output the even integers from 2 to 100:counter = 2;do{cout << counter << endl;counter += 2;} While ( counter < 100 );arrow_forwardLook at the following code. int x = 7; int *ptr = &x;What will be displayed if you send the expression *iptr to cout? What happens if you send the expression ptr to cout?arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education