Starting Out With Visual Basic (8th Edition)
8th Edition
ISBN: 9780135204658
Author: Tony Gaddis, Kip R. Irvine
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Chapter 2, Problem 9SA
Explanation of Solution
Characters surrounded by a string literal:
- String is a collection of characters.
- In
program code, the string literals are surrounded by character double-quotation marks. - Example: To display the string “Welcome!”, the user can use the following statement in program code,
MessageBox...
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Q4: Consider the following MAILORDER relational schema describing the data for a mail order
company. (Choose five only).
PARTS(Pno, Pname, Qoh, Price, Olevel)
CUSTOMERS(Cno, Cname, Street, Zip, Phone)
EMPLOYEES(Eno, Ename, Zip, Hdate)
ZIP CODES(Zip, City)
ORDERS(Ono, Cno, Eno, Received, Shipped)
ODETAILS(Ono, Pno, Qty)
(10 Marks)
I want a detailed explanation to
understand the mechanism how it is
Qoh stands for quantity on hand: the other attribute names are self-explanatory. Specify and
execute the following queries using the RA interpreter on the MAILORDER database schema.
a. Retrieve the names of parts that cost less than $20.00.
b. Retrieve the names and cities of employees who have taken orders for parts costing more than
$50.00.
c. Retrieve the pairs of customer number values of customers who live in the same ZIP Code.
d. Retrieve the names of customers who have ordered parts from employees living in Wichita.
e. Retrieve the names of customers who have ordered parts costing less…
Q4: Consider the following MAILORDER relational schema describing the data for a mail order
company. (Choose five only).
(10 Marks)
PARTS(Pno, Pname, Qoh, Price, Olevel)
CUSTOMERS(Cno, Cname, Street, Zip, Phone)
EMPLOYEES(Eno, Ename, Zip, Hdate)
ZIP CODES(Zip, City)
ORDERS(Ono, Cno, Eno, Received, Shipped)
ODETAILS(Ono, Pno, Qty)
Qoh stands for quantity on hand: the other attribute names are self-explanatory. Specify and
execute the following queries using the RA interpreter on the MAILORDER database schema.
a. Retrieve the names of parts that cost less than $20.00.
b. Retrieve the names and cities of employees who have taken orders for parts costing more than
$50.00.
c. Retrieve the pairs of customer number values of customers who live in the same ZIP Code.
d. Retrieve the names of customers who have ordered parts from employees living in Wichita.
e. Retrieve the names of customers who have ordered parts costing less than$20.00.
f. Retrieve the names of customers who have not placed…
ut
da
Q4: Consider the LIBRARY relational database schema shown in Figure below
a. Edit Author_name to new variable name where previous
surname was 'Al - Wazny'.
Update book_Authors
set Author_name = 'alsaadi'
where Author_name = 'Al - Wazny'
b. Change data type of Phone to string instead
of numbers.
عرفنه شنو الحل
BOOK
Book id Title Publisher_name
BOOK AUTHORS
Book id Author_name
PUBLISHER
Name Address Phone
e u
al b
are
rage
c. Add two Publishers Company existed in UK.
insert into publisher(name, address, phone)
value('ali','uk',78547889), ('karrar', 'uk', 78547889)
d. Remove all books author when author name contains second character 'D' and ending by
character 'i'.
es inf
rmar
nce 1
tic
عرفته شنو الحل
e. Add one book as variables data?
عرفته شنو الحل
Chapter 2 Solutions
Starting Out With Visual Basic (8th Edition)
Ch. 2.1 - Prob. 2.1CPCh. 2.1 - Prob. 2.2CPCh. 2.1 - What is the purpose of an objects sizing handles?Ch. 2.1 - What must each form and control in an applications...Ch. 2.1 - Prob. 2.5CPCh. 2.1 - Prob. 2.6CPCh. 2.1 - Prob. 2.7CPCh. 2.1 - What does a forms Text property determine?Ch. 2.1 - Prob. 2.9CPCh. 2.1 - Prob. 2.10CP
Ch. 2.1 - Prob. 2.11CPCh. 2.1 - Prob. 2.12CPCh. 2.3 - What must be added to an application so that it...Ch. 2.3 - Prob. 2.14CPCh. 2.3 - Prob. 2.15CPCh. 2.3 - Prob. 2.16CPCh. 2.3 - Prob. 2.17CPCh. 2.3 - Prob. 2.18CPCh. 2.3 - Prob. 2.19CPCh. 2.3 - Prob. 2.20CPCh. 2.3 - Prob. 2.21CPCh. 2.4 - Prob. 2.22CPCh. 2.4 - Prob. 2.23CPCh. 2.4 - Prob. 2.24CPCh. 2.4 - Prob. 2.25CPCh. 2.4 - Prob. 2.26CPCh. 2.4 - Prob. 2.27CPCh. 2.4 - Prob. 2.28CPCh. 2.4 - Prob. 2.29CPCh. 2.4 - What is a literal?Ch. 2.4 - Prob. 2.31CPCh. 2.4 - Prob. 2.32CPCh. 2.4 - Prob. 2.33CPCh. 2.7 - What is a PictureBox control used for?Ch. 2.7 - Prob. 2.35CPCh. 2.7 - Prob. 2.36CPCh. 2.7 - Prob. 2.37CPCh. 2.7 - Prob. 2.38CPCh. 2.7 - Prob. 2.39CPCh. 2.8 - Prob. 2.40CPCh. 2.8 - Prob. 2.41CPCh. 2.8 - Suppose an application has a Picture Box control...Ch. 2.8 - Prob. 2.43CPCh. 2.9 - Prob. 2.44CPCh. 2.9 - The keyword Me is shorthand for referring to what?Ch. 2.10 - Prob. 2.46CPCh. 2.10 - What character does a comment begin with in Visual...Ch. 2.10 - Prob. 2.48CPCh. 2.10 - Why do programmers insert blank lines and...Ch. 2.11 - Prob. 2.50CPCh. 2.11 - Prob. 2.51CPCh. 2.11 - Prob. 2.52CPCh. 2.11 - Prob. 2.53CPCh. 2.11 - What type of error usually causes the program to...Ch. 2.11 - Prob. 2.55CPCh. 2.11 - Prob. 2.56CPCh. 2.11 - How do you find runtime and logic errors in a...Ch. 2.12 - Prob. 2.58CPCh. 2.12 - Prob. 2.59CPCh. 2.12 - Prob. 2.60CPCh. 2.12 - Prob. 2.61CPCh. 2.13 - Prob. 2.62CPCh. 2.13 - Prob. 2.63CPCh. 2.13 - Prob. 2.64CPCh. 2 - Prob. 1MCCh. 2 - Prob. 2MCCh. 2 - _____ is the name of the blank form that Visual...Ch. 2 - Prob. 4MCCh. 2 - A(n) _____ is a procedure that executes when a...Ch. 2 - Prob. 6MCCh. 2 - In programming we use the term string to mean...Ch. 2 - Prob. 8MCCh. 2 - Prob. 9MCCh. 2 - Prob. 10MCCh. 2 - Prob. 11MCCh. 2 - Prob. 12MCCh. 2 - Prob. 13MCCh. 2 - Prob. 14MCCh. 2 - Prob. 15MCCh. 2 - Prob. 16MCCh. 2 - The equal sign ( = ) is known as the ___________...Ch. 2 - The standard notation for referring to a controls...Ch. 2 - _____ is a feature of Visual Studio that provides...Ch. 2 - Prob. 20MCCh. 2 - Prob. 21MCCh. 2 - Prob. 22MCCh. 2 - Prob. 23MCCh. 2 - Prob. 24MCCh. 2 - Prob. 25MCCh. 2 - Programmers commonly use blank lines and...Ch. 2 - To close an applications form in code, you use the...Ch. 2 - T F: Changing an objects Text property also...Ch. 2 - Prob. 2TFCh. 2 - T F: The forms title is displayed in the bar along...Ch. 2 - Prob. 4TFCh. 2 - Prob. 5TFCh. 2 - Prob. 6TFCh. 2 - Prob. 7TFCh. 2 - Prob. 8TFCh. 2 - Prob. 9TFCh. 2 - Prob. 10TFCh. 2 - Prob. 11TFCh. 2 - Prob. 12TFCh. 2 - Prob. 13TFCh. 2 - Prob. 14TFCh. 2 - Prob. 15TFCh. 2 - T F: Comments are ignored by the Visual Basic...Ch. 2 - Prob. 17TFCh. 2 - Prob. 18TFCh. 2 - What does a bounding box indicate about an object...Ch. 2 - Prob. 2SACh. 2 - What determines an objects appearance and other...Ch. 2 - Prob. 4SACh. 2 - Prob. 5SACh. 2 - What steps must you perform to change a forms Size...Ch. 2 - Prob. 7SACh. 2 - Prob. 8SACh. 2 - Prob. 9SACh. 2 - Prob. 10SACh. 2 - Prob. 11SACh. 2 - Prob. 12SACh. 2 - Prob. 13SACh. 2 - Prob. 14SACh. 2 - Prob. 15SACh. 2 - Prob. 16SACh. 2 - Prob. 17SACh. 2 - Prob. 1AWCh. 2 - Prob. 2AWCh. 2 - Prob. 3AWCh. 2 - Prob. 4AWCh. 2 - Suppose an applications GUI has a PictureBox...Ch. 2 - Prob. 1WDTCh. 2 - Prob. 2WDTCh. 2 - Prob. 3WDTCh. 2 - Open the Error1 project from the student sample...Ch. 2 - Open the Error2 project from the student sample...Ch. 2 - Look at the following list of Latin words and...Ch. 2 - Create an application that displays a simple math...Ch. 2 - Prob. 3PCCh. 2 - Prob. 4PCCh. 2 - State Abbreviations The following table shows...Ch. 2 - Prob. 6PCCh. 2 - Prob. 7PCCh. 2 - Joke and Punch line A joke typically has two...
Knowledge Booster
Similar questions
- Add a timer in the following code. public class GameGUI extends JPanel { private final Labyrinth labyrinth; private final Player player; private final Dragon dragon; private Timer timer; private long elapsedTime; public GameGUI(Labyrinth labyrinth, Player player, Dragon dragon) { this.labyrinth = labyrinth; this.player = player; this.dragon = dragon; String playerName = JOptionPane.showInputDialog("Enter your name:"); player.setName(playerName); elapsedTime = 0; timer = new Timer(1000, e -> { elapsedTime++; repaint(); }); timer.start(); } @Override protected void paintComponent(Graphics g) { super.paintComponent(g); int cellSize = Math.min(getWidth() / labyrinth.getSize(), getHeight() / labyrinth.getSize());}arrow_forwardChange the following code so that when player wins the game, the game continues by creating new GameGUI with the same player. However the player's starting position is same, everything else should be reseted. public static void main(String[] args) { Labyrinth labyrinth = new Labyrinth(10); Player player = new Player(9, 0); Random rand = new Random(); Dragon dragon = new Dragon(rand.nextInt(10), 9); JFrame frame = new JFrame("Labyrinth Game"); GameGUI gui = new GameGUI(labyrinth, player, dragon); frame.setLayout(new BorderLayout()); frame.setSize(600, 600); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.add(gui, BorderLayout.CENTER); frame.pack(); frame.setResizable(false); frame.setVisible(true); } public class GameGUI extends JPanel { private final Labyrinth labyrinth; private final Player player; private final Dragon dragon; private Timer timer; private long…arrow_forwardCreate a menu item which restarts the game. Also add a timer, which counts the elapsed time since the start of the game level. When the restart is pressed, the restarted game should ask the player' name (in the GameGUI constructor) and set the score of player to 0 (player.setScore(0)), and the timer should restart again. And create a logic so that if the player loses his life (checkGame if the condition is false), then save this number together with his name into two variables. And display two buttons where one quits the game altogether (System.exit(0)) and the other restarts the game. public class GameGUI extends JPanel { private final Labyrinth labyrinth; private final Player player; private final Dragon dragon; private final ImageIcon playerIcon = new ImageIcon("data/images/player.png"); private final ImageIcon dragonIcon = new ImageIcon("data/images/dragon.png"); private final ImageIcon wallIcon = new ImageIcon("data/images/wall.png"); private final ImageIcon…arrow_forward
- Please original work Analyze the complexity issues of processing big data What are five complexities and talk about the reasons they make the implementation complex. Please cite in text references and add weblinksarrow_forwardCreate a Database in JAVA Netbeans that saves name of the player and how many labyrinths did the player solve. Record the number of how many labyrinths did the player solve, and if he loses his life, then save this number together with his name into the database. Create a menu item, which displays a highscore table of the players for the 10 best scores public class GameGUI extends JPanel { private final Labyrinth labyrinth; private final Player player; private final Dragon dragon; private void checkGameState() { if (player.getX() == 0 && player.getY() == labyrinth.getSize() - 1) { JOptionPane.showMessageDialog(this, "You escaped! Congratulations!"); System.exit(0); } if (Math.abs(player.getX() - dragon.getX()) <= 1 && Math.abs(player.getY() - dragon.getY()) <= 1) { JOptionPane.showMessageDialog(this, "The dragon caught you! Game Over."); System.exit(0); } } } public…arrow_forwardCreate a Database in JAVA OOP that saves name of the player and how many labyrinths did the player solve. Record the number of how many labyrinths did the player solve, and if he loses his life, then save this number together with his name into the database. Create a menu item, which displays a highscore table of the players for the 10 best scores. Also, create a menu item which restarts the game. public class GameGUI extends JPanel { private final Labyrinth labyrinth; private final Player player; private final Dragon dragon; private void checkGameState() { if (player.getX() == 0 && player.getY() == labyrinth.getSize() - 1) { JOptionPane.showMessageDialog(this, "You escaped! Congratulations!"); System.exit(0); } if (Math.abs(player.getX() - dragon.getX()) <= 1 && Math.abs(player.getY() - dragon.getY()) <= 1) { JOptionPane.showMessageDialog(this, "The dragon caught you! Game Over.");…arrow_forward
- Change the following code so that the player can see only the neighboring fields at a distance of 3 units. public class GameGUI extends JPanel { private final Labyrinth labyrinth; private final Player player; private final Dragon dragon; private final ImageIcon playerIcon = new ImageIcon("data/images/player.png"); private final ImageIcon dragonIcon = new ImageIcon("data/images/dragon.png"); private final ImageIcon wallIcon = new ImageIcon("data/images/wall.png"); private final ImageIcon emptyIcon = new ImageIcon("data/images/empty.png"); public GameGUI(Labyrinth labyrinth, Player player, Dragon dragon) { this.labyrinth = labyrinth; this.player = player; this.dragon = dragon; setFocusable(true); addKeyListener(new KeyAdapter() { @Override public void keyPressed(KeyEvent e) { char move = switch (e.getKeyCode()) { case KeyEvent.VK_W -> 'W'; case…arrow_forwardQ/ Fill in the table below with the correct answers for the network devices and components required, then draw the topology diagram for the network of this three-story building: I want a drawing Cisco Packet tracer Ground Floor: This floor will house the main server room, reception area, and a few conference rooms. The server room should contain the core network devices that will connect the entire building. The reception area and conference rooms need network access require access for mobile devices for visitors and guests with devices. First Floor: This floor is dedicated to offices with workstations, each needing reliable network connectivity for staff computers, IP phones, IP camera, and printers. Second Floor (Education Department): This floor consists of educational spaces requiring controlled internet access. Only the educational website (https://uokerbala.edu.iq) should be accessible, with all other sites restricted.. Device Media type Location floor Type of IP Static/dynamic…arrow_forwardProblem Statement You are working as a Devops Administrator. Y ou’ve been t asked to deploy a multi - tier application on Kubernetes Cluster. The application is a NodeJS application available on Docker Hub with the following name: d evopsedu/emp loyee This Node JS application works with a mongo database. MongoDB image is available on D ockerHub with the following name: m ongo You are required to deploy this application on Kubernetes: • NodeJS is available on port 8888 in the container and will be reaching out to por t 27017 for mongo database connection • MongoDB will be accepting connections on port 27017 You must deploy this application using the CL I . Once your application is up and running, ensure you can add an employee from the NodeJS application and verify by going to Get Employee page and retrieving your input. Hint: Name the Mongo DB Service and deployment, specifically as “mongo”.arrow_forward
- I need help in server client project. It is around 1200 lines of code in both . I want to meet with the expert online because it is complicated. I want the server send a menu to the client and the client enters his choice and keep on this until the client chooses to exit . the problem is not in the connection itself as far as I know.I tried while loops but did not work. please help its emergentarrow_forwardI need help in my server client in C languagearrow_forwardExercise docID document text docID document text 1 hot chocolate cocoa beans 7 sweet sugar 2345 9 cocoa ghana africa 8 sugar cane brazil beans harvest ghana 9 sweet sugar beet cocoa butter butter truffles sweet chocolate 10 sweet cake icing 11 cake black forest Clustering by k-means, with preprocessing tokenization, term weighting TFIDF. Manhattan Distance. Number of cluster is 2. Centroid docID 2 and docID 9.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr