
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
pythone please

Transcribed Image Text:Q 6: List (list.py)
Write a python program that uses 3 types of any list methods in (ch7, slide#13) you should
start by displaying a menu that provides 4 options:
• Option 1
Option 2
• Option 3
• Press 999 to exit
You must include a main function and function for each option.
Sample Program Run (User input in bold) :
List of Nursing Procedures are here please choose one
1. Add to the list
2. Sort the List
3. Reverse the List
4. 999 to exit
Your Selection: 1
-Erter
Current list: Dressing, oxygen admin. , Vital signs
add to list: medication PErter
New List: Dressing, oxygen admin. , vital signs, medication
List of Nursing Procedures are here please choose one
1. Add to the list
2. Sort the List
3. Reverse the List
4. 999 to exit
Your Selection: 999 -trter
*** Good Bve ***
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 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
- C++arrow_forwardWhich function members are accessors?arrow_forwardPlease use C# using System; namespace UsernameProcessor.Question; public sealed class UsernameProcessorService { ///<summary> /// Requirements: /// - A valid username shall be at least 4 characters. /// - A valid username shall contain only letters, numbers and an optional underscore. /// - A valid username shall start with a letter, and shall not end with an underscore. ///</summary> ///<paramname="username">The username to be validated</param> ///<returns>Whether or not the username is valid per the above requirements.</returns> publicstaticboolIsValidUsername(stringusername) { thrownewNotImplementedException("TODO: please validate our usernames!!!"); } ///<summary> /// Feel free to use the below main function to test and develop accordingly! ///</summary> publicstaticvoidMain(string[]args) { Console.WriteLine(IsValidUsername("Valid_Username")); Console.WriteLine(IsValidUsername("Invalid Username")); } }arrow_forward
- The code you will need for this assignment is here (in C file) /* YOUR NAME HERE* CSCI 4100* Programming Assignment 2* The Nut Shell - a simple shell that executes commands*/ #include <stdio.h>#include <stddef.h>#include <stdlib.h>#include <string.h>#include <ctype.h>#include <sys/types.h>#include <sys/wait.h>#include <unistd.h> #define MAX_LINE 256#define MAX_ARGS 64 int is_blank(const char *cmd);void parse_args(const char *cmd, char *argv[]);void read_line(char *line); int main(){/* YOUR CODE HERE */} /* Checks if a string contains only whitespace* str - the string to check* returns 1 if str contains whitespace, 0 otherwise*/int is_blank(const char *str){int i = 0;while(str[i] != '\0') {if(!isspace(str[i++]))return 0;}return 1;} /* Reads a line of text from the console* line - an allocated array of characters of size MAX_LINE* where the function can store all of the characters read.*/void read_line(char *line){char c;int chars_read =…arrow_forwardC++ Progarm ==========================================// PetFoodCompany.h #ifndef PETFOODCOMPANY_H#define PETFOODCOMPANY_H class PetFoodCompany{public:PetFoodCompany(); char getQuarter(); void setQuarter(char quarter); float getTotalSales(); void setTotalSales(float totalSales); float getTotalExpences(); void setTotalExpences(float totalExpences);double netIncome();char * getCompanyName();void setCompanyName(char name[]);char * getDivisionName();void setDivisionName(char dname[]); private:// Declaring variableschar companyName[40];static char quarter;char divisionName[40];static double BonusBudgetRate;float totalSales;float totalExpences;};#endif Petfoodcampany.cpp #include <iostream>#include <cstring>using namespace std;#include "PetFoodCompany.h" double PetFoodCompany::BonusBudgetRate = 0.02;char PetFoodCompany::quarter = '1'; PetFoodCompany::PetFoodCompany(){strcpy(companyName, "myCompanyName");}char…arrow_forwardCreate a library named programmerwhich describes a software programmer using the following properties. -FName: the programmer's first name(a string of 25 characters max) -LName: the programmer's last name (a string of 25 characters max) -Years: the programmer's number of years of experience. -Age: the programmer's age.-Gender: the programmer's gender ('M' or 'F'). Write a header file ‘programmer.h’ whichcontains user defined structure representing a programmer(programmer_t) and functions to accomplish the following tasks: -Read a programmer's properties. -Compare two programmers years of experience. -Print a programmer's properties as follows (example): Name: Joe Smith Age: 45years Gender: M Years of experience: 20 yearsarrow_forward
- Java Programming Assignment 6 – The Web Browser Web browsers are deceptively complex programs. The simple task of opening a web page carries a lot of steps: networking calls, protocol exchanges, rendering graphics, download and storage, JavaScript functionality, etc. It’s a lot to handle. The myriad number of tasks at hand provides a great example of different situations for collecting and managing information. Perfect for trying out the Java Collections Classes. Program requirements: • Create a new class, called “WebBrowser.” Inside it, place your main program. When run, your program will ask the user for commands. The following commands should be provided: o GOTO o DOWNLOAD o BACK o FORWARD o SHOW_DOWNLOADS o CLEAR_DOWNLOADS o SHOW_HISTORY o CLEAR_HISTORY o END • For the command above, should be any user-input String in the format of a typical web address. • Inside your WebBrowser main program, create the following: o A Stack of Strings called “backwards” o A Stack…arrow_forwardSmart" Internet of Things, e.g., smartphones or smart cars, are smart because devices are equipped with sensors. [ True / False ] All smartphones and most IoTs have a small database package embedded in themselves. The embedded database package is called mySQL. [ True / False ] XCode Swift does not care about the types of data. [ True / False ] Swift is an object-oriented programming language. [True / False ] In Swift, any variables can be simply used without having to declare them first. [True / False ] In Swift, functions can receive a function as an argument. [True/False] In Swift, functions can return another function as a complete argument. [True/False] Ultrasonic distance sensor is an active sensor [ True / False ] Most sensors themselves do not send their data to another outside. In such cases, (9) _______ can be used, which has GPIO pins to wire with sensors in two pinout modes: (10) _________ mode and (11) ______ mode. Fill in the blank.arrow_forwardDevelop a Visual C# .NET solution that provides a login authentication service. This solution will have a class library component and two application components contained within the same solution. The LoginAuthenticator Class Create a class library project named LibLoginAuthenticator that contains a class named LoginAuthenticator. The LoginAuthenticator class must support the following features: •The class defines a public string read/write property named Username which gets/sets the Username for the authenticator. • The class defines a public string property named Password which sets the Password for the authenticator. The get part should be private. •The constructor for the class should set the initial values of Username and Password to null. • The class defines a public method named Authenticate with no parameters which returns a bool? (nullable bool) value. • If either Username or Password is null, the method should return null to indicate that not all fields were provided. • If…arrow_forward
- SyntaxError: invalid syntax (<string>, line 56)arrow_forward//in c# // I am having problem with my regex fitting the requirments using System;using System.Text.RegularExpressions; namespace UsernameProcessor.Question{ public sealed class UsernameProcessorService{ /// <summary> /// Requirements: /// - A valid username shall be at least 4 characters. /// - A valid username shall contain only letters, numbers and an optional underscore. /// - A valid username shall start with a letter, and shall not end with an underscore. /// </summary> /// <param name="username"></param> /// <returns>Whether or not the username is valid per the above requirements.</returns> private static Regex sUserNameAllowedRegEx = new Regex(@"^(?=[a-zA-Z])[-\w.]{0,23}([a-zA-Z\d])$", RegexOptions.Compiled); private static Regex sUserNameIllegalEndingRegEx = new Regex(@"(\-_)$", RegexOptions.Compiled); public static bool IsValidUsername(string username) { if (string.IsNullOrEmpty(username) ||…arrow_forwardC++ Language Please fill in the blanks for the following statements: The file extension for the file that contains the class definition is ______________.arrow_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