#Data is given in the order: Serial Number | Item Name | Quantity | Price price_list = [["01","Keyboard",4,200.0],["02","Mouse",4,150.0],["03","Printer",2,300.0]] #Write Code to increase the price of all the items by 50 taka
Q: The volume of any cylinder can be calculated using the following formula: volume = π * radius² *…
A: algorithm:- read value of r and h. if r>0 && h>0 v=3.1416*r*r*h display v…
Q: Is it more challenging to design GUIs using pixel-based coordinates?
A: The solution to the given question is: Most of the elements are controller with a joystick , as flat…
Q: A CPU scheduling algorithm often favors those processes that have used the least processor time in…
A: CPU scheduling decisions can occur under any of the following circumstances, When a process…
Q: Question 10 1. Assume we are using 2 keys: K1 and K2, which of the following schemes is stronger…
A: 1. Assume we are using 2 keys: K1 and K2, which of the following schemes is stronger and why?…
Q: You create a suffix trie out of the string MISSISSIPPI$. Assume that the root is at depth 0, its…
A: Given string : MISSISSIPPI$
Q: 3. Construct npda's that accept the following regular languages: (b) L2= L (aab* aba*).
A: Introduction: Push-down automata are finite automata with additional memory (stack) (PDA). A PDA…
Q: Provide at least two examples of the graph data structure use cases and explain how using this data…
A: Introduction: Consider the most efficient way to address the problem first. The problem would…
Q: Let A and B be two fuzzy sets in the universe of discourse X=(x1, x2, x3, x4, X5, X6) defined as…
A: Solution: Given, A = {0/x+1/x₂+ 0.7/x, +0.4/x, +0.2/xg+0/x6} B={0/x1 +0.4/x2+0.7/x3+0.8/x,…
Q: Table name: DIRECTOR DIR_NUM DIR_LNAME 100 Broadway 101 Hollywoody 102 Goofy Table name: PLAY…
A: The queries for creating the tables and inserting data is given in the below steps along with OUTPUT…
Q: java Compute a table representing the Knuth-Morris-Pratt failure function for the pattern string…
A: Your Java program is given below as you required with an output.
Q: Given a graph G and a vertex x of G, present an O(m+n) time algorithm that uses DFS to compute and…
A: Answer Kosaraju∈TM Strongly connected component algorithm can computes and returns the number of…
Q: Find the dissimilarities between PC OS development and mainframe OS design.
A: There are several distinctions between developing operating systems for mainframe computers and…
Q: You are investigating a malware incident that you believe may be a remote access trojan (RAT). Which…
A: The solution to the given question is: The most likely tool that would show if the malware has an…
Q: Why do hash table collisions occur, and how can they be prevented? Please allow me to illustrate…
A: the issue of collision that occurs in hash tables, and how it may be fixed with an example. When two…
Q: Please note this truth table has 5 columns; you might need to scroll across to see the final column…
A: Given, j k ¬(¬j∧k) j∨¬k ¬(¬j∧k)→(j∨¬k) T T T T F T T T F T F F F T From…
Q: different ways to examine your website, check security with techniques and methods
A: There are several ways to examine your website for security. One method is to use a tool like a web…
Q: You need to store a string Canton in a computer storage device. If it is stored as a piece of…
A: Dear Student, The answer to your question is given below -
Q: Represent the expressions a) (x + xy) + (x/y) and x + ((xy + x)y) using binary trees. Write these…
A: Prefix: A prefix is a group of letters added to the beginning of a word. It changes the meaning of…
Q: is it correct ? Write a function to count how many numbers in one string.. Answer: #include…
A: Answer: Explanation: We have seen your code is correct and because we have given input string…
Q: 1. Given, nCr n! (n-r)!r! Write a function to compute nCr without recursion.
A: Solution: Recursive function Implementation: int nCr(int n, int r){ if(n<r){ return…
Q: A poorly designed hash map has resulted in all values being lumped together (that is, they are all…
A: Introduction: Hash tables are groups of arranged things that make it possible for them to be readily…
Q: A quality engineer establishes and maintains a company's quality standards and tests systems to…
A: Quality engineer is basically responsible for quality of product. Whether that product is working in…
Q: Predefined production reports Adhoc queries and searches Drill down capability to see data details…
A: The following solution is
Q: . Define a Turing Machine that accepts the following language: L = {w ∈ {!, }∗| w = vw'v where v, w'…
A: INTRODUCTION: A mathematical model of computing known as the Turing machine describes an imaginary…
Q: A 2. Among all 8 CBK domains, in which CBK domain do you believe you own the strongest knowledge and…
A: let us see the answer:- Introduction:- The Common Body of Knowledge (CBK) in security is a thorough…
Q: Design a CFG for language L and show how that CFG can be used to derive the string s: L =…
A: Given that:
Q: Which of the following interactions is/are synchronous? Why? A. Remote Control and Television set…
A: Dear Student, The answer to your question is given below -
Q: In class we considered the computational complexity of global localization as a hypothesis…
A: Dear Student, The answer to your question is given below -
Q: Which of the following code snippets correctly traverses the contents of a linked list, from…
A: Here we need to traverse a linked list content from beginning till end. So we will need a current…
Q: 5 7 14 8 11 28 -1.38 -2.01 12.88 Given the original data matrix A = principal components Anew = - […
A: To create a covariance matrix.
Q: C++ Write a function that draws a square as given below.
A: Here is the c++ program of the above problem. See below steps.
Q: Which options can be a service consumer? (choose multiple) 1- JSON 2- CURL 3- postman 4- an HTTP…
A: Introduction: Design and implement integrated business applications and mission-critical software…
Q: Put the following requests in the order they would be handled by the operating system: A program…
A: Operating System:- The operating system acts as an interface between the hardware and the user.
Q: What distinguishes the Internet from the WWW and what similarities do they share?
A: When compared to one another, this question demonstrates how the World Wide Web differs from the…
Q: The use of cloud-based software has several benefits over the more conventional approach of storing…
A: The advantages of a cloud-based programme over a typical client-based storage solution are discussed…
Q: Consider the set of F of the following functional dependencies on relation R(A, B, C, D, E): AB C…
A:
Q: Use D flip-flops to design a counter with the following repeated binary sequence: 0, 4, 2, 6, 10, 8,…
A: Please refer to the following step for the complete solution to the problem above.
Q: It is possible to obtain and execute an instruction
A: Dear Student, The answer to your question is given below -
Q: What command lists all files (not directories) in your current directory? What command lists all…
A: Let's see the answer:
Q: Does a hash table of size m contain exactly m linked lists? To me, a hash function serves no…
A: To distinguish the single item from a collection of related things, hashing is utilised.Hash tables…
Q: All mammals feed their young. Whales feed their young. Therefore, whales are mammals a. True…
A: Introduction: A logical degree of analysis is needed to determine the right answer in aptitude…
Q: Task 1 Construct 8-bit input encoder by using Verilog language and then create appropriate circuit.…
A: Here is the explanation regarding Verilog:
Q: 6 7 8 9 10 11 12 13 14 1234 in 15 16 17 18 66649. 19 20 } 21 } int numi; int num2; int num3; int…
A: Below is the syntax error while running the above code . javac…
Q: QUESTION 1 In ML, which statement is true about the difference between tuples and lists? O a list…
A: The solution is given in the below step with explanation
Q: What are the features of a compiler based PL? Faster run time speed Good for quick prototyping…
A: We have to choose the features of a compiler based PL from the given options.
Q: please explain each one
A: Secure Socket Layer (SSL) Data transit between a web browser and the server is secure with the use…
Q: Place the following operations for converting a context-free grammer into Chomsky normal form in the…
A: The Chomsky normal form stands as CNF. A context-free grammar is in CNF if the production rules…
Q: . Describe and discuss common authentication types. Give examples to support your answer.
A: An authentication factor is information and a process used to verify a person's identity for…
Q: + is my answer correct ? Write a function to convert a given string : Answer: #include #include…
A: Answer:
Q: write java code segment that create a class C and C class inherits from B. The C class contain an…
A: Answer :
#Data is given in the order: Serial Number | Item Name | Quantity | Price
price_list = [["01","Keyboard",4,200.0],["02","Mouse",4,150.0],["03","Printer",2,300.0]]
#Write Code to increase the price of all the items by 50 taka
#Code1
#Write code to add a new item to the list using user input
#Code2
print()
#Print the list using nested loops
#Code3
#Sample output given below:
Enter Serial: 05
Enter Item Name: Monitor
Enter Quantity: 200
Enter Price: 50
01
Keyboard
4
250.0
-----------------
02
Mouse
4
200.0
-----------------
03
Printer
2
350.0
-----------------
05
Monitor
200
50
-----------------
Step by step
Solved in 4 steps with 2 images
- add code to display the information of each part in addition to the total inventory value in a table format. Old part number is OLS0001, quantity 30 and price 0.80, 24 is total inverntory Expected output: SMS0001 0.35 20 7.00 OLS0001 0.80 30 24.00 #include <stdlib.h>#include <stdio.h>#include <string.h>int main() { struct partitem { char number[10]; float price;};struct partitem part, oldpart;int oldpartqty; float oldpartprice;int qty = 20;part.price = 0.35;strcpy(part.number,"SMS0001");printf("price = %.2f\n",part.price);printf("name = %s \n", part.number);printf("quantity %d \n",qty );printf("enter oldpart\n");scanf("\n %s",oldpart.number);printf("\nold part number is %s",oldpart.number);printf("\nold part price");scanf( "%f",&oldpartprice);printf("old part qty");scanf("%d",&oldpartqty);printf("the price of the old part is %.2f \n",oldpartprice);printf("the qty of the old part is %d \n",oldpartqty);return 0;}Use python Pandas: DataFrames : Perform the following tasks with pandas DataFrames: a. Create DataFrame names temperatures from a dictionary of six temperature reading each for “A”, “B”, “C”, “D”, “E”, and “F”. b. Recreate the DataFrame temperatures in Part (a) with custom indices using the index keyword argument and a list containing ‘M’ ‘Afn’, and ‘Eve’. c. Select from temperatures the column of temperature reading for C d. Select from temperatures the column of temperature reading for A, and B e. Select from temperatures the row for ‘M’ and ‘Afn’ temperature readingIf the following is a pointer based list, give the correct commands that change the list from BEFORE to AFTER. BEFORE Plane Bike Pickup Caddy Truck Motorbike Van Ship AFTER Plane Bike Caddy Truck Motorbike Van Scooter Ship Select one: A.insert (5, "Scooter"); delete ("Pickup") B.insert (6, "Scooter"); delete ("Pickup") C.delete ("Scooter"); insert(2, "Pickup") D.delete ("Pickup"); insert (6, "Scooter")
- in vaccine.txt it search how many vaccine are available. in dist.txt we have to import vaccines likes we have to store data in dist.txt and in vaccine.txt is should read data #include <stdio.h>#include <stdlib.h>#include <string.h> struct vacc{ char vaccName[15]; char vaccCode[2]; char country[15]; int qty; float population; }v[10]; // Function Declarations void create_inventory(); void update_vacc_qty(); int search_vaccine(); void display_vaccine(); // Main Function starts here int main() { //create_inventory(); //display_vaccine(); //search_vaccine(); update_vacc_qty(); return 0; } //Function to Create Vaccine.txt as per the given table void create_inventory() { int option = 1; // variables to collect data as per table given char vaccName[15]; char vaccCode[2]; char country[15]; int qty; float populaion; //File definition FILE *infile; infile = fopen("Vaccine.txt","w"); // file opening for writing if(infile == NULL) // Checking for the file…/* * CECS 2223, Computer Programming II Laboratory * Winter 2021, Sec. 05 * Date: April 20, 2022 * Topic: Composition * File name: SP-22_lab05 * This file implements the Catalogs class * Name: [YOUR NAME HERE], ID#[YOUR ID NUMBER HERE] * Complete the C++ code as required */ // write the correct include statement int main(){ // create the catalog for Polytechnic University // call the method to print the university's catalog // add the following courses to the catalog: // MATH 1350 Calculus I, 4 credits // CECS 2233 Computer Programming II Lab, 0 credits // EE 1130 Freshman Design for Electrical and Computer Engineers, 3 credits // CECS 2222 Computer Programming II, 4 credits // print the catalog to show all courses added // print the phrase "Program developed by YOUR NAME, YOUR ID#" // with your personal information. return 0; }Analyze the following code:int matrix[5][5];for (int column = 0; column < 5; column++);matrix[4][column] = 10; Select the correct option: After the loop, the last row of matrix 10, 10, 10, 10, 10. After the loop, the last row of matrix 0, 0, 0, 0, 0. A syntax error, because column is not defined. After the loop, the last column of matrix 10, 10, 10, 10, 10. After the loop, the last row of matrix 0, 0, 0, 0, 10.
- A teacher stores the most recent quiz scores for her class in the list scores. The first element in the list holds the maximum possible number of points that can be awarded on the quiz, and each remaining element holds one student’s quiz score. Assume that scores contains at least two elements. Which of the following code segments will set the variable found to true if at least one student scored the maximum possible number of points on the quiz and will set found to false otherwise?Create a dictionary (order_dict) that the key is the burger number, and the value is a list of the quantities. For example: order_dict which is {'1': [10, 3, 78], '2': [35, 0, 65], '3': [9, 23, 0], '4': [0, 19, 43], '5': [43, 0, 21]} Create a dictionary (total_order_dict) that the key is the burger number, and the value is the total of the quantities for that burger. For example: total_order_dict which is {'1': 91, '2': 100, '3': 32, '4': 62, '5': 64} Use "assert to test the values of the total_order_dict For example: expected_result_ototal_order_dict = {'1': 91, '2': 100, '3': 32, '4': 62, '5': 64} assert actual_result_ototal_order_dict['1'] == expected_result_ototal_order_dict['1'] , "The actual result is not the \same as expected result for the order number 1!" (and test the other elements) The function can be like: def test_sum(): #Testing assert actual_result_ototal_order_dict['1'] == 91, "The actual result is not the \ same as expected result for the…In Dist.txt it will add vaccine in storage like how many vaccines are needed and from where is coming and Add search function in which from user it will check how many vaccines are available in storage this will be done in Vaccine.txt somewhat like in image given #include <stdio.h>#include <stdlib.h>#include <string.h> struct vacc{ char vaccName[15]; char vaccCode[2]; char country[15]; int qty; float population; }v[10]; // Function Declarations void create_inventory(); void update_vacc_qty(); int search_vaccine(); void display_vaccine(); // Main Function starts here int main() { //create_inventory(); //display_vaccine(); //search_vaccine(); update_vacc_qty(); return 0; } //Function to Create Vaccine.txt as per the given table void create_inventory() { int option = 1; // variables to collect data as per table given char vaccName[15]; char vaccCode[2]; char country[15]; int qty; float populaion; //File definition FILE *infile; infile = fopen("Vaccine.txt","w");…
- What is the most a book has been sold for? CREATE TABLE `volume` (`inventory_id` int(11) NOT NULL,`ISBN` char(17) DEFAULT NULL,`condition_code` int(11) DEFAULT NULL,`date_acquired` date DEFAULT NULL,`asking_price` decimal(7,2) DEFAULT NULL,`selling_price` decimal(7,2) DEFAULT NULL,`sale_id` int(11) DEFAULT NULL); INSERT INTO `volume` (`inventory_id`, `ISBN`, `condition_code`, `date_acquired`, `asking_price`, `selling_price`, `sale_id`) VALUES(1, '978-1-11111-111-1', 3, '2019-06-12', '175.00', '175.00', 1),(2, '978-1-11111-131-1', 4, '2019-01-23', '50.00', '50.00', 1),(3, '978-1-11111-133-1', 2, '2018-04-05', '300.00', '285.00', 1),(4, '978-1-11111-142-1', 1, '2018-05-05', '25.95', '25.95', 2),(5, '978-1-11111-146-1', 1, '2018-05-05', '22.95', '22.95', 2),(6, '978-1-11111-144-1', 2, '2019-05-15', '80.00', '76.10', 2),(7, '978-1-11111-137-1', 2, '2019-06-20', '80.00', NULL, NULL),(8, '978-1-11111-137-1', 3, '2019-06-20', '50.00', NULL, NULL),(9, '978-1-11111-136-1', 1, '2018-12-20',…Create a static dictionary with a number of users and with the following values: First name Last name Email address Password Ask the user for: 5. Email address 6. Password Loop (for()) through the dictionary and if (if()) the user is found print the following: 7. Hello, first name last name you have successfully logged in 8. Notify the user if the password and email address are wrong 9. Additional challenge: if you want the program to keep asking for a username and password when the combination is wrong, you will need a while() loop. 10. Save the file as assignment03yourlastname.py(Class Average: Reading Student Records from a CSV File) Use Python Use the csv module to read the grades.csv file from the previous exercise (exercise 9.3). Display the data in tabular format, including an additional column showing each student’s average to the right of that student’s three exam grades and an additional row showing the class average on each exam below that exam’s column. This is exercise 9.3 # Importing csv moduleimport csv# empty list to store datadata = []columns = ["firstname", "lastname", "grade1", "grade2", "grade3"]filename = "grades.csv"for i in range(3):firstname = input("Enter First Name : ")lastname = input("Enter Last Name : ")grade1 = float(input("Enter Grade 1 : "))grade2 = float(input("Enter Grade 2 : "))grade3 = float(input("Enter Grade 3 : "))data.append([firstname, lastname, grade1, grade2, grade3])print()# write data and columns as csv filewith open(filename, 'w') as csvfile:# creating a csv writer objectcsvwriter = csv.writer(csvfile)# writing the…