Uses Catalogue -products] + addProducts() + deleteProducts() + modify Products() + loadProducts() + getProduct() +displayProduct() -orderld -orderDate -Items] Order +saveOrder() +printOrder() +createOrder() has id - name -category -price + constructors... + getters... + setters.... Products Item - productid -weight
Q: Analyse the following statement: • Database Management Systems and Data-Warehousing techniques are…
A: Answers:- the Privacy Brief has the right to be free from any undue personal intrusion. Information…
Q: Java Selection Sort but make it read the data 64, 25, 12, 22, 11 from a file not an array // Java…
A: Answer:
Q: 4. Exactly how many key comparisons will be done by Mergesort on the list [8, 7, 6, 5, 4, 3, 2, 1]?…
A: Merge sort (additionally commonly spelled as mergesort) is a productive, broadly useful, and…
Q: solve with Matlab Assignment vs. Equals is important in loops. An assignment is a - b and means…
A: Here is the matlab code of the above problem. See below steps.
Q: Consider the following class. 1. public class Duck { 2. private String name; 3. private int age;…
A: Java:- Java makes able to make software without thinking of the target OS but here it is dependent…
Q: C implementation for finding the whether an undirected graph is connected or not
A: C implementation for finding the whether an undirected graph is connected or not given in next…
Q: For the following subnet, find the least-cost path from G to A using Dijkstra's algorithm. Please…
A: In step 2, I have provided answer with handwritten solution images----
Q: Give the time complexity of the following method. void method1(int n) { } for (int i = n; i >= 1;…
A: The code given:- void method1 (int n) { for (int i = n; i >= 1; i--) { for (int j = n; j >= 1;…
Q: What is the number Os1324 (senary or base 6) as a decimal number? What is the decimal number 152416…
A: Conversion rules: For base 6 number with n digits, the decimal number is equal to the sum of binary…
Q: What is the 4-digit hexadecimal representation of the decimal number-60 in 2's complement?
A: The complete answer is below:
Q: A substring in programming represents all characters from a string, between two specified indices.…
A: The question has been answered in step2
Q: Fill in the LL(1) parse table for this grammar. noun verb modifier T S V O $
A: Solution- First- First of T -: {First(T) is First(S) and as given First (S) is 'noun' and First(M)…
Q: Write a Python Program to handle different types of exceptions that occurs at runtime in the Program…
A: Answer the above question are as follows
Q: 5. Create a toString() method that will return: Jane Doe, credits: 12 if Jane Doe is taking 12…
A: What does function toString() -A built-in Java method called function toString() that returns the…
Q: of We have created a function named calculate_stats, whose output is a tuple. Depending on whether…
A: c. b will always be a tuple of 2 or more elements. d. b will only contain the number of NaNs when…
Q: modifier: Consider the following grammar, with terminals noun, verb, and T→ SVO S → noun | MS V →…
A: Parsing Table : An LR parser using tables created from a grammar by a parser generator is one…
Q: Similar to the previous one but with some slight changes, what will the following piece of code…
A: Conditional statements in python: In programming languages, we frequently need to manage the flow of…
Q: State Reduction, Regular Expressions and CFL 1. Use the state reduction algorithm we talked in class…
A: To reduce the states from DFA we follow some steps such - In the DFA if any state is an exit that…
Q: Q.8 Write a note on: Ensemble Learning.
A: The question has been answered in step2
Q: how do i do #3 part b
A: Assuming the combinational logic above is the next-state logic of a FSM, and using flip-flops for…
Q: In linux code: 1. Identify command name options in the following command line $ ls -l / /usr . $…
A: The above question is solved in step 2 :-
Q: The coded message that follows is an encrypted message from Brutus to the Roman Senate. It was…
A: The above question is solved in step 2 :-
Q: determine dominant term and big O for the functions
A: Introduction: In this question, Some expressions are given and we have to find the dominant term and…
Q: Under what circumstances is it appropriate to say that two select statements from the same table…
A: Introduction: According to the data provided: We must express the above case in terms of RDMS, where…
Q: Describe an algorithm that given two regular expressions R1 and R2 outputs YES if and only if every…
A: To determine if every string generated by R1 is also generated by R2, we can iterate through every…
Q: #let's have some coffee coffee Coffee(__c_) coffee.sip() coffee.sip() coffee.sip() Select one or…
A: source code is : class Coffee: def __init__(self, coffee_type): print("Pouring your…
Q: When ever I run the code it says times = int(sys.argv[0]) ValueError: invalid literal for int()…
A: 1. Provide the code below where it will ask you for how many number of times u want to play. 2. In…
Q: Using the grammar and parse table below, show every step of an LR parser processing the token…
A: Answer the above question are as follow
Q: Give the time complexity of the following method. void method1(int n) { for (int i = n; i >= 1; i--)…
A: Time complexity can be measured through Big O notation. here in the function given loops are…
Q: With deadlock detection requested resources are granted to O a. resources O b. users O c. processes…
A: Here is the explanation of the above problem. See below steps.
Q: Using While statement, ask the user to input a number. If the user entered an odd number, the loop…
A: While statement : The while loop first verifies the condition before executing the sentence.…
Q: Which of the following criteria specifically describes the atomicity property? a.) Once transaction…
A: Solution: D is the right option: d). All SQL requests of a transaction must be completed; if not,…
Q: What are the theta values for the recurrences given below in Q1-Q3? (Show your work in details)…
A: Recurrence relation:- Recurrence relations are equations that depict sequences based on rules. It…
Q: Which of the following operations work in Python: Select one or more: a. x=2+3 b. C. x = +(2, 3) x =…
A: The complete answer in python is below:
Q: n linux code: Write command line for the following. Do submit only one cmd for each problem. ie One…
A: Dear Student, The command line for each part is given separately for a) we use tail command and for…
Q: Java create a class
A: Given :- In the above question, the code fragment is mention in the above given question Need to…
Q: 2. Consider the DFA defined by its transition graph as below. Given a DFA, we define the notion of a…
A: ANSWER:-
Q: RAM and 2K bytes of ROM along with interface unit of 128 registers each. A memory mapped is used.…
A: The answer is
Q: What is Dynamic Time Warping in algorithms.
A: Here in this question we have asked about dynamic time warping in algorithm.
Q: Why is the following query valid for a NATURAL join? SELECT album.title, artist.name FROM album…
A: Given To know about the SQL query SELECT album.title, artist.nameFROM albumNATURAL JOIN artist;
Q: Discuss how technical review and legal review compliment each other. Why is this holistic approach…
A: Answer: We have discussed about the technical review and legal review compliment each other. and why…
Q: what type of Big O time complexity is O(a * b) ? Does O(a * b) reduce to O(a) = O(n)/linear?
A: Does O(a * b) reduce to O(a) = O(n)/linear? Answer: No, a*b will take constant time so it is not an…
Q: Propose an ER digaram that maps with the below relational scheme. Project (ProjectNum, Project name,…
A: The ER Diagram:
Q: Java Merge Sort but make it read the data 12, 11, 13, 5, 6, 7 from a file not an array /* Java…
A: Program Approach: Step 1: Create class with the name of MergeSort. Step 2: Create mergeSort method…
Q: Write pseudocode and time complexity of Brute Force Algorithm?
A: It is equivalent to ordering the vertex if there is a path that passes through each vertices…
Q: Can you send me a copy of the program and could you please include comments to as much lines as…
A: I attached your answer below.
Q: N GO LANGUAGE
A:
Q: Theoretical Problems (13%) Question #1. What is an Information System? What are its main components?…
A: Used of Information system Interorganizational supply chains and electronic markets are managed…
Q: Comment on the current status of IPv4 and identify the major emerging problems for IPv4 and discuss…
A: Please find the answer in the below step. The current status of IPv4 and identify the major emerging…
Q: lain in detail the difference between IPsec a
A: Introduction: IP is an abbreviation for "Internet Protocol," which is a set of rules that governs…
Object-Oriented
Step by step
Solved in 5 steps with 1 images
i can't find the main method in this code , can you look at it please.
- An Art Museum needs to keep track of its artwork and exhibitions. The museum has a collection of artwork. Each piece of art has a unique id [ArtID], an artist, year and title. Artwork is categorized by type. There are two types, paintings and sculptures. Paintings have a paintType and style. Sculptures have a material, height and weight. Artwork is frequently shown in exhibitions. Each exhibition has a unique name, startDate, endDate. A listing of the artwork displayed at an exhibition is also retained. Below is an E-R diagram for a database to help the Art Museum. Provide appropriate names for entities E1, E2, E3, E4 identifiers 11, 12, 13, 14 missing attributes and relationship cardinality RC1 and relationship type RT1. Start_date End_date E1 E1 11 RC1 PaintType Style E3 13 A1 Title Year A/ A A/ A/ A/ A/ A/ A/ A A/ A/ E2 12 A/ E2 E3 E4 11 12 13 14 A1 A2 RC1 RT1 RT1 A2 Height Weight E4 14 Activate Go to SettinGranite Sales Company keeps information on employees and the departments that they work in. For each department, the department name, internal mailbox number, and office phone extension are kept. A department can have many assigned employees, and each employee is assigned to only one department. Employees can be salaried employees, hourly employees, or contract employees. All employees are assigned an employee number. This is kept along with the employee’s name and address. For hourly employees, hourly wage and target weekly work hours are stored (e.g. the company may target 40 hours/week for some, 32 hours/week for others, and 20 hours/week for others). Some salaried employees are salespeople that can earn a commission in addition to their base salary. For all salaried employees, the yearly salary amount is recorded in the system. For salespeople, their commission percentage on sales and commission percentage on profit are stored in the system. For example, John is a…The International Conference on Mathematical Sciences and Technology, Math Tech, is a biennial conference organised by the School of Mathematical Sciences, USM. This event is open to all national and international experts, practitioners, researchers, and academics to gather and share their knowledge. The details of fees for participation in the conference are shown in the following table. Category Local (RM) International (USD) Presenter 990 260 Observer 600 150 Note: 1 USD = RM4.20 Assignment Requirement Part 1: Create Invoice Construct a C++ program to do the following tasks: a. Enter the participant's name, category, nationality, accommodation (Yes/No). b. If the answer for the question on accommodation is Yes, the program will ask for the number of days. Then the program will call function calcAccommodation() to calculate the accommodation charges. calcAccommodation() receives accommodation (Yes/No), number of days and participation type (local/international) as parameters and…
- Question 3 Below code intends to use a variable grade to store a set of grades. Explain what is the syntax error and how to get it fixed. Only one line of code can be changed with other lines still being used. grade = (90,) grade.append(80) grade.append(70) grade.append(85) # syntax error: # how to fix: What sequence type you should use to create a look-up table between the following departments and colleges? The science college has departments of geo, bio; the Arts college has departments of anth, history. Complete the code so that the code will print out the college where the geo department is in. #Sequence type: dept2col= "geo":"science", "bio":"science", "anth":"Arts", "history":"Arts" print dept2col Which of the following statements are correct? O ArcPy data access module has been avaíable since ArcGIS 10.1 O ArcPy data access module has been avaiable since ArcGIS 10.o. O ArcPy data access module offers a cursor with faster access to data. O The cursor in data access module is the…The International Conference on Mathematical Sciences and Technology, MathTech, is a biennial conference organised by the School of Mathematical Sciences, USM. This event is open to all national and international experts, practitioners, researchers, and academics to gather and share their knowledge. The details of fees for participation in the conference are shown in the following table. Category Local (RM) International (USD) Presenter 990 260 Observer 150 Note: 1 USD = RM4.20 Assignment Requirement Part 1: Create Invoice Construct a C++ program to do the following tasks: a. Enter the participant's name, category, nationality, accommodation (Yes/No). b. If the answer for the question on accommodation is Yes, the program will ask for the number of days. Then the program will call function calcAccommodation () to calculate the accommodation charges. calcAccommodation() receives accommodation (Yes/No), number of days and participation type (local/international) as parameters and return…Create a formula that provides the start date of a project as follows: In cell H4, begin to enter a formula using the INDEX Use the Lookup table (range A2:E23) as the array. For the row_num argument, use the MATCH Use the Project ID (cell H2) as the lookup_value for the MATCH function. Use the ID column (range A2:A23) as the lookup_array for the MATCH function. Specify an exact match (0) for the MATCH function. Use the Start Date column (column 4) as the column_num for the INDEX function.
- a) TEMPID (Corp-ID = "Amawig") (works) b) TEMPID, City (Employee ▷ (corpan = " Amouig" (works)) c) TEmpID, City (CorpID="Amoudig" A Salary > 100000) works Employee d) EmpIn (Employee works Corporation) e) TEMPID ((Employee Amonages) MngrID = employee 2. EmpID A employee-Zipcode · Employce 2. zipcode ^ Employee.City = Employee 2. City) (Pemployeez (Employee)))Given the following Class table, write the DML statement to add a new class with the following information: The new class is "DBDA-001" with the class code 10095 The new class will be for Section 1 on Thursday 6:00-9:00 p.m The room for the new class is at "CIS 101". The professor's code (emp_code) to teach the new class is still undetermined.calculate_new_balance Given a starting balance (a number), and a list of transaction tuples, calculate the final balance for an account. Transaction tuples are of the shape ("description", amount, "withdrawal") , or ("description", amount, "deposit"). The last entry in the tuple will be either "withdrawal" or "deposit". Every withdrawal decreases the balance of the account by the specified amount, and every deposit increases the balance. The return value is the new account balance, as a number. (which could be negative) Sample calls should look like: >>> calculate_new_balance(100, [("payday", 20, "deposit"), ("new shoes", 50, "withdrawal"), ("illicit winnings", 200, "deposit")])270>>> calculate_new_balance(100, [])100
- P1 - Loan Payment Schedule Main Street Bank is offering an annual interest rate discount based on the client’s credit score. The discount for each credit score level is provided in the table below. The lowest credit score is 300 while the highest credit score is 850. For example, the new interest rate for a client with a credit score of 755 and a current interest rate of 4.25% would be 4.25 – 0.75 = 3.50% interest rate Credit Score Rating Interest Rate Discount 300 - 579 Very Poor 0.00 580 – 669 Fair 0.25 670 - 739 Good 0.50 740 - 799 Very Good 0.75 800 - 850 Exceptional 1.00 Use modular programming concepts Create a program that includes a WHILE loop to generate a payment schedule for loans that are paid in equal monthly payments Input the loan number and retrieve required loan account from MS_LOANS table Output is shown below Monthly interest is calculated by dividing the yearly interest rate by 12 to get a monthly interest…Richardson Ski Racing (RSR) sells equipment needed for downhill ski racing. One of RSR's products is fencing used on downhill courses. The fence product comes in 150-foot rolls and sells for $215 per roll. However, RSR offers quantity discounts. The following table shows the price per roll depending on order size: Quantity Ordered From To Price per Roll 1 30 $215 31 60 $195 61 ཙཙ 120 $175 121 and up $155 Click on the datafile logo to reference the data. (a) Use the VLOOKUP function with the preceding pricing table to determine the total revenue from these orders. $ (b) Use the COUNTIF function to determine the number of orders in each price bin. From To Price per Roll Number of Orders 1 30 $215 31 60 $195 61 120 $175 121 and up $155 172 12Branch(BranchNo, B_Street, B_Suburb, B_Postcode, Staff_No*, Start_Date, Monthly_Bonus, Telephone1, Telephone2, Telephone3, S_Name*) Staff(StaffNo, S_Name, S_Address, Position, Salary,Branch_No*, Supervisor_No) Property(PropNo, P_Street, P_Suburb, P_Postcode, Type, NoOfRooms, WeeklyRent, AvailableForRent, AdOnOtherWebsites, Staff_No*, S_Name*) 1. For each of these relations, write down all functional dependencies. If there are nofunctional dependencies among attributes, you must state so. Subject: MYSQL