
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
Question
See attachment for practice problem. It is not graded.

Transcribed Image Text:Update Record Code:
Dim line, data(1) As String
Dim updateJag As String = txtJagNumber.Text
Dim jagNumber As String
Dim average As Decimal
GetInput(jagNumber, average)
Dim record As String =
NewCSV(jagNumber, average)
= 10.File.OpenText("Average.txt")
I0.File.CreateText("Temp.txt")
Dim sr As IO.StreamReader
Dim sw As IO.StreamWriter
Do Until sr. EndofStream
line = sr. ReadLine
data = line.Split(","c)
If data(0)
sw. Writeline (record)
updateJag Then
Else
sw. Writeline (line)
End If
Loop
sr.Close()
sw.Close()
File.Delete("Average.txt")
File.Move("Temp.txt", "Average.txt")
Sub GetInput reads values in from textboxes into variables. The inputted value for jagNumber is JO0123565.
The inputted value for average is 90.20.
Function NewCSV created a comma separated value record using the two inputted fields.
Walk through the code and show the values for the variables and location pointer as the code is executed.
Average.txt
Temp.txt
J00768567,98.54
JO0546344,72.35
J00123565,89.20
J00998877,92.50
updateJag
average
record
line
data
Expert Solution

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

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
- Is there a difference between a criteria for testing and a necessity for testing?arrow_forwardmake a DFD for the sales order management system. (NOTE: refer to the pic) A Sales order management system is an information system that can track sales, customer information details, and real time process details. This IS system is good for CRM (customer relationship management) because with the feature of keeping track of customer details this can help the issues of the customer who needed inquiry due to certain issue with a faster response time. Describe their responsibility and liability to the system. Example: (1) a cashier posting orders and collecting payments and giving changes will have to responsible for likely shortage in collections; Accountabilities: Define the accountabilities associated with IS ownership. Specify who is accountable for project success, adherence to timelines, and achieving business objectives. Ownership Structure: Define the ownership structure, including primary stakeholders and decision-makers. Clarify roles such as project sponsors, project managers,…arrow_forwardPlease create State chart diagram for the small restaurent.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