Given the following code: match the data type with the variable. Some answer may be used more than once struct product Type int product Number: double cost: int numberInStock; }; int main (void) struct product Type toyCar; struct product Type barbies [10]; struct product Type pToy stoyCar; *** the rest of the main is not shown ········ 1.1 &barbies[3] toycar.numberinStock pToy pToy-productNumber barbies ("pToy) cost toyCar cost ہے barbies[0] 1. char 2. int 3. double 4. array 5. productType 6. productType" 7. None listed
Q: Write a script that prompts the user for the userid and password. It then creates the new user using…
A: script: This script is a Bash shell script. It is designed to do a series of actions on the…
Q: Prove that if the diameter of a treeTis odd, then any two maximum length paths have a common edge.
A: A Brief introduction of the graph: The Graph is represented by G=(V, E) which is a collection of the…
Q: single SQL statement to list all the tracks that do not have the exact word 'time' (including both…
A: Lets see the solution.
Q: re more similar re more similar x1 2 2 3 data points with 3 features per data point. We want to…
A: It can be found in the cluster package. x:numeric matrix or data frame. Differences will be…
Q: Python: How many times is the print statement executed? for i in range (5): for i in range (i):…
A: for i in range (5): for j in range (i): print (i, j)
Q: 4. What is the output of below javacode? ___________ import java.util.*; class Array { public static…
A: The main function, which serves as the starting point for a Java programme, is contained in the Java…
Q: In what sense are header-based vulnerabilities a security risk? Name three examples that spring to…
A: The solution to the given question is: Header-based vulnerabilities are a security risk because they…
Q: We want to create a void function that takes a number and doubles it, we do it as follows void…
A: //this method is defined with return type voidvoid doubler(int orig_number){ orig_number =…
Q: In java, how do I implement the following methods into a linkedlist class. 1) removeLast() – remove…
A: Java: Java is a high level, general purpose programming language. It is robust and secured language.…
Q: Interfaces can derive from one another to form hierarchies similar to inheritance hierarchies True…
A: Solution:- •Interface :- •An interface specifies the behavior of a class by providing an abstract…
Q: Discuss the problems that organizations face to build functional and secure software and the best…
A: Software Assurance Maturity Model is an open framework that helps organizations
Q: mands on a Cisco ISR need to be entered in “global config” to set an ip address on a serial…
A: Lets see the solution.
Q: A GSM system uses 124 channels and each channel is divided into 8 time slots. What is the maximum…
A: Check below mention step 2
Q: 4. Apply a block parity (horizontal and vertical) to the 4-byte data sequence given below. Assume…
A: Dear student, the answer is provided in the image below with explanation.
Q: x86 Assembly Language Programming What will be the final value in EDX after this code exec
A: The answer is
Q: Develop a State Table with all Inputs and Outputs for a vending machine that sales "Chip", "Water".…
A: Please refer to the following step for the complete solution to the problem above.
Q: How to configure I2C communication in pcf8591 ADC/DAC module.
A: Answer:
Q: Problem: Create the classes on the UML class diagram. Set Inheritance relationship between the…
A: Java is a popular coding language developed in 1995. It is primarily owned by Oracle and many…
Q: One key attribute that separates worms from other malware is: It generally results in mild annoyance…
A: A worm is a type of malware that may spread to other computers via a network and duplicates itself.…
Q: If a startup company needed to have differentiated LANS for security or processing purposes, how…
A: The solution to the given question is: I would recommend using a star topology for the startup…
Q: Compute φ ^ =c 0 π 0 +c 1 π 1 where π 0 =1 and…
A:
Q: Analyze the pros and cons of using agile approaches to system development.
A: Understand agile approach before presenting its benefits. Agile approaches promote a collaborative,…
Q: JAVA AND ROGRAM Write a code fragment using a do..while loop. The fragment should try to get an…
A: Java Programming which refers to the one it is object oriented programming language. Java is a…
Q: Roger is part of a team that is responsible for employing a new information system, the design of…
A: Answer is attached in below step
Q: NUMERICAL METHODS Convert the binary number into decimal number A.)10001101.101…
A: Convert binary number to decimal number A.)10001101.101 B.)11011011.001 convert binary to…
Q: Before you utilise a file extension, find out what it is and why it's useful for your project.
A: The process of creating a set of instructions that tells a computer how to perform a task is known…
Q: List three advantages and disadvantages of memory mapped I/O.
A: Memory mapped I/O Memory-mapped I/O uses same address space to address both the memory and I/O…
Q: #include using std::cout; #include using std::setfill; using std::setw; #include "timel.h" Time::…
A: The error is shown because the instance variable hour, minute, and second is private in a class so…
Q: Consider a program that receives two coordinates in a plane and prints the slope of the line that…
A: The reason the given piece of code is misbehaving for the following value: x_1 = 1 y_1 = 2 x_2 = 1…
Q: 1- Describe Rule Utilitarianism and Virtue Ethics? Please limit your answer to 5 lines. 2- Mention…
A: Note: As per our guidelines we are supposed to answer only one question. Kindly repost other…
Q: Which of the following is/are TRUE? (A) For every TM M there exists a TM M' such that L(M) = L(M')…
A: Answer: We have explain the which one is true or false in brief explanation.
Q: 1. Write a Java Program code to solve dividebyzero error with exception handling correctly.
A: Since you have asked multiple question, we will solve the first question for you. If you want any…
Q: On servers and high-performance workstations, what considerations for disk capacity should be…
A: The size of the hard drive will not affect the speed of temporary internet files
Q: The table below gives values of the height of a tomato plant in inches over 20 days. Use these…
A: Dear Student, The source code, implementation and expected output of your program is given below -…
Q: data color: asciiz "What's your favorite color?"
A: Advantages of Assembly Language:- Efficient code memory High performance Disadvantages of…
Q: The problem starts with an empty BST and an empty AVL Tree Follow a lexicographic/dictionary order…
A: To construct a Binary Search Tree (BST) step by step is that:- Start by creating a new, empty BST.…
Q: Present state A B с D E F G Next state w=0 w=1 B D F B F E F CECCAI с G с D Output z w=0 w = 1 0 0 0…
A: Answer the above question are as follows
Q: The recovery subsystem of a DBMS lists three 'typical' kinds of transactions. Describe each of them.
A: According to the information given:- We have to define the recovery subsystem of a DBMS lists three…
Q: 5.b. Fast in java coding please. Thank you 1. What is the difference between method overriding and…
A:
Q: Which trees have Prüfer sequence 1, 2,..., n - 2? Create a tree of order 7 whose Prüfer sequences is…
A: Prufer sequence is a special sequence that is associated with a tree. An algorithm is implemented to…
Q: Conduct a web search for freely accessible resources on information security. In your answers to the…
A: Information Security, or InfoSec, protects data by minimising risks. IT hazard management. It…
Q: (b) Let propositions p, q, r, s,t be defined as: • p: It is warm outside • q: I am wearing a jacket…
A: First we can write down the given statements using symbolic notations: 1. (~r -> s ) 2. (~p…
Q: How Desgin 2 imput LUT for 3input AND gate.
A: The answer to the following question:-
Q: What are the average time complexity and the worst case time complexity for searching an element in…
A: A skip list is a data structure that is used to store the sorted elements. For storing elements, we…
Q: What is the recommended abbreviation for "computer output" when referring to data that resides not…
A: A document may be sent, archived, viewed, and printed from a micro form, which is a shrunken replica…
Q: 2- Plot Sinc function, where Sinc (x) = sin(x)/x, and -2≤x≤ 2π
A: According to the Bartleby guideline, we are supposed to answer only one question at a time. Kindly…
Q: Convert the Following for loop in c to assembly: Variables: w is in $t0, x is in $t1, and y is in…
A: Here loop should exexcute until w != x. Follwing synax are used in the language. The ADDI command…
Q: From the bottom embedded system to the upper application softwares, how many parts for one classic…
A: answer is
Q: 2- Plot Sinc function, where Sinc (x) = sin(x)/x, and -2≤x≤ 2π 3- Plot sin(x) and cos(x) on the same…
A: The solution is given below for the above-given question:
Q: Which one is NOT correct k-means clustering? Question Options: a) As we increase k in k-means…
A: The given question are multiple choice selected question.
Step by step
Solved in 2 steps with 1 images
- Salesforce Programming Problem(Use Salesforce Developer Console to solve the problem) In this assignment you have to create a query that will fetch the data of contact object where the phone number is not null and the contact's name should be in ascending order.struct namerec{ char last[15]; char first[15]; char middle[15]; }; struct payrecord{ int id; struct namerec name; float hours, rate; float regular, overtime; float gross, tax_withheld, net; Given the above declaration, let payroll data record be stored in a structure called payrecord. Also define a type called payrecord for the structure data type that houses a payroll data record: typedef struct payrecord payrecord; This program reads data, computes payroll and prints it. Each data record is a structure, and the payroll is an array of structures. Overtime hours are 150% of the rate. (Note: Maximum regular hours for the week is 40.) Tax is withheld 15% if weekly pay is below 500, 28% if pay is below 1000, and 33% otherwise. A summary report prints the total gross pay and tax withheld. The following are the function prototypes: void readName(payrecord payroll[], int i); - reads a single name. void printName(payrecord payroll[], int i); - prints a single name. void printSummary(double…Given a structure for student as follows: struct student { int ID; float grade; } s[5]; Use scanf to have user enter ID and grades for each student: 1st student ID =1, Grade = 90 2nd student ID=2, Grade = 81.5 3rd student ID=3, Grade = 85.5 4th student ID=4, Grade = 88 5th student ID=5, Grade = 94 Each student as a structure needs to have the ID and grade properly set. Output: The average grade for 5 students' needs to be reported using printf. Also, each student ID and Grade need to be reported. NOTE: Use structure syntax as needed. Use for loop when you deal with arrays.
- Q3 OCaml type signature 1 Point The OCaml type signature val f : 'a -> a = indicates that function f has a parameter and return value that can be any type, as long as the types of f 's parameter and return value are the same. True False Q4 OCaml structured return values 1 Point OCaml, unlike most functional languages, does not allow functions to return structured values. True FalseProgramming language : c++ Question : Make a class Student with attributes StudentName, Enrollment, semester, section, course MarksObtained and Grade. Write appropriate constructors, get and set functions for data members. The data member grade is automatically calculated based on marks obtained out of 100 for each course.A structure will be defined as typedef struct _state { char name [ 31 ] ; // to store 30 chars of state name char capital [ 31 ] ; // to store 30 char of capital } State_T ; State_T StateList1[6] ; // array of structures , one cell to store state and capital The pair of states and capitals are California SacramentoNew York AlbanyNevada Carson CityNew Mexico Santa FeUtah Salt Lake CityTexas Austin in the main function main ( ) { Task 1: Can you assign these pairs of states and cities to the structure StateList1 using strcpy. Do not change the declaration I already given Task 2: Create a new array StateList2 and assign these pairs of states and cities to the structure StateList2 (all during declaration, do not use strcpy) Task 3: call printStateNameAndCapitalsUsingPointer passing the StateList1and length of the array Task 4: Call printStateNameAndCapitalsUsingArrayIndex passing the array StateList2 and and length of the array } void…
- Please continue tthe code below --- #include <stdio.h> struct Employee { // declaring the members of the structure char emp_full_name[30]; int pos; float rate_per_hour; int hour_worked; float deduction; float gross_week_pay; float net_week_pay; }; int main() { struct Employee var; // declare the Employee variable struct Employee *ptr; // create a pointer variable (*ptr) ptr = &var ;// assigning the address of var to pointer type variable return 0; }Declare an enumerated data type named Direction with enumerators for North, South, East, and West.QUESTION 21 int x1=200; int y1=3003; int z1, z2, z3, z4; int d1, d2, d3; _asm{ mov EAX, x1; 200 mov EBX, y1; 300 mov z1, ESP; assume initial ESP: OFFF FFEA add EAX, x1; 400 push EAX; mov d1, EAX:400 mov z2, ESP; push EBX; SUB EBX, x1; 300-200=100 mov d2, EBX; mov 23, ESP; POP ECX; MOV d3, ECX; MOV z4, ESP; POP EDX; mov d4, EDX; What is z3 in Hexidecimal? O OFFF FFEA O OFFF FFE6 OFFF FFE2 OFFF FFEE
- Explain the values of int data type.use c code to develop a program In this program you will create a structure called class to hold the information of a class in Seneca college’s buildings. The information required for each class is as follows Campus name (like newham or Seneca@york) Building name (like Victor Phillip Dahdaleh Building) floor (like 1 2 3 4 5, …) class code (like DB2109) size of class (40 60 25) has projector (yes/no) has podium (yes/no) has whiteboard (yes/no) The following is the declaration of the structure Struct class{ Char campus[101]; Char building[101]; --- --- } Complete the above structure template based on the list of attributes provided Implement the followinggetClass function that receives a pointer to a vehicle and fills it up with user data. No user input validation is necessary. The user should be properly prompted for each field. Be careful with proper usage of . (dot) operator and -> (arrow) operator as this is the part of the code that gets the mark! void getClass…#include int days_in_month(int month,int is_leap){ int res=-1; switch(month){ case 1: res=31;break; case 2: if(is_leap) res=29; else res=28;break; case 3: res=31;break; case 4: res=30;break; case 5: res=31;break; case 6: res=30;break; case 7: res=31;break; case 8: res=31;break; case 9: res=30;break; case 10: res=31;break; case 11: res=30;break; case 12: res=31;break; } return res; } int main(){ int m,l; printf("Enter month: "); scanf("%d",&m); printf("Enter 1 for leap year 0 for non leap: "); scanf("%d",&l); int days=days_in_month(m,l); printf("Days %d",days); } Write in c