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
python
use the "get_first_name" function in the "names" module and create a list of 8 first-names.
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
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 use PYTHON def count_scrabble_points(user_input): """ The function ... """ tile_dict = { 'A': 1, 'B': 3, 'C': 3, 'D': 2, 'E': 1, 'F': 4, 'G': 2, 'H': 4, 'I': 1, 'J': 8, 'K': 5, 'L': 1, 'M': 3, 'N': 1, 'O': 1, 'P': 3, 'Q': 10, 'R': 1, 'S': 1, 'T': 1, 'U': 1, 'V': 4, 'W': 4, 'X': 8, 'Y': 4, 'Z': 10 } if __name__ == "__main__": ''' Type your code here. ''' Thank you!arrow_forward*Coding language is Python Write a program that opens the productsales.txt file and reads the sales into a list. The program should output the following information, in this order: The total of all sales in the list The average of all sales in the list The lowest sale in the list The highest sale in the list NOTE: Your program should include at least one user-defined function, in addition to the main function. 4147 1594 2235 8433 10000 129 5555 7030 9764 7465 1111 4444 8954 2243 2895 1436 4978 5486 1436 9846 4789 8456 2497 2280 6375arrow_forwardCreate the follow program using Raptor, pseudocode, flowcharting, or Python per your instructor, A Python program is also acceptable. Use the concepts, techniques and good programming practices that you have learned in the course. You have unlimited attempts for this part of the exam. Input a list of employee names and salaries and store them in parallel arrays. End the input with a sentinel value. The salaries should be floating point numbers Salaries should be input in even hundreds. For example, a salary of 36,510 should be input as 36.5 and a salary of 69,030 should be entered as 69.0. Find the average of all the salaries of the employees. Then find the names and salaries of any employee who's salary is within 5,000 of the average. So if the average is 30,000 and an employee earns 33,000, his/her name would be found.arrow_forward
- Please Python correctly thanks def get_written_date(date_list): """ The function ... """ month_names = { 1: "January", 2: "February", 3: "March", 4: "April", 5: "May", 6: "June", 7: "July", 8: "August", 9: "September", 10: "October", 11: "November", 12: "December", } return month_names[int(date_list[0])]+ " " + str(int(date_list[1])) + ", " + date_list[2] # Finish the function # Return the date string in written format if __name__ == "__main__": print(get_written_date(["01", "02", "2022"])) print(get_written_date(["01", "12", "1970"])) print(get_written_date(["04", "14", "2020"])) print(get_written_date(["06", "19", "2000"])) assert get_written_date(["01", "02", "2022"]) == 'January 2, 2022' assert get_written_date(["01", "12", "1970"]) == 'January 12, 1970' assert get_written_date(["04", "14", "2020"]) == 'April 14, 2020' assert…arrow_forwardWrite a Menu Driven C++ program that creates a character array/string by taking input from the user and perform the following tasks by displaying the menu to the user, the menu operations are implemented using functions:a) Calculate the length of the string.b) Count the number of words in a string.c) Check a string is palindrome or not.d) Find a word within the array. If found display its starting position.e) Convert a string in lowercase.f) Convert a string in uppercase.Note: Make all code separately and then merge them all in a menu. Use switch statement for menu.arrow_forwardAssume that you have a data structure of the following: A list of hockey players. Each hockey player is a list that includes their Rank (int), Name (String), Team (String), Age (int), Goals (int), Assists (int), Points (int) in that order. Write a function called most_goals that takes in the list of hockey players and returns the name of the player with the most goals. solve in python programming languagearrow_forward
- 8. Write a C++ program to read input the elements of an integer array of size 10 and find whether the array contains the number 10 at two adjacent indexes or not. Print "Found"/"Not Found" to display the result. Programming language: C++arrow_forwardC Programming Language Note: Input and Output Must be the same Write in C Languagearrow_forwardPYTHON Problem Statement Given a list of numbers (nums), for each element in nums, calculate how many numbers in the list are smaller than it. Write a function that does the calculation and returns the result (as a list). For example, if you are given [6,5,4,8], your function should return [2, 1, 0, 3] because there are two numbers less than 6, one number less than 5, zero numbers less than 4, and three numbers less than 8. Sample Input smaller_than_current([6,5,4,8]) Sample Output [2, 1, 0, 3]arrow_forward
- Using 2D Arrays, create a complete C# program that will accept 10 of your classmates’ names and their Prelim GWA. The program should sort the list based on the highest GWA.arrow_forwardDesign a program that allows the user to enter 20 names into a String array. Sort the array in ascending (alphabetical) order and display its contents. do flowchart in c++arrow_forwardPython. COMMENT A WELL EXPLANATION FOR EACH STEParrow_forward
arrow_back_ios
SEE MORE QUESTIONS
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