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
Describe how to pass a variable, string or otherwise, to a procedure and also how to store that into an array. Provide an example of each to demonstrate your understanding. Be sure to include any flowcharts or pseudo-code examples to assist in your example.
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 4 steps with 6 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
- i need the answer quicklyarrow_forwardWe'll talk about writing array notation in this part.arrow_forwardHi pleas help me i need the solv by uesing online java compiler Create the principal program, which will complete the following tasks :a. Create a new Student object by reading the required details and by applying at least one type of data validation of your choice on the input.b. Read and save the list of module names and the list of module marks awarded to the student in the two assignments. c. Display the transcript of the student by calling the adequate method.d. Repeating the previous tasks until the user decides to exit.arrow_forward
- Use the example exe located here to create the pseudo code or flow chart that would represent the logic of the program. You must use an array to store each student's average. You must use looping (for or while, your choice) where appropriate (there will be many instances). Make sure you follow structured programming principles. Run the exe as much as needed on your computer to see how it works and examine the output file. You can answer most of your questions if you use the example file. There are several ways this can be done but the following must be incorporated. Input: Number of students (min 1, max 10) Number of grades for each student (min 1, max 10) The number of points each assignment is worth Enter each student's grade for each assignment Output: Total possible worth of all assignments At the end, the average for each student (must use array) written to screen At the end, the average for each student (must use array) written to the file StudentAverages.txt (example…arrow_forward1. In using scanf the reference to data was always passed. When using printf the reference was passed for a string, but the data value was required for types such as integer. This says that what is commonly refer to as a variable actually has 3 parts: 1 - The label (sometimes called the id or name); 2 - the reference; 3 - the value. Explain to the best of your understanding what is the difference between each of these three parts, and how it changes the cognitive model or metaphor you use to understand a variable. The type of the variable (how the variable is stored and operations on the variable) are associated with what part of the variable, the label, reference, or value? 2. Which parts of the variable exist at compile time, and which parts exist at run time? 3. Harder question with more insight: Can a value be a reference? Can you think of an example? (Think of structs and arrays). 4. Even harder, this is a real world example. I read that Python has immutable primitive types (e.g.…arrow_forwardIs there a benefit to using an array? Keep in mind that one-dimensional arrays are smaller than two-dimensional arrays when comparing the two.arrow_forward
- Unique answer onlyarrow_forwardIn your opinion as a Telecom Engineer, why do we need strings variables since we already have characters?arrow_forwardMachine Problem. Using arrays, write a C ++ program that will let user input the array size (how many elements). After inputting the array size, it should ask the user for the elements of the array. After inputting the elements of the array, it will prompt the user to choose the following options: 1. Get the sum of all the array elements. 2. Sort the numbers from largest to smallest. 3. Sort the numbers from smallest to largest. 4. Get the average of the array elements. The output must be similar to the sample below. Use cin, cout, and iostream only. Thank you!arrow_forward
- 1. Explain what a selection statement is in a sentence or two along with an example. 2. Explain what a loops are in a sentence or two along with an example. 3. Explain what arrays are in a sentence or two along with an example. 4. Give an example that uses selection statements, loops, and arrays together to accomplish an important task. 5. Is it possible to replace a selection statement with a loop? Is it possible to replace a loop with a selection statement? Clearly and concisely argue your position. No hand written and fast answer with explanationarrow_forwardYou are expected to generate a password of 8 characters. These characters can be between numbers and alphabets letters (small and larger). Arrays cannot be used in your programs. (C++ language)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