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
Which of the following statements assigns the string “London” to the strCity member of the Country variable ?
a. england.strCity = "London"
b. Country.strCity = "London"
c. Country.england.strCity = "London"
d. strCity.england = "London"
Expert Solution
arrow_forward
Step 1
ASSIGNMENT IN A VARIABLE:
- To assign a string in a variable, the string must be enclosed in double quotes.
- To access a particular member of a variable '.' operator is used.
- If variable name is X and we want to access its member Y, then we write as X.Y
- To assign a variable with any value, assignment operator ( = ) is used.
- Variable name and the member of the variable is written on the left hand side and the value which is to be assigned to that member is written on the right hand side.
- Syntax:
- Variable_name.Member_name = " string_value"
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
- please tell me the R code for this statement: Categorial variable from StartDateTime: if StartDateTime between 12am- 11:59am set it to ‘Daytime’, else if StartDateTime is 12pm -11:59pm set it as ‘Evening’ Please be specific on each step. Thanksarrow_forwardWhich of the following variable declarations is illegal? Answers: Iv junk NUMBER(3); а. Iv_junk NUMBER(3) NOT NULL; b. Iv_junk NUMBER(3) = 11; C. d. Iv_junk NUMBER(3) CONSTANT := 11;arrow_forwardWhat is the syntax for creating a variable containing increasing, consecutive values from 5 to 13?arrow_forward
- color: one of the following strings: 'red', 'blue', 'silver', 'white', 'black'year: year of manufacturing. A number between 1990 and 2018company: one of the following strings: 'Honda', 'Toyota', 'Ford', 'Chevrolet'model: one of the following strings: 'sedan', 'hatchback', 'SUV'Give a logical expression that evaluates to a True or False for a set of cars. e.g. Expression for "Red SUV cars" is (color == "red" and model == "SUV") Give an expression for "Ford sedan cars that are red or blue and were manufactured after 2000"arrow_forwardSlappy’s Software Sales AssignmentYou have been hired by Slappy’s Software Sales to write a program to figure thetotal cost to customers that order Slappy’s software packages.Discounts are given based on the number of units sold:Number of Units Sold Discount Amount1 – 9 None10 – 19 20%20 – 49 30%50 – 99 40%100 or more 50%Create a form similar to this:The three boxes are labels. Remember to use the Auto Size and Border Styleproperties.The program should read the number of units sold and figure a base cost. Theunits cost $99 each. A discount should then be figured and subtracted from thebase cost. The subtotal, discount amount and total cost should be displayed, ascurrency, in the appropriate labels.Here are some screen shots of the running program:Set the tab order and access keys.Put comments in your program as to what each section is doing.Use constants for the discount rates and base price.arrow_forwardWhich of the following rounds the contents of the dblSales variable to two decimal places? a. dblSales = Math.Round(dblSales, 2) b. dblSales = Math.Round(2, dblSales) c. dblSales = Round.Math(dblSales, 2) d. dblSales = Round.Math(2, dblSales)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