· What should the entries 1-9 be in the following table? The language in question is { b*la' | i 3 0 }. i+1.i a aa b 1 2 3 bb 4 bbb 7 8
Q: Provided the following structure: typedef struct coin { char name[30]; int id; double price; }…
A: Answer is Option 1) AltCoin acoin; strcpy(acoin.name, "JamesCoin"); option 2) is wrong…
Q: Explain about new and delete keywords with code (B) What is
A: #include <iostream> using namespace std; int main() { // declare an int pointer int*…
Q: Please Explain this code Step by Step (How Code Works). #include #include #include char…
A: Program is given and need to explain how it is work.
Q: #include int main(int arge, char * argy { int x = argc-1; int num1[x]:
A: #include<stdio.h> /* header file for input output statement */ #include<stdlib.h> /*…
Q: Table Q2 shows four countries and their population for 4 years (in millions). Given the main program…
A: Array indexing starts from 0 So, for malaysia data we have tp access second row which is having…
Q: Modify the code fragment below from topic#16's activity so that it will introduce a pointer to…
A: Here, one C++ Program given with structure concept implemented in it. We have to modify the concept…
Q: #include #include void main( ){ char string1 [100]; char string2 [25]="Mohammed Abdullah,"; char…
A: Answer: Second Option is correct. Because first two is strcat and last one is strcpy so whatever is…
Q: Ilinclude using namespace std; string USERNAME [ 20] -{"Rey", "Jasper", "Paula"}; string PASSWORD[…
A: An algorithm is an informal description of the steps used to solve a specific problem. It is a…
Q: progran int bigger (int, int); int smaller (int, int); int main() int x - 30: int y - 27: int 2-…
A: Actually, the code has given below:
Q: In C#, you must __________ a variable before you can use it to store data. a. cite b. associate c.…
A: Before using the variables to store data, they must be declared. The variable declaration specifies…
Q: Addition Rule Product Rule Log Exponent Rule Log Base Rule Transitivity In the following…
A:
Q: 1. Which keyword is used to define the user defined data types? a) def p) union =) typedef d) type
A: The user define some of the data types according to its need and those data types are also known as…
Q: 9. Which of the following is NOT a set operation function in Python language? A. difference B.…
A: Note: The answer to question 9 is shown below. Please repost the question 10 to get its solutions as…
Q: In C program Create Student Library with the following components: student_t : user-defined type…
A: Student.h struct student { int StudentID; char firstname[20];…
Q: oks My library > IT 140: Introduction to Scripting v3 home > 2.3: Dictionary basics 8 zyBooks…
A: Algorithm: Start Initialize a dictionary with given data Print the dictionary Add new items to the…
Q: Consider the following directory structure and write a non-recursive function to calculate the total…
A: The Tree is consisting of directory which has different courses and whereas it has chapters in it as…
Q: 4) #include char c[7] = "ABCDE"; struct uuu { int value; 24EB char *ptr; } q; struct uuu *p = &q;…
A: The problem is based on the basics of structures in C programming langauge.
Q: BST algo If root == NULL return NULL; If number == root->data return root->data; If number data…
A:
Q: int numl =5; int num2 = int num3 = num2 % numl; if (numl + num2 > 7) 6; pow (num1,2); num3 + num2 /…
A:
Q: Given the following... int j; int sum; double sale[10][7]; Which of the following correctly finds…
A: b. sum = 0; for(j = 0; j < 7; j++) sum = sum + sale[4][j]; will find the sum of…
Q: Consider the following structure: struct student { int id; char…
A: Actually, given structure: struct student { int id; char name[50]; float…
Q: Teacher has prepared the result of a class containing n number of students. He wants to give the…
A: C++: C++ is an object oriented programming language that was developed as an extension of…
Q: Study the following code segment and identify the line that will cause a syntax error int Manipulate…
A:
Q: Which is a correct statement for declaring a structure? Which is function for dynamic memory…
A: Here we have to select correct answer for given set of Questions .. - Which is a correct statement…
Q: uppose, you are running a book shop. You have 80 books there. Design a structure name Book_info to…
A: We need to define the Structure and price_change() functions as per the given description.
Q: Given the following declaration: int j; int sum = 0; double expenses [15] [8] ; Which of the…
A: GIVEN:
Q: 4. What will be stored in person at the end of this code? var firstName; var lastName; var age; var…
A: 1) Code snippet in question is JavaScript code 2) It declare 4 variables firstName, lastName,age and…
Q: SUBJECT: OOP Programming Language: C++ Read data from file and print number of Grade…
A: CODE : #include<bits/stdc++.h>using namespace std;int main(){ string str; ifstream…
Q: ; declarations 14. medicine equ 0 quantity equ 9 stock resb struct*100 mov rcx, 100 mov esi, 0…
A: Please check the step 2 for solution
Q: ude batsman char name[20]; foo(struct batsman *t) strcpy(t->name, "rahul"); return t->name; ain()…
A: Here batsman is a structure with p as it's structure variable. Also foo is a function which returns…
Q: please go in to the detail and explain the purpose and function to each line & function of code…
A: Answer: Program in C with explanation: #include <stdio.h> //header file for standard input and…
Q: 5. Which operator has more precedence in below list? (A) + (B) - (C) ++ (D) *
A: The given operators are + , - , ++ and *. In all the above operators the '++' i.e. increment…
Q: Create a program, luke.py, **** By using "sys.argv" **** using the following…
A: Solution :
Q: V. List the elements that will be displayed by the following sections of codes. (15 pts.) 1. for (m…
A: As the contents of array a[], b[] are not given, they are represented as a[1], a[2],... and b[1],…
Q: Which one of the following is used to redefine a data type? pointer struct typedef union
A: The typedef keyword allows the programmer to create new names for types such as int or, more…
Q: Use the declaration below to answer the next set of questions. struct DateTag{ int nMonth; int nDay;…
A: Here in the given code snippet, we have different structs which are also written inside each other…
Q: Given the table ENROLL below STNUM CRSCODE LECNUM 1 ITDR1102 1 ITDR1103 1 ITDR1104 4 ITDR2101 2…
A: SAMPLE RESPONSE:DECLARE crs_code ENROLL.CRSCODE%type; c_lecnum ENROLL.LECNUM%type;…
Q: Write in C language Description You have 2 tables, courses and scores. courses consists 3 columns,…
A: There are 2 tables, courses and scores. The courses consists of 3 columns, sid, student_id, and…
Q: Design a data structure to store the class score and exam score of students (using their index…
A: Since language is not mentioned so I have used Python 3. CODE : print("Enter the no. of students…
Q: A car database of the sale website contains 10 cars with the car brands (1= Ferrari, 2 = Lamborghini…
A: Hello Student. Greetings from my side. Hope you are doing great. I will try my best to answer your…
Q: change the code to C language
A: #include<stdio.h>#include<conio.h>void menu();void getInput( char a, int b );float…
Q: Explain this code
A: Given is the VHDL code. VHDL is the hardware description language.
Q: a) Which data Structure will you chose in order to store these Book ID’s ? Justify your answer b)…
A: Note: The answers of the first three subparts are shown below. Please repost the remaining subpart…
Q: -means that requirements should not have contradictory definitions Select one: O a. Readable O b.…
A: requirements: In software engineering, requirements are provided either by the client or user. It…
Q: Write in C language Description You have 2 tables, courses and scores. courses consists 3 columns,…
A: Structured Query Language (SQL) is a database language designed for managing data held in a…
Q: Given the following declaration: int j; int sum = 0; double expenses[15] [8]; Which of the following…
A: Answer: NONE OF THE OPTION WILL correctly finds the sum of the sixth column of expenses. the correct…
Q: Analyze the following code and fill in the output. # Employee List name - ["Joe","Janice", "Ahmed",…
A: The output is : Joe worked 40 at 17.55 making 702 Janice worked 42 at 12.35 making 1683 Ahmed worked…
Q: Study the following code segment and identify the line that will cause a syntax error int Manipulate…
A:
Step by step
Solved in 2 steps
- # CODE _ 09.5. E = { amb" | m, n 20 }HW7_3 Ball bearings are hardened through a process known as quenching-submersion of the heated ball bearing in oil or water in order to cool it rapidly. The data below represent the temperature of the ball at various points in the cooling process time (sec) 0 30 Temp (C) 800 457 269 79 46 60 150 240 Plot the data (as discrete points). In the same figure window, also plot a) interpolating polynomial, (use polyfit and polyval) b) piecewise cubic interpolation (not-a-knot) and c) piecewise cubic interpolation (shape-preserving) Include a legend for the three methods used: polynomial interpolation, not-a-knot, shape-preserving. Then looking at the plot, choose the method you believe to be the best and smoothest fit of all these to predict the temperature after 3 minutes of cooling. Print the result using fprintf.
- This kind of code gives me errors i have more info below. My codeDELIMITER //CREATE PROCEDURE GET_INVOICE_DATE (in I_INVOICE_NUM CHAR(5))DECLARE I_CUST_ID CHAR(5),DECLARE I_CUST_NAME VARCHAR(41),DECLARE I_INVOICE_DATE DATE BEGIN SELECT c.CUST_ID, CONCAT(c.FIRST_NAME, ' ', c.LAST_NAME), i.INVOICE_DATE INTO I_CUST_ID, I_CUST_NAME, I_INVOICE_DATE FROM INVOICES i INNER JOIN CUSTOMER c ON i.CUST_ID = c.CUST_ID WHERE i.INVOICE_NUM = I_INVOICE_NUM; END // Delimiter ; Helpfull info Task #6 – same process as Task #5• Procedure name is GET_INVOICE_DATE with I_INVOICE_NUM in parentheses with 5 characters• There should be 3 declare statements for I_CUST_ID CHAR(5); I_CUST_NAME VARCHAR(41); andI_INVOICE_DATE DATE is datatype• SELECT statement should include the CUSTOMER.CUST_ID, CONCAT for first_name andlast_name AS customer_name, invoice_date• INTO the 3 “I” fields in the declare statement• From should include the CUSTOMER and INVOICES tables• Where clause to join CUSTOMER.CUST_ID =…4: In the Department of Mathematics and Computer Science (MACS), undergraduate course codes begin with either M (for Mathematics courses) or CS (for Computer Science courses). Thereafter, the code has four (4) digits. The first digit is the year of study, which is 1 to 6. The second digit is the credit hours, which is again 1 to 5. For Mathematics courses, the third and the fourth digits is just a running index to differentiate the course from the others. For Computer Science courses, the third digit is the area of specialisation, which is from 0 to 4. The fourth and the last digit is just a running index to differentiate the course from the others. a) Draw a finite state machine (FSM) accepting/generating course codes in MACS. b) As the result of a) above, write the corresponding C++ function int is_MACS_course(char * str) { I/ C++ code which will determine whether or not the given string, str, represents the correct code for MACS courses.We know that the size of the previous question's struct point_st is 8 bytes. In general, what are the size and alignment rules for a struct?
- Assignment 07 Code is required. ?keys = ['name', 'last', 'job_title', 'email']Faculty2 = Faculty = dict.fromkeys(keys)print(Faculty2) Use the dictionaries that you created for faculty members. Be sure that all the dictionaries have the same keys: name, last name, etc. If there are keys or values missing, add them. If you do not have the value, you can use 'n/a' or 'TBD'. Make a list of the dictionaries. Loop the list to print all the information available to each faculty member. In Python lang please.Explain the following mistake.abc abd abe abf abg abh$ rm abc ab*: cannot delete "abc": Not found.