
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

Transcribed Image Text:1.
Write two void functions named greeting and terminating.
Greeting
function outputs "Hello, welcome to ET575!" to the console and
terminating function outputs "EXIT PROGRAM. GOOD BYE!" to the console.
Write a program to test the function.
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 3 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
- This question has 2 parts, in part A you will write a function and part B need to implement the function Part A - Write a function called getDistance. This function will have 2 parameters: first is the speed of the object in miles per hour the second is time traveled in hours. The function will return the distance traveld by multiplying the speed by the time passed by parameter. Part B will be a small program that will input the speed and time traveled by 2 vehicles. It will then print which vehicle traveld the furthest and must utilize the function written in part A appropriately. Complete the starter file below (copy and paste into your answer). #write your function here def main(): vehicle1_speed = int(input("Enter the speed of vehicle 1: ")) vehicle1_time = int(input("Enter the time vehicle 1 has traveled: ")) vehicle2_speed = int(input("Enter the speed of vehicle 2: ")) vehicle2_time = int(input("Enter the time vehicle 2 has traveled: "))…arrow_forwardConsider the following function prototype: void testFun (int x, int y = 7, char z = *): Which of the following function calls is correct? Select one: a. testFun(5); O b. testFun(5, 8); O c. testFun(0, 0, *); O d. All are correct.arrow_forward1. Write function printGrade in void function to compute and output the course grade. The course score is passed as a parameter to the function printGrade. (The program will take 5 inputs for 5 subjects. And show the grade of each subject. And calculate the CGPA) TTTE Percentage Score Quality Point Renark Letter Grade 8e - 100 75 - 79 70- 74 65- 69 6e- 64 55- 59 se - 54 45 - 49 40 - 44 35 - 39 e. 34 Excellent Extrenely Good Very Good Good Fairly Good Satisfactory Quite Satisfactory Poor 4.00 3.67 3.33 3.00 2.67 2.33 2.e0 1.67 1.33 Very Poor Extremely Poor Fail 1.00 Expected Output: Inputs 1. Mark for the programming is: 2. Mark for the Math is: 80 85 3. Mark for the Database System is: 4. Mark for the Software Engineering is: 5. Mark for the Business Fundamental is: 74 76 65 Output Letter Grade for Programming: A Letter Grade for Math: A Letter Grade for Database System: Letter Grade for Software Engineering: Letter Grade for Business Fundamental: Remark: B+ A- в Extremely Good 2.…arrow_forward
- Write a function myfunction that requests user input i the form of an integer value, 1, 2 or 3. The function should print out: 1. Option 1 selected 2. Option 2 selected 3. Option 3 selected when the corresponding number is entered, and the loop should end if q is entered. Any unrecognised options should result in the following statement being printed: • Unknown optionarrow_forwardWrite three void functions: Input three numbers, sort the three numbers, display the three numbers. Write a main program to test the functions. void input (int &a, int &b, int &c); void sort3 (int &a, int &b, int &c); void display (int a, int b, int c);arrow_forwardQUESTION 1 Write a complete program that consists of the main function that will call 4 user-defined functions. The task of each function is described below. 1. The first function is to display your information such as: a. Full Name b. Matrix No С. Group 2. The second function is to display a Plagiarism Declaration statement "I confirm that this LAB TEST is my own work and is not copied fror 3. The third and the fourth functions are based on the following problem Sound travels through the air because of collisions between the molecules in the air. The temperature of the air affects the speed of the molecules, which in turn affects the speed of sound. The velocity of sound in dry air can be approximated by the formula: Velocity 331.3 + 0.61 x Tc Write a function that allows the user to input a starting and an ending temperature. Within this temperature range, another function pass by value should output the temperature and the corresponding velocity in 1° increments using a do-while…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