Home
Ask directory
AP CS
August 2022
4
AP CS
Q&A Archive of
August 4, 2022
Select Question
August 4 of 2022
Write a C++ program using the for statement to print a list of Euro currencies (from 1 to 5), and their equivalent value in Dollar according to the rate 1.15 (i.e. 1 Euro = 1.15 Dollar). Show both currencies as shown below.
Suppose we want a derivation system that includes the symbol 'x' to represent exclusive 'or'. We might create system SD++, incorporating the replacement rule Exclusive (XOR) P x Q āā· (P ⨠Q) & ~(P & Q) along with all the rules of SD and SD+. Do two derivations in system SD++ to show that:
Note: for 2 , you can use ( p ā q ā” (p ā q) ā§ (q ā p) ) to prove Derive the following rules from the Logical Equivalence Rules Absorption Laws 2 Material Equivalence Laws
I don't know what code to put in the m = This is Python. Please help. Please write two functions that calculate the sum of every element and its mean value. def my_sum(li): # COMPLETE THE CODE BELOW sum = 0 for num in li: sum += num # END OF YOUR CODE returnā¦
Question 6: A program with 20 machine instructions is executed on a 10 Hz frequency CPU. The instruction cycle of the CPU has steps, and each step is executed in one CPU clock period. Compute the clock period of the CPU. b) Compute the time needed to execute one instruction. Compute the timeā¦
Question 5: (Optional) Suppose you are using RISC architecture where every step takes one clock cycle to solve. You are using Pentium IV style, which has a 20-stage pipeline. The question is, if you have 30 instructions in a program, how many cycles will it take to make the pipeline full? Whatā¦
Create flowchart for solution that: reads in strings of digits from file calls the methods you ve designed to determine whether or not each string of digits has the desired property outputs each string of digits that satisfies the property: One per line_
A method that takes the sum calculated in part and the last value in the integer array and returns True if the sum and the last integer are both 0, True if (10 - (sum % 010)) is equal to the last integer, False otherwise. Example: e(90,3) - False, e(109,1) - True.
This question contains multiple parts. Code segments should be considered individually. Each part should be: (a) Write the output of the following code segment: #include <iostream> using namespace std; int main() { int x = -1; try { cout << "Inside try" << endl; if (xā¦
Write a Ct+ program using the for statement to print a list of Euro currencies (from 1 to 5), and their equivalent value in Dollar according to the rate 1.15 (i.e. 1 Euro = 1.15 Dollar). Show both currencies as shown below.
Ifthe precision is 0.7 and the recall value is 0.3. What will be the measure?
How to fix the bug here? public int addAccount(Account account) { int accountId = this.customerAccounts.size(); this.customerAccounts.put(accountId, account); return accountId; } public Bank { Map<Integer, Account> customerAccounts = new HashMap<Integer, Account>(); ā¦
def unflatten_grades(grades): """ This function takes a dictionary as input, where each key represents the individual grades that a student has made in a given category. The function will return a dictionary of dictionaries, where the key is the student's name and the associated valueā¦
A computer program is said to learn from experience with respect to some task T and some performance measure P if its performance on T, as measured by P improves with experience E' Suppose we feed learning algorithm lot of historical stock prices cata and have it learn to predict marketā¦
(Java) Code is supposed to count the number of words in each line of the given text file. It is currently counting the number of words in the entire text file. Please solve to make it count the number of words in each line. 1 package lab6; 2 import java.io.File; 3 importā¦
Text: help ASAP WITHIN 15 min networking
4G LTE 902 Lab 4.pdf 2 ua 2 60012402-4 Algorithms Write a Java program to implement Quick Sort Algorithm using an array of size Algorithm Quicksort Input: An array A with n elements Output: The array A sorted in non-decreasing order: QuickSort (A, low, high) Procedure QuickSort (A, low,ā¦
In E16: Use the product code breakdown provided at the top of the worksheet guide to create appropriate nested functions to complete the following: If the product is Black and 120, insert the product price. Otherwise, the cell should be blank. Copy the function down to the other cells in theā¦
2.4 Prove that there are exaclly 3" monomials of n dimensions and 3" clauses ol n dimensions.
Which of the following variables have the datatype Boolean? Select one or more: a. word = "False" b. isMinor = True c. X = 20.3 d. y = (56 - -8) and (45 == 3 * 15) e. result = 7 < 29
Which of the following boolean expressions are True? Select one or more: a. (56-=8) or (45 == 3*15) b. 7 < 29 C. "he" == "she" d. 68 == 67 e. (22 > 11) and (35 <= 35)
Please use Mathematica notebook code to solve the following question! Problem 6 2.5 pts: The digit sum of a number is given by adding the digits of that number. For example, the digit sum of 7763 is 7+7+6+3 = 23. If you iterate the digit sum until the resulting number has only one digit, thisā¦
What does the following Python program print? print (3*4 == 12) Select one 0 a_ 3*4 == 12 b_ nothing, it has a syntax error: True d_ False
What does the following program print? myAge = int("6") print(myAge) yourAge = int(6*2) print(yourAge) if myAge > yourAge: print("I am older.") elif myAge == yourAge: print("We have the same age.") else: print("You are older.")
I need help with the following assignment on C++ programming to understand how to use fstream for file I/O. Below is the data in the .txt file: name grade_total Xyla 279 Xandra 313 Barry 218 Yoko 327 Rama 280 Ciara 294 Mariko 360 Quinn 397 Laurel 386 Larissa 267 Lavinia 263 Amber 280 Reeseā¦
Please use MATLAB. Question Show how the output looks like upon running the code, summarizing 41454 9 + 11
[2 points] Find the first six terms of the sequence defined by each of these recurrence relations and initial conditions dn = -2an-1, Q0 = -2, an = dn-1 - an-1, a0 = 1, 017.
I need the answer as soon as possible, please. It's urgent. ðŸā¢Ā
Problem 3: Firewall Rules (30pt) Suppose a network with an address of 129.100.5.* (i.e., 129.100.5.0/24). The IP addresses of the web server and email server are 129.100.5.10 and 129.100.5.20, respectively. Assume that the HTTP server port number is 80 and the SMTP server port number is 25.ā¦
Please answer both questions as fast as possible, there's only 20 minutes left. [10 points] Calculate the total average delay for an Internet connection from a LAN through a proxy server if: Internet Delay = 98 sec, Access Delay = 4 sec, and LAN delay = 0.5 sec. [5 points] If no caching isā¦
MTH208-2122-52-Numerical Analysis Knene Question 2 Hoglcott, Use the bisection method to solve the equation Ć¢ĖÅ”(Inz) on the Interval [4, 10] with sufficient accuracy for the correct result to have the 4th significant digit (for example, the 4th significant digit of 12.345 is 4). Use MATLAB toā¦
Question 2: Use a Karnaugh map to simplify the Boolean function and find the SOP and POS for each case: RABCDJ = LM(1,3,7,11,15) RABCD = 2m(0,2,5) RABCD = 2w(0,1,2,3,4,5,10) + d(12,13,14,15)
For this lab, your task is to add an iterator to your Car-Parts example from last week's lab 2. Poms 7name String Iterator model 54a Heena Jmno parts ArrayList; First() Next() IsDone() CurrentItem() #OPads_l showModelInfo() addPart() Void paninica Wheels CarParts ConcreteIterator
Please use python and only use while loop. Please do not use list. Write a program to read 5 integers from the user, and calculate the sum of the integers. However, if one of the values is 7, then it does not count towards the sum and the next value entered by the user does not count So forā¦
```cpp #include <iostream> using namespace std; class Test { public: Test() { cout << "Constructing object Test" << endl; } ~Test() { cout << "Destructing object of Test" << endl; } }; int main() { Test tl; int marks; cout << "Caught " << marksā¦
This question contains multiple parts: Code segment at each part should be considered individually. (a) Write the output of the following code segment #include <iostream> using namespace std; int main() { int l; cout << "Inside if" << endl; throw cout << "After throw" << endl; ā¦
Which of the following classes or interfaces from the Java Collections Framework have iterators? SortedMap HashSet NavigableMap HashMap Question 31 (1 point) Which of the following classes or interfaces from the Java Collections Framework have iterators? SortedMap HashSet NavigableMap HashMap
Study the following program segment carefully: Develop the following program by adding the following overloading operators: - overload operator + that returns a new Box object that has the sum of two Box objects' dimensions - overload operator / that divides its dimension by a factor of x -ā¦
DIALOG BOX BUTTON ACTION LISTENER Write a program that takes input from the user for the loan amount, annual interest rate, and tenure, and displays the total and monthly payment on dialog boxes. Input: Message Enter yearly interest rate (Eg: 8.25): 5.25 The monthly payment is 2009.69. Theā¦
Create MS Word file with your full name and student file name ChanTaiMan H12345678.docx and attempt all questions. Use separate page for each question. Attempt the following questions. Each part carries marks: 1. Differentiate inline and constexpr functions in terms of their time ofā¦
Sequential Flow Draw a flowchart and write pseudo code to represent the logic of a program that allows the user to enter values for the width and length of a room's floor in feet. The program outputs the area of the floor in square feet. Draw a flowchart and write pseudo code to represent theā¦
HELP CODING IN C [5 Points] Write program that will calculate the standard deviation of the scanned array List using the following formula (Section 5.4): (xk 0)2
Graph Theory: Reaching Vertices A vertex reaches another vertex if there exists a path that connects them. We define the reaching vertices of a vertex to be the set of all vertices that can reach it. Write a function called "reaching_Vertices(adj_list, target)" that takes the adjacency list ofā¦
Consider the given reference string and apply FIFO, LRU, and Optimal page replacement algorithms. Use the optimal algorithm as a comparison tool and compare the performance of these algorithms (Show step by step details) (20 points - 5 points for each algorithm + 5 points for theā¦
def adjacency_list(graph_string): header, *edges = [s.split() for s in graph_string.splitlines()] directed = header[0] == 'D' weighted = len(header) == 3 and header[2] == 'W' num_vertices = int(header[1]) adj_list = [[] for _ in range(num_vertices)] for edge in edges: ā¦
Note: Similarity less than 15%, you can send me a docx by email 3lijaffer2000@gmail.com In line with your assignment, investigate Single Sign-On (SSO) mechanisms and produce a report containing the following content: Task 1: Critically evaluate the vulnerabilities and threats possible in SSOā¦
Animal.h #ifndef ANIMAL_H #define ANIMAL_H #include <iostream> #include <string> using namespace std; class Animal { protected: string name; string species; public: Animal(string pName, string pSpecies); virtual void eat(); virtual voidā¦
How many bit strings of length 10 begin with three Os and end with two 1s?
Create a Python program that will repeatedly ask the user to enter integers (positive integers only) until a stopping condition is encountered. You can assume that we will never enter any other values other than positive integers and a stopping condition. Once the stopping condition isā¦
Essay argumentative to the problem statement The Problem Statement The Fourth Industrial Revolution is dead in the water! Present an argument for or against this statement: In your argument, clearly state your stance. To firmly support your argument, make reference to multiple specificā¦
4led Making UI for Showing Steps [2 points] Create an HTML page with the title "Jablo The JavaScript File Page Load" and include a canvas with dimensions of width: 800, height: 500. Add an input box to accept user input and a button to start the game. 2. [3 points] In the JavaScript file,ā¦
This is a Java code. Show all the steps, thanks. Q1.2: Translate the following pseudocode into a Java program called DivideItems. Assume that dividend and divisor are real numbers. Use the text box or a file upload for your answer: 15 Points. READ Dividend READ Divisor IF Divisor equalsā¦
(a) Explain FOUR (4) physical parts of the computer systems (8 marks)
Make pseudocode and flowchart for this program and kindly discuss the program. #include <iostream> using namespace std; int main() { // variables float cel, fah, rankine, kelvin; // input cout << "Enter temperature in Celsius: "; cin >> cel; // change toā¦
please do this asap According to the Minimax gorithm; identify correct winning path using the abstract game tree given below: Heuristic measures of leaf nodes are shown in red_ MAX Min MAX MIN MAX Select one: ADGJM There no correct winning path among other answers given ABEHL ADFIM ACFIM
use c language Write Algorithm and Flowchart to swap two numbers without using third Variable.
Take the twos complement of the following signed binary numbers. What is the resulting number in decimal? Show your work and clearly label your answers_ 10110 01110 11011
Please explain the output of the code in brief, explaining everything in the greatest possible detail starting from the code execution. Q19. Write the output from the following program: #include <stdio.h> void main() { int a[] = {22, 19, 17, 36, 12, 15, 28, 35, 66, 43}; int i, j, n =ā¦
```csharp using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ExceptionHandlingExercises { public class ExceptionHandlingExercises { public void Execute() { ā¦
This task is from Linux, and do it in nano editor. Tasks: Running on a particular treadmill, you burn 4.2 calories per minute. Write a program that uses a loop to display the number of calories burned after 10, 15, 20, 25, and 30 minutes.
```python def reverse_string(string): return string[::-1] # Call reverse_string() to reverse the string "computer science"! # YOUR CODE HERE print(reverse_string("computer science")) def filter_palindromes(str_list): # YOUR CODE HERE ## An example function call to help you debug yourā¦
(b) Write a C programming to find out maximum and minimum from THREE (3) numbers using functions. Get the three numbers as input from the user_ (10 marks)
Problem P5.16 from the Book. Write a class called Digital Thermometer that has a single instance variable stored as a double that represents Vm. Create a one-argument constructor to accept an initial value for this instance variable. Create an accessor (getVoltage()) and mutator (setVoltage())ā¦
In the DFS algorithm the fringe priority is points the real cost LIFO The estimated heuristic FIFO In the BFS algorithm the fringe priority is: points LIFO FIFO The real cost the estimated heuristic In the Greedy algorithm the fringe priority is: points LIFO FIFO The real cost the estimatedā¦
Assignment 1: Write a Java program to find the duplicate values of an array and display its execution time. Assignment 2: Write a Java program to find the largest value in an array and display its execution time. Assignment 3: Write a Java program to perform the Preorder traversal of a Binaryā¦
Q13. What will be the output of the following program? Explain your answer. #include <stdio.h> int main(void) { printf("Main"); int csoO; printf("cso"); int endsem(); printf("endsem"); return 1; endsemo; }
This task is from Linux, and do it in nano editor. Task 3: Create 5 files with different permissions and apply all file conditions.
A heuristic function h1 dominates another heuristic function h2 if: - for every state N, h1(N) <= h2(N) - for every state N, h(N) = h2(N) - for every state N, h1(N) >= h2(N) - if h1 is admissible and h2 is not admissible Consider the below search tree where costs are on edges and heuristicā¦
Find the closed-form solution to each of the following recursively defined sequences: S1 = 13 Sn = Sn-1 + 13 for n > 2 (b) Ai = 1 + 4n = 4n-1 + n^2 for n > 2. (Hint: 1 + 2 + 3 + ... + n^2 = 2n^3) B = 1 Ba = 3Bn-1 + 1 for n > 2 (Hint: 3 + 32 + 43)
(d) Develop a program that takes 'n' numbers as current input (mA) from the end user. Then receive values for these 'n' numbers and store them in an array named 'arr_current'. Then, arrange the numbers in ascending order and print them. Hint: n=3 [input from end user] 3 values for n - 33,12,57ā¦
please answer in C language and explain In brief Q12_ Explain in detail how to access a two-dimensional array using pointers with an example program?
This task is from Linux, and the solution will be in nano editor. Task 2: Get Bio-Data from the user and save it to an array. Then print the bio data.
Consider this data sequence: "fish bird reptile reptile bird bird bird define SINGLETON to be data mammal fish". Let's define a SINGLETON as an element that is not repeated immediately before or after itself in the sequence. So, in this sequence, there are four SINGLETONs (the first appearanceā¦
This task is from Linux. Task 1: Use a for loop to rename a couple of existing files in a folder. For example, the existing files in a particular folder are: file1.txt, file2.txt, file3.txt. After running your script, these should be renamed to: new-file1.txt, new-file2.txt, new-file3.txt.
Please help with the Coral programming language. Please show the solution step by step. Write a program that will read input for temperature in Celsius and then calculate and display its equivalent in Fahrenheit: Display both the input value and its equivalent in Fahrenheit. Formula to use: Fā¦
Question 6) Write a program to calculate the perimeter of a square, rectangle, and the circumference of a circle. Ask the user to key in the required details depending on their selected shape. The program will keep asking the user for input unless the user enters 0 to exit. The followingā¦
Q6. (A) A class has a number of students and a number of candies to pass out to them. Their teacher decides the fairest way to divide the candies is to seat the students around a circular table in sequentially numbered chairs. The chair number will be drawn from a hat. Beginning with theā¦
Text: sample-input: 1 13 14 2 25 26 45 23 12 34 10 sample-output: Inversion count: 2. Sorted array: 1 2 13 14 25 26. Inversion count: 8. Sorted array: 10 12 23 34 45. Homework 7 Programming (Maximum 50 points) Due 11:59 pm Wednesday March 30, 2022 Submit your Java codes via Blackboard. Refer toā¦
QI: Fill up the blank lines in the function update(int *a, int *b) and justify your answer: receives two integer pointers, int* a and int* b. Set the value of a to their sum and b to their absolute difference. There is no return value, and no return statement is needed. #include <stdlib.h>ā¦
Text: Debug the following code: Write out the [full] re-factored code (without comments) in the textbox below: Make sure your code's logic still falls in line with their respective comments) NOTE: You do NOT have to write what the [fixed] program's output is. public class Test { ā¦
A bridged LAN is shown in Fig. 1, where 'Bn' is the name of the bridge and 'n' is the identifier. Fig. 1 Assume that all bridges have equal priority and all segments have the same path cost. Determine the spanning tree topology of the network. Your diagram should include the followingā¦
(a) Construct an algorithm that can take input of two integers from the user and find the sum. If the sum is in the range of 10 to 20, then display it as 30. (5 marks) (b) Draw a flowchart for the following scenario: Calculate the square of a negative number. If it is a positive number, noā¦
Please answer using R code. Use the data "ProductionLot.txt" for this manufacturing study. The production times for 111 recent production runs were obtained. The data set lists, for each run, the production time in hours (first column) and the production lot size (second column). We areā¦
3. Provide the type and hexadecimal representation of the following instruction: sw St1, 32 (St2)
Text: fastest please Examine carefully the truth table given below, and then write down the output Y in the [4 marks] SOP canonical form (1 pt), SOP standard form (1 pt), POS canonical form (1 pt), and POS standard form (1 pt). d. Find the minimized form for Y [2 marks]. 2. Usingā¦
What are the instructions to branch on each of the following conditions? (2Opt) Hints: use conditional branches and if the condition is satisfied, it will go to the label "Done". Ss0 < Ss1 Ss0 <= Ss1 Ss0 = Ss1 Ss0 >= Ss1
please answer in " c " language Q1. Create an inventory of 50 students (use array of structures) with following parameters: Student Name (Using random alphabetic string generation of exact length 10) Student ID (Using random number generation of exact 5 digits) Student JEE Score (Using randomā¦
Q16. What will be the output of the C program? Explain your answer. What happens when p is printed? #include<stdio.h> void ptr(char**); int main() { char *argv[] = { "abc" , "def" , "ghi" , "jkl", "mno" , "pqr" }; ptr(argv); return 0; } void ptr(char **p) { char *t; ā¦
43) a) Discuss the two main types of constraints on specializations and generalization. (b) How does a category differ from a regularly shared subclass? (c) Map the EER diagram shown inā¦
Weekly Data Class, Create a C++ program to read the numeric contents of the attached file. Add these numbers together and report the total. Create a new Visual Studio project. Place the file in the project. Create a CPP program to read the contents. 1. In the program, create a string constantā¦
C++ Language Please Create the Redact class with an instance variable String text. Create a constructor with an input String value to initialize the instance variable. Complete the method Redact redact(String[]) which takes as input an array of words whose characters are to be replaced byā¦
Q1. Create an inventory of 50 students (use an array of structures) with the following parameters: - Student Name (Using random alphabetical string generation of exact length [0]) - Student ID (Using random number generation of exact 5 digits) - Student JEE Score (Using random numberā¦
In simple Java, please. Create a double array with the values of 254, 135, 10.25, 5.8, and 9.02. Create a method called printArray that prints each value of any double array. Use this method to print your double array. Create an overloaded method also called printArray that prints each valueā¦
In simple Java, please. (Convert feet into meters) Write a program that reads a number in feet and then write a method that converts it to meters. Then display the result. One foot is equal to 0.305 meters. Here is a sample run: Enter a value for feet: 16 16 feet is 4.88 meters. SemLi
Please use R. Problem 2: Distinguish between digits in MNIST using logistic regression. We'll use the MNIST image classification data, available at the MNIST ALADAtA. For this problem, we want to distinguish between all 3 and 4 digits. Filter the train data to only include digits 3 and 4.ā¦
Can you try to use the C# please. Not Java or C++ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConceptTest2 { public class ExceptionHandlingExercises { public void Execute() { ā¦
#include<iostream> using namespace std; int find(int num) { if (num < 0) { return -1; } else if (num > 0) { return 1; } else { return 0; } } int discover(int one, int two) { int first = one * two; if (first > 100) { first = first / 10; ā¦
Select the single instruction that converts an ASCII digit in AL to its corresponding binary value: If AL already contains a binary value (00h to 09h), leave it unchanged. al, 0Fh xor al, 0Fh and al, 0Fh
In this problem, you're given a list of numbers. The function should return a list of three values (in this same order), namely, the interval start, interval stop, and the value of the greatest sum. For example, if the list is: x = [7, -9, 5, 10, -9, 6, 9, 3, 3, 9], then the greatest intervalā¦
Please show your work. Thanks! Question 5 (5 points): Consider the following schedules of transactions T1, T2, and T3. Determine whether $ is recoverable or not. S: W2(X); W3(X); W1(Y); R3(X); R2(Y); R1(X), Commit(T1); Commit(T2); Commit(T3);
Please show all work. Will upvote, thanks! Question 4 (5 points): Consider the following schedule S: R1(X); R2(Z); R3(Y); W1(X); R2(Y); R2(Z); W2(X); W1(Y). Draw the precedence graph for the schedule. Is the schedule conflict-serializable?
(a) Fill in the empty cells in the following Boolean Algebra input-output table. I Z 0 0 1 0 0 1 1 1 (r + z) y (r - z) (b) Use your answer to (a) to write down the Boolean Algebra result: (r + z) (y) = (1.2) . (1 + 9) [(1.2) . x] + [(1.2) - g] [x . (1.2)] + [(1.2) . y] [(x . x) .ā¦
Algorithm WA1: For a given set of node pairs and their associated shortest paths and the traffic matrix T of an instance, for each request randomly assign wavelengths to the paths, one at a time, such that no wavelength conflict occurs. Take extra care with node pairs that have more than oneā¦
Lab Task [70] Write a C program that can perform the following operations: Your program should get two inputs from the user on the command line. The first should be the name of a file available on your PWD. The second should be a character. Make sure that the user has provided correct inputs.ā¦
The following data are given: x=[1,3,5,7]; y = [ln(1), ln(3), ln(5), ln(7)] a) Write the Python program to interpolate the above data using the Newton's divided difference method. b) Print out the divided difference coefficients. c) Estimate the logarithm of 2. Print out the true value,ā¦
Device a function to reverse the strings. b) Device function to reverse the strings stored in the following array of pointers to strings: (6 marks) ~ILct uelt "Tenth 2ud nall" - Split #04 polle' Tau 4uL
Write a recursive method called square that takes two non-negative integer arguments and n, and returns m raised to the power of n_ For example, square (4,3) should return 64. Do not use Math:pow() or any other method that you did not write:
Answer all the questions. Consider the context-free grammar: S -> SS + Iss * Ia a) Show how the string "aata*" can be generated by this grammar. b) Construct a parse tree for this string. c) What language does this grammar generate? Justify your answer.
What poiro Mnul almo L0O 00lb>100)8 printf (e Jde maino int K-WJ-n for ( ; printf ("%od %odw" , Lj)) F1++<: maino iut >7z 57F[ 2 =+&e++7 &&++1 ; printf ("x = %d = %d z = %din"I%2) : 4-marks Len
Just the output and justification is enough a) With respect to the given image, find the outputs generated for each statement with justification. 65524 65522 65574 65522 455c0 nnutn"Adueri ul P0d "ed #euiu" _ printf ("Adutru of Fud "h " Hant Wnnnenntn 4 unun"elea Uu"u "ud "4" "(L T Lsauat |at
Question 121 1 pts What is the output of the following code snippet? #include <iostream> using namespace std; int main() int value valuet+; cout value return endl; No output due to syntax error
What is the output of the following code snippet? #include <iostream> using namespace std; int main() { int double 365 25; 10; cout << return endl; } No output because the code snippet generates compilation errors 36.525 36
The Jelacan output for the following main program is as follows: ```c #include <stdio.h> #include <string.h> int main() { char output[15]; char str[] = "Shall we tell the Director?"; char *deputy = str + 6; char *director = "To err is human, butā¦
Question 5: Determine the time complexity of the following code segments. In each case, justify your answer. (a) sum = 0; for(i=1; i<=2*n; i++) sum = sum + 1; (b) sum = 0; for(i=1; i<=n*n; i++) sum = sum + 1; (c) sum=0; for(i=1; i<=n; i++) sum = sum + n; (d) sum = 0; for(i=1; i<=n; i++)ā¦
Text: Output and Justify main() { int a = 30, b = 40, X; X = (a != 10) ? 50 : 0; printf("x = %d", X); } main() { int i; printf("%d", 0); for (i = 1; i < 5; i++) { printf("%d", i); } } ā¦
It's C programming needed quickly, please. Upload answer sheets Text time left: 58.19 Consider the following scenario: There are "n" patients in a hospital. The doctor wants to save those patients' details (get the input from the user) of the percentage of disease affected in a variable (PE).ā¦
Given an array of 'n' elements in the main function, identify all the leaders (using a function) and print them. An element is said to be a leader if all the elements to its right are smaller than it. For example, if the elements are 12, 13, 16, 10, then there is only one leader element whichā¦
Sir/madam, please make it quick. I have an exam in a few minutes. I need this program to solve my doubts. Thank you. ii) If i and j are ints and p and q are pointers to int, which of the following assignments are not legal? [2] Pz&*&1 Pz*&*&j i-*pt+ + *q i-(*&)j
Please urgent!! With respect to the given image, find the outputs generated for each statement with justification. 30 6104 MM; 9u06 9r98 GRA integer variable pointer to an integer variable pointer to an integer pointer printf ("Address of i is %d\n", &i); 15 marks printf ("Address of j isā¦
Section [Module J] J of J Question Upload answer sheets Mathematics for this Question Consider the following operations Queue ADT, Show the content of Enqueue(15); Enqueue(25); Enqueue(35); queue size 10 along FRONT and REAR values Dequeue(): Dequeue(): Enqueue(45); performing each followingā¦
Please urgent!! What will be the output of the following program? Please answer (both output and justification carry equal marks). #include <stdio.h> int main() { int i; for (i = 0; i < 4; i++) { printf("%d ", i); } int x, y, z; x = y = z = -1; x = ++y &&ā¦
Given 'n' integers, write a program to find three distinct numbers that are sum-equivalent to the first number. Two numbers are said to be sum-equivalent if the sum of their digits is the same. Here, both numbers are five-digit numbers. The sum of the digits of the first number is 5+1+8+2+1 =ā¦
Situation: Jake Milliana Rendition Infosec gave a talk at the "Wild West Hackin' Fest" in 2019. During which he discussed the importance of checking the PATH Variable. The highlighted text in the below snapshot poses any issues? And why? (Note: this shouldn't take more than 3-4 sentences toā¦
Get a string of alphabetic characters and return the value of the counter variable. The counter is initialized to 100 and decrements by 1 for each vowel and decrements by 1 for non-vowels in the input string. If the input string contains the special character '$', then return the counter asā¦
solution should be in python programming The factorial of a positive integer N, denoted by N!, IS defined by the following: N! = 1x 2 * xN (Note: 0! = 1 ) Using subprograms and functions, create a recursive program to compute N! The user should input a positive integer and a subprogram shouldā¦
**Please, Solve all the Questions Answers.** Quartile Based on the figure below, answer the following questions: listData Give the value of the following expressions: 1. Ptcl->info 2. picz->'next->info 3. Lietdyey->Jnexe->'next->info 4. Arc->the following cxnresslons (Nc falsc? IE data->nextā¦
The response should be in Prolog (logical language) for all these questions below: A mini-sudoku is an array of 4x4 in which each entry is one of the four numbers 1, 2, 3, 4. To be a valid Sudoku, each row, each column, and each of the four quadrants must contain different numbers (as shown inā¦
Consider the following set of processes (smaller priority number implies higher priority). The processes are assumed to have arrived in the order P1, P2, P3, P4, PS all at time. Process Priority Burst Time P1 1 t0 P2 2 t0 P3 ā¦
Question 21 (10 points) Write a recursive function tuple_product that, given a tuple of integers, will return the product of that tuple's integers. Extra credit: Have the function support nested tuples. You can check if a variable is a tuple: type(v) is tuple will only be True if v is aā¦
The following questions are intended for the Windows XP (WnXP) VM. Difficulty: Intermediate. What is the state of the "W32time" service? What command did you use to get this information?
8. What is the relationship between R and RStudio? 9. Edit the code chunk below to assign the value to the variable. Your code here. 10. Explain in words what the following code does. (Optional: Why does print(Y) produce 5 and not 62?) ``` Y <- 2 2 <- Y 2 <- 2 + 1 print(Y) ## [1] 5 print(2) ##ā¦
Need this before 9:30 am IST. It's urgent. Please, experts, help me! of8 Question Matns Section [3] 0. Upload answer sheet details. Also, write the output and your solution to the error support. Analyze the error, correct the errors in the following code, identify and mark. (Include <stdio.h>ā¦
Hello, please use structures to create an interesting and unique computational and algorithmic graphic which contains: - Some underlying mathematics (sequences, geometry, etc.) - User interaction - Dynamics, where the graphic evolves in time I have given question details, please do this usingā¦
Using the ORM framework Sequelize, write code to define a new Employee model (called employeeModel) that will correctly capture the following data (represented as a JavaScript Object). The name of the table is "employees". NOTE: Any special details about the data will be listed as commentsā¦
Use a for loop and write the code to produce the sketch below. In your answer box, you should include the full solution to create your sketch. Note: You must use a for loop to receive full marks! int spacing = 20; void setup() { size(300, 308); strokeWeight(2); stroke(255); ā¦
Sir/mam please make it quick. I have an exam in few mins. I need this program to solve my doubts. Thank you 'a' (overwriting from beginning of the array) and returns the number of maximum elements. In the last iteration if you have less than k elements; find the maximum if they are (>=2)ā¦
need it fast t Fot Clia FGI nd td
Work from scratch to draw a Full subtractor circuit: Your design takes three bits as input and outputs Sub and Borrow bit (Bo) as output. Sample example and Truth Table columns are listed below: Borrow (Bo) | A (229) | B (46) | Sub (183) ------------|---------|--------|---------- 1 |ā¦
In a XYZ coaching institute, there are students. Each student has taken tests, with scores ranging from 5 to 100. The first line stores the number of students. The next lines store the student scores. Each line starts with an integer, Ti, which represents the number of tests taken by thatā¦
10. Consider the master-slave JK Flip Flop with Q = 1 initially and complete the timing diagram of Q and Q' for Master and Q and Q' for Slave. Neglect hold time and propagation time. [5+5+5+5 = 20] Master Flip-Flop Slave Flip-Flop Clock CLK ~CLK Clock QMaster 0 Qslave
Posted at 9:00 am IST and need this before 9:35 IST, please provide us before the given time, it's urgent! lo 1000 The winner of the contest chosen based on total of 1000 participants. Each participant is given a registration number that ranges from 1 to 1000. In the lucky draw contest, theā¦
Sir/mam please make it quick. I have an exam in few mins. I need this program to solve my doubts. Thank you i) Assume that, you deposit an amount 'm' in a bank at an interest rate of 'x%' per year: At the end of each year; the interest earned is added to amount 'm' on deposit and this willā¦
Please send the C language code. [Marks = 12 (= 2 + 2 + 4 + 2 + 2)] Use dynamic memory allocation with pointers and arrays (Do not use linked list). Define a structure named POINT with two members: x and y (of type float). b) Define a structure named SQUARECT using typedef with the followingā¦
Text: Operating System Concepts - C Programming main Write the main function to do the following: - Return type: int - Empty parameter list - Declare variable, data type integer, to store the user's menu selection (i.e. choice). Initialize it to -1. Writeā¦
Please Answer my Question! Illustrate the C memory management while processing an array of integers, floats and characters process for the same from pointer arithmetic perspective_ appropriate examples also discuss the address allocations and access
Please send the solution fast. [Marks = 8 (=3+5)] Assume (Initialize) the following 10x10 matrix: values (two such patterns are highlighted in the above matrix with thick border): In the above matrix, consider all 3x3 matrices that have the following pattern of Here the centered element (whoseā¦
Discuss the memory related issues that may arise while returning an array that is local to the function from function and analyse all the possible solutions Make your answer through C programs: Consider scenario from the cinema ticket reservation process t0 design your program:
Given a number, return the total sum of that number multiplied by all the numbers between 1 and 10. Construct a C program for the above problem and analyze the looping statements and statements used. Example: For a given input number, the expected output is 55. For the expected output of 330,ā¦
Posted at 9:00 am IST and needed before 9:30 am IST, please it's very urgent. Jupiter Mission Rajjo of values specified by Rusty. The product of first prime multiples from bacon board on Rusty's SOS is the password of his laptop. How quantum numbers vary with two minor scales is password. Useā¦
Hello, please do question number 8 using openFrameworks C++, and provide as many comments as possible explaining the code. (a) Create the following figure in openFrameworks. Ask the user in setup() how many connected rectangles they want to be created, and then dynamically allocate an array ofā¦
Please solve as fast as possible. In the rectangle. Write a function to find the area of these coordinate values. The three rectangles from the person who is going. The rectangles have been drawn on the blackboard. Get the rectangles and print them in the calling function.
Please solve as fast as possible. Upioao as an input and print the given input as follows: Implement printing machine which will get the city name. Develop program. Input your city name: Output: Chennai Che Che n n Chennai
Q8. Which of the following statement(s) is/are true? The information gain of an attribute A used in ID3 is equal to the information gain used in C4.5 divided by SplitInfo(A). Consider a lift chart: It is always true that the value of the Y-axis increases monotonically when the X-axis valueā¦
Hello, please help me answer question number 7 using openFrameworks in C++. Please provide a snippet/screenshot of the output. Also, please add a lot of comments to explain the code. Thank you, and I promise to upvote. Similarly, write a circle packing program that creates randomā¦
Need help on this TOC question H 87 { 1 1u WF PoDO cr #: H [ 0 1 0 EE ! 1 # 8 17 S 1 [ 1 3" I DDD 77 D
x86 assembly Select the instruction sequence that will add 4 5 times using loop structure: Choice 1: Mov Li: add Ioop Choice 2: Li: add Ioop
Q7. Consider the following 2 matrices, namely A and B (10 20 A = (30 40_ B = Which of the following statement(s) is/are true? (230 The matrix multiplication between A and B (i.e, AB) is equal to 530_ (460 (2) The matrix multiplication between the transpose of A and B (i.e_, A TB) = is equalā¦
Hello ðŸā¢ā, please help me answer question number 5 part 1, 2, & 3 and using openFrameworks in C++. Please provide a snippet/screenshot of the output. Please add in a lot of comments to explain the code. Thank you, and I promise to upvote. Similar to the circle packing problem, pack randomā¦
Write code to parallelize the program Like #pragma omp stuff void improve(float a, float *alud, int int indx[], float b[], float x[]) { // TODO: Try int j,i; double sdp; float *r; // use openmp // parallelize the code below // r-vector(1,n); for (i-1;1<-n;it+) sdp ~b[i]; forā¦
Hello! Please complete the following question using C++/C only. Provide the snippet of the code and also add in as much feedback as possible to explain the code. Thank you. I promise to give an upvote. Thank you. (a) Create objects of the following classes and call their methods: - ofColor -ā¦
Problem 3 (35 points). Consider the language L = {w Ć¢ĖĖ {a,b}+ | |w| = |w|}: Is it regular? Context-free? Not even context-free? Justify your answer.
Given that the scheduling policy is RR, complete the timing/Gantt chart below for the following processes in the queue (use Tc = 10 ms and Tq = 60 ms. If relevant, assume that it takes Tc to bring in an old process or preempt a running process): P1, requiring 40 ms, arrives in the queue atā¦
Use Boolean to reduce the following logic functions. (a) f(A.B.C.D) = (A+C+D)(J(B+C)A+ B+ D)(J(B+C)B+C+ D) (b) f(A.B,C.D) = AB+ AD + BD + AB+ CD+ AD+ CD+ ABC (c) f(A.B.C,D) = ABC + AB + ABC + AC + ABC (d) f(A,B,C) = (AB+ AJAB+C)+ ABA+ABC +(A+ BJ(A+C) (e) f(A.B,C) = (4+ B)(A+ AB)( A+ B + ABC) +ā¦
QUESTION ONE: a) Based on your study of automata and the theory of computer science, explain FOUR (4) ideas behind automata theory. (8 Marks) b) Define the main principle of automata. (2 Marks) QUESTION TWO: a) Categorize the FOUR (4) main layers of automata theory and explain each layerā¦
answer in java. ASAP 2. [Easy] [5 Marks each] a)lmplement a recursive algorithm that takes a decimal number and converts n to its corresponding (you may return as a string) binary number: b) Implement a recursive algorithm to add all the elements of a non-dummy headed singly linked linearā¦
What is the critical combinational path (cycle) of the following 4x4 multiplier assuming delay of LAND and tADD for the AND gate and ADDER, respectively? Show your work. Extend the calculation to an N x N multiplier. A3 Az A, Ao Bo = B, Bz Ba VFo Pa Pe Pz Ps Ps Pa P Po
QUESTION FQURA a) Write the language produced by EVEN-EVEN, which consists of strings with an even number of 'a's and an even number of 'b's, defined over the set Z-{a,b}. Marks) b) Differentiate each by giving an example of an alphabet, strings, and language.
Write & Java program that reads list of integers into an array. The program should read this array fiom the file "input txt" You may assume that there are fewer than 50 entries in the array: Your program determines how many entries there are. The output is a two-column list. The first columnā¦
Can I get this blank filled in? ISense Multiple Access is a technique where the transmitter first checks to see if any other devices are transmitting on the same carrier frequency before attempting to transmit data on it. Review Check to review before finishing (will be flagged in Table ofā¦
Can I get this blank filled in?
Situation: Below: E portion bash script used and Enclose Maliare cimda Question: What integer gets returned from the conditional statement in line 02, if the Linux distro is indeed Gentoo? ie 0i: c-release 7re? Gentoo Ice -2: :var}" are Ice 03: Vir 203 12516 grep 447700 Ice 0: (Difficulty:ā¦
Problem Light Dimmer: You are to develop the structure diagram and produce the code for a light dimmer. The operation of the light dimmer is as follows: A light dimmer is used to control the brightness of a light. The dimmer has a switch to turn the light on and off, and a potentiometerā¦
Text: UI Controls and Multi-Line Output Please, I need help with the code in C# and the program. User Interface Controls and Multi-Line Output. Create a C# Windows Form containing different user interface controls and display multiple lines of output in a label. Use the enclosed .exe as anā¦
Using Python: Start using dictionaries. Gain more experience with functions. Write a program that operates on a dictionary that uses names and email addresses as key-value pairs. In the main function, you first need to initialize the dictionary with some artificial data. Here, you can use theā¦
Question (10 points): Purpose: Practice reading tabular files combining data from lists and writing into tabular files. Degree Difficulty: Easy For this problem, you need to program a function that takes information about the size and location of dots from a file and draws that informationā¦
List the classes of IPv4 addresses and their default subnet masks. In the final column, list the number of host addresses per IP address and network addresses. IPv4 CLASS & Default Subnet Mask Total Number of Network Addresses Total Number of Host Addresses Per Possible Networkā¦
Explain if the system in the figure is deadlocked. If not, give an execution order of the processes which successfully terminates. Explain if the following system is deadlocked or not. For the following resource allocation graph, for deadlock detection show the current contents of theā¦
4. Given the following resource allocation diagram: Apply the deadlock detection algorithm and either indicate why the system is deadlocked_ or specify safe allocation sequence_ If the process P2 also request 2 instances of resource deadlock? Why? does the system enter deadlock occursā¦
Given the sheet above, write the string function that will change turtle to bubble.
My name is Mohamed.
Qa Warrenhouse Extract Jack The Pine Valley's Furniture Company designing the fact table Qata Warehouse growing amount of transaction and product data The total number Nc dulcts solo the company 138. The company has 98 retail stores The company considers clothing monthly data Over Denoo ofā¦
Write a recursive method called square that takes two non-negative integer arguments, m and n, and returns m raised to the power of n. For example, square(4,3) should return 64. Do not use Math.pow() or any other method that you did not write. [20 points]
Perform Knaster's Procedure to split up the sports tickets between Brian and Lee: which items. Brian Lee 50 yard line ticket Goal line ticket 30 50 40 35 Box seats ticket (Student section ticket) 80 55 30 10 Bid Fair Share 1st cash settlement 2nd cash settlement Total cashā¦
In Java, please. Problem 4: Implement a recursive method called sumArray() that returns the sum of the first few numbers in the array. The method takes two parameters: a non-empty integer array called numArray and a positive integer called numbersToAdd, which represents the number of entriesā¦
(6 points) What kind of search does Simulated Annealing do (approximately) if the temperature is very large (i.e., close to co) at every iteration? Please select your answer from one of the following options and justify your answer: (a) It will halt immediately and do no search (b)ā¦
Given that the scheduling policy is RR, complete the timing Gantt chart below for the following processes in the queue (use 10 ms intervals): Process 1, requiring 20 ms, arrives in the queue at (t+0) ms Process 2, requiring 60 ms, arrives in the queue at (t+25) ms Process 3, requiring 30 ms,ā¦
Java question The following questions are related to methods. [20 points] Complete the method signature to have a parameter named "plant" of type String: [2 points] void getPlantInformation() What is the return type of the main method? [2 points] Create a method signature for a methodā¦
41. Transact-SQL comments (select all that apply): can be single-line, can enclose a multi-line block of text, have identical single-line and multi-line syntax, have different single-line and multi-line syntax. 42. Transact-SQL statements in one batch (select all that apply): are sent to SQLā¦
Give an example of a context-free grammar for the language (ab+ba)(a+b*). Give an example of a context-free grammar for the language (ab+ba)(a+b*).
9. The authors of the course text speculate that the "latest" Intel i7 uses tagged hybrid predictors False True
8. Which of the following does not limit the gains from loop unrolling? Register pressure Code size limitations Speed of the floating-point units Decreased amortized overhead
7. If a processor pipeline using dynamic scheduling lets instructions start as soon as their data operands are available; it is called out-of-order completion out-of-order execution Tagged hybrid predictors register pressure
Suppose that we have three variables Xi, Xz, and X3, which are defined on the same domain of {1,2,3}. Two binary constraints for these three variables are defined as follows: R1z = {(XuX2) [(2,1) (2,3) (3,2) (3,3)]} R13 = {(XuX3) [(1,2) (2,1) (3,1) (3,3)]} 1. (12 points) Is Xi arc-consistentā¦
6. Loop unrolling for a loop which iterates number of times that is not a multiple of the k copies of the unrolled loop requires: None of these An additional not unrolled loop; executed k mod times An unrolled loop executed k n times An additional not unrolled loop; executed mod k times
4. In the following instructions, which pair has a WAW hazard? Mov imul imul eax,x eax;eax eax,a ax2,eax eax,b eax,X eax,ax2 eax,c quad,eax Mov mov imul add add mov add eax,ax2 and add eaxc add eaxc and mov quad,eax Mov ax2,eax and mov eaxb None of these
Taken Not taken Predict taken Predict taken 10 Taken Taken Not taken Not taken Predict not taken Predict not taken Taken Not taken Assume you start in state 00. Modify the following code so that the array a[9] contains the digits of your student ID number, separating each digit by commas. Thus,ā¦
Encrypting Code (3 Options) Write a program that uses a dictionary to encrypt a text file. You can use the dictionary provided below or modify it to create your own version: Encrypt_Code = {'A':')', 'a':'0', 'B':'(', 'b':'9', 'C':'*', 'c':'8', 'D':'&', 'd':'7', 'E':'^', 'e':'6', 'F':'%',ā¦
4) Karnaugh Maps: Simplify parts a through d using Karnaugh maps. a) F(x,y,z) - 2(0,2,4,5) b) F(x,y,z) - xy' + yzt + x'yz' c) F(w,x,y,z) - 2(2,3,12,13,14,15) d) xztw'xy'tw(x'ytxy') Find minterms of xytyztxyz by plotting it in a Karnaugh map. e) Find all the prime implicants of F(W,X,Y,2) -ā¦
Common Time Zones Function Name: commonTimeZones() Parameters: code1 (str), code2 (str) Returns: list of common time zones Description: You and your friend live in different countries but you figure there's a chance that both of you might be in the same time zone. Thus, you want to find outā¦
What are some obstacles you must remember when considering the use of network logs within an investigation? (2 marks) Knowledge: tutorials, texts, credible websites; Ctc) 10. Using credible sources (your own answer the following three questions one slide per question. Facing investigator, dueā¦
Write a C++ program using the for statement to print a list of Euro currencies (from 1 to 5), and their equivalent value in Dollar according to the rate 1.15 (i.e. 1 Euro = 1.15 Dollar). Show both currencies as shown below.
Suppose we want a derivation system that includes the symbol 'x' to represent exclusive 'or'. We might create system SD++, incorporating the replacement rule Exclusive (XOR) P x Q āā· (P ⨠Q) & ~(P & Q) along with all the rules of SD and SD+. Do two derivations in system SD++ to show that:
Note: for 2 , you can use ( p ā q ā” (p ā q) ā§ (q ā p) ) to prove Derive the following rules from the Logical Equivalence Rules Absorption Laws 2 Material Equivalence Laws
I don't know what code to put in the m = This is Python. Please help. Please write two functions that calculate the sum of every element and its mean value. def my_sum(li): # COMPLETE THE CODE BELOW sum = 0 for num in li: sum += num # END OF YOUR CODE returnā¦
Question 6: A program with 20 machine instructions is executed on a 10 Hz frequency CPU. The instruction cycle of the CPU has steps, and each step is executed in one CPU clock period. Compute the clock period of the CPU. b) Compute the time needed to execute one instruction. Compute the timeā¦
Question 5: (Optional) Suppose you are using RISC architecture where every step takes one clock cycle to solve. You are using Pentium IV style, which has a 20-stage pipeline. The question is, if you have 30 instructions in a program, how many cycles will it take to make the pipeline full? Whatā¦
Create flowchart for solution that: reads in strings of digits from file calls the methods you ve designed to determine whether or not each string of digits has the desired property outputs each string of digits that satisfies the property: One per line_
A method that takes the sum calculated in part and the last value in the integer array and returns True if the sum and the last integer are both 0, True if (10 - (sum % 010)) is equal to the last integer, False otherwise. Example: e(90,3) - False, e(109,1) - True.
This question contains multiple parts. Code segments should be considered individually. Each part should be: (a) Write the output of the following code segment: #include <iostream> using namespace std; int main() { int x = -1; try { cout << "Inside try" << endl; if (xā¦
Write a Ct+ program using the for statement to print a list of Euro currencies (from 1 to 5), and their equivalent value in Dollar according to the rate 1.15 (i.e. 1 Euro = 1.15 Dollar). Show both currencies as shown below.
Ifthe precision is 0.7 and the recall value is 0.3. What will be the measure?
How to fix the bug here? public int addAccount(Account account) { int accountId = this.customerAccounts.size(); this.customerAccounts.put(accountId, account); return accountId; } public Bank { Map<Integer, Account> customerAccounts = new HashMap<Integer, Account>(); ā¦
def unflatten_grades(grades): """ This function takes a dictionary as input, where each key represents the individual grades that a student has made in a given category. The function will return a dictionary of dictionaries, where the key is the student's name and the associated valueā¦
A computer program is said to learn from experience with respect to some task T and some performance measure P if its performance on T, as measured by P improves with experience E' Suppose we feed learning algorithm lot of historical stock prices cata and have it learn to predict marketā¦
(Java) Code is supposed to count the number of words in each line of the given text file. It is currently counting the number of words in the entire text file. Please solve to make it count the number of words in each line. 1 package lab6; 2 import java.io.File; 3 importā¦
Text: help ASAP WITHIN 15 min networking
4G LTE 902 Lab 4.pdf 2 ua 2 60012402-4 Algorithms Write a Java program to implement Quick Sort Algorithm using an array of size Algorithm Quicksort Input: An array A with n elements Output: The array A sorted in non-decreasing order: QuickSort (A, low, high) Procedure QuickSort (A, low,ā¦
In E16: Use the product code breakdown provided at the top of the worksheet guide to create appropriate nested functions to complete the following: If the product is Black and 120, insert the product price. Otherwise, the cell should be blank. Copy the function down to the other cells in theā¦
2.4 Prove that there are exaclly 3" monomials of n dimensions and 3" clauses ol n dimensions.
Which of the following variables have the datatype Boolean? Select one or more: a. word = "False" b. isMinor = True c. X = 20.3 d. y = (56 - -8) and (45 == 3 * 15) e. result = 7 < 29
Which of the following boolean expressions are True? Select one or more: a. (56-=8) or (45 == 3*15) b. 7 < 29 C. "he" == "she" d. 68 == 67 e. (22 > 11) and (35 <= 35)
Please use Mathematica notebook code to solve the following question! Problem 6 2.5 pts: The digit sum of a number is given by adding the digits of that number. For example, the digit sum of 7763 is 7+7+6+3 = 23. If you iterate the digit sum until the resulting number has only one digit, thisā¦
What does the following Python program print? print (3*4 == 12) Select one 0 a_ 3*4 == 12 b_ nothing, it has a syntax error: True d_ False
What does the following program print? myAge = int("6") print(myAge) yourAge = int(6*2) print(yourAge) if myAge > yourAge: print("I am older.") elif myAge == yourAge: print("We have the same age.") else: print("You are older.")
I need help with the following assignment on C++ programming to understand how to use fstream for file I/O. Below is the data in the .txt file: name grade_total Xyla 279 Xandra 313 Barry 218 Yoko 327 Rama 280 Ciara 294 Mariko 360 Quinn 397 Laurel 386 Larissa 267 Lavinia 263 Amber 280 Reeseā¦
Please use MATLAB. Question Show how the output looks like upon running the code, summarizing 41454 9 + 11
[2 points] Find the first six terms of the sequence defined by each of these recurrence relations and initial conditions dn = -2an-1, Q0 = -2, an = dn-1 - an-1, a0 = 1, 017.
I need the answer as soon as possible, please. It's urgent. ðŸā¢Ā
Problem 3: Firewall Rules (30pt) Suppose a network with an address of 129.100.5.* (i.e., 129.100.5.0/24). The IP addresses of the web server and email server are 129.100.5.10 and 129.100.5.20, respectively. Assume that the HTTP server port number is 80 and the SMTP server port number is 25.ā¦
Please answer both questions as fast as possible, there's only 20 minutes left. [10 points] Calculate the total average delay for an Internet connection from a LAN through a proxy server if: Internet Delay = 98 sec, Access Delay = 4 sec, and LAN delay = 0.5 sec. [5 points] If no caching isā¦
MTH208-2122-52-Numerical Analysis Knene Question 2 Hoglcott, Use the bisection method to solve the equation Ć¢ĖÅ”(Inz) on the Interval [4, 10] with sufficient accuracy for the correct result to have the 4th significant digit (for example, the 4th significant digit of 12.345 is 4). Use MATLAB toā¦
Question 2: Use a Karnaugh map to simplify the Boolean function and find the SOP and POS for each case: RABCDJ = LM(1,3,7,11,15) RABCD = 2m(0,2,5) RABCD = 2w(0,1,2,3,4,5,10) + d(12,13,14,15)
For this lab, your task is to add an iterator to your Car-Parts example from last week's lab 2. Poms 7name String Iterator model 54a Heena Jmno parts ArrayList; First() Next() IsDone() CurrentItem() #OPads_l showModelInfo() addPart() Void paninica Wheels CarParts ConcreteIterator
Please use python and only use while loop. Please do not use list. Write a program to read 5 integers from the user, and calculate the sum of the integers. However, if one of the values is 7, then it does not count towards the sum and the next value entered by the user does not count So forā¦
```cpp #include <iostream> using namespace std; class Test { public: Test() { cout << "Constructing object Test" << endl; } ~Test() { cout << "Destructing object of Test" << endl; } }; int main() { Test tl; int marks; cout << "Caught " << marksā¦
This question contains multiple parts: Code segment at each part should be considered individually. (a) Write the output of the following code segment #include <iostream> using namespace std; int main() { int l; cout << "Inside if" << endl; throw cout << "After throw" << endl; ā¦
Which of the following classes or interfaces from the Java Collections Framework have iterators? SortedMap HashSet NavigableMap HashMap Question 31 (1 point) Which of the following classes or interfaces from the Java Collections Framework have iterators? SortedMap HashSet NavigableMap HashMap
Study the following program segment carefully: Develop the following program by adding the following overloading operators: - overload operator + that returns a new Box object that has the sum of two Box objects' dimensions - overload operator / that divides its dimension by a factor of x -ā¦
DIALOG BOX BUTTON ACTION LISTENER Write a program that takes input from the user for the loan amount, annual interest rate, and tenure, and displays the total and monthly payment on dialog boxes. Input: Message Enter yearly interest rate (Eg: 8.25): 5.25 The monthly payment is 2009.69. Theā¦
Create MS Word file with your full name and student file name ChanTaiMan H12345678.docx and attempt all questions. Use separate page for each question. Attempt the following questions. Each part carries marks: 1. Differentiate inline and constexpr functions in terms of their time ofā¦
Sequential Flow Draw a flowchart and write pseudo code to represent the logic of a program that allows the user to enter values for the width and length of a room's floor in feet. The program outputs the area of the floor in square feet. Draw a flowchart and write pseudo code to represent theā¦
HELP CODING IN C [5 Points] Write program that will calculate the standard deviation of the scanned array List using the following formula (Section 5.4): (xk 0)2
Graph Theory: Reaching Vertices A vertex reaches another vertex if there exists a path that connects them. We define the reaching vertices of a vertex to be the set of all vertices that can reach it. Write a function called "reaching_Vertices(adj_list, target)" that takes the adjacency list ofā¦
Consider the given reference string and apply FIFO, LRU, and Optimal page replacement algorithms. Use the optimal algorithm as a comparison tool and compare the performance of these algorithms (Show step by step details) (20 points - 5 points for each algorithm + 5 points for theā¦
def adjacency_list(graph_string): header, *edges = [s.split() for s in graph_string.splitlines()] directed = header[0] == 'D' weighted = len(header) == 3 and header[2] == 'W' num_vertices = int(header[1]) adj_list = [[] for _ in range(num_vertices)] for edge in edges: ā¦
Note: Similarity less than 15%, you can send me a docx by email 3lijaffer2000@gmail.com In line with your assignment, investigate Single Sign-On (SSO) mechanisms and produce a report containing the following content: Task 1: Critically evaluate the vulnerabilities and threats possible in SSOā¦
Animal.h #ifndef ANIMAL_H #define ANIMAL_H #include <iostream> #include <string> using namespace std; class Animal { protected: string name; string species; public: Animal(string pName, string pSpecies); virtual void eat(); virtual voidā¦
How many bit strings of length 10 begin with three Os and end with two 1s?
Create a Python program that will repeatedly ask the user to enter integers (positive integers only) until a stopping condition is encountered. You can assume that we will never enter any other values other than positive integers and a stopping condition. Once the stopping condition isā¦
Essay argumentative to the problem statement The Problem Statement The Fourth Industrial Revolution is dead in the water! Present an argument for or against this statement: In your argument, clearly state your stance. To firmly support your argument, make reference to multiple specificā¦
4led Making UI for Showing Steps [2 points] Create an HTML page with the title "Jablo The JavaScript File Page Load" and include a canvas with dimensions of width: 800, height: 500. Add an input box to accept user input and a button to start the game. 2. [3 points] In the JavaScript file,ā¦
This is a Java code. Show all the steps, thanks. Q1.2: Translate the following pseudocode into a Java program called DivideItems. Assume that dividend and divisor are real numbers. Use the text box or a file upload for your answer: 15 Points. READ Dividend READ Divisor IF Divisor equalsā¦
(a) Explain FOUR (4) physical parts of the computer systems (8 marks)
Make pseudocode and flowchart for this program and kindly discuss the program. #include <iostream> using namespace std; int main() { // variables float cel, fah, rankine, kelvin; // input cout << "Enter temperature in Celsius: "; cin >> cel; // change toā¦
please do this asap According to the Minimax gorithm; identify correct winning path using the abstract game tree given below: Heuristic measures of leaf nodes are shown in red_ MAX Min MAX MIN MAX Select one: ADGJM There no correct winning path among other answers given ABEHL ADFIM ACFIM
use c language Write Algorithm and Flowchart to swap two numbers without using third Variable.
Take the twos complement of the following signed binary numbers. What is the resulting number in decimal? Show your work and clearly label your answers_ 10110 01110 11011
Please explain the output of the code in brief, explaining everything in the greatest possible detail starting from the code execution. Q19. Write the output from the following program: #include <stdio.h> void main() { int a[] = {22, 19, 17, 36, 12, 15, 28, 35, 66, 43}; int i, j, n =ā¦
```csharp using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ExceptionHandlingExercises { public class ExceptionHandlingExercises { public void Execute() { ā¦
This task is from Linux, and do it in nano editor. Tasks: Running on a particular treadmill, you burn 4.2 calories per minute. Write a program that uses a loop to display the number of calories burned after 10, 15, 20, 25, and 30 minutes.
```python def reverse_string(string): return string[::-1] # Call reverse_string() to reverse the string "computer science"! # YOUR CODE HERE print(reverse_string("computer science")) def filter_palindromes(str_list): # YOUR CODE HERE ## An example function call to help you debug yourā¦
(b) Write a C programming to find out maximum and minimum from THREE (3) numbers using functions. Get the three numbers as input from the user_ (10 marks)
Problem P5.16 from the Book. Write a class called Digital Thermometer that has a single instance variable stored as a double that represents Vm. Create a one-argument constructor to accept an initial value for this instance variable. Create an accessor (getVoltage()) and mutator (setVoltage())ā¦
In the DFS algorithm the fringe priority is points the real cost LIFO The estimated heuristic FIFO In the BFS algorithm the fringe priority is: points LIFO FIFO The real cost the estimated heuristic In the Greedy algorithm the fringe priority is: points LIFO FIFO The real cost the estimatedā¦
Assignment 1: Write a Java program to find the duplicate values of an array and display its execution time. Assignment 2: Write a Java program to find the largest value in an array and display its execution time. Assignment 3: Write a Java program to perform the Preorder traversal of a Binaryā¦
Q13. What will be the output of the following program? Explain your answer. #include <stdio.h> int main(void) { printf("Main"); int csoO; printf("cso"); int endsem(); printf("endsem"); return 1; endsemo; }
This task is from Linux, and do it in nano editor. Task 3: Create 5 files with different permissions and apply all file conditions.
A heuristic function h1 dominates another heuristic function h2 if: - for every state N, h1(N) <= h2(N) - for every state N, h(N) = h2(N) - for every state N, h1(N) >= h2(N) - if h1 is admissible and h2 is not admissible Consider the below search tree where costs are on edges and heuristicā¦
Find the closed-form solution to each of the following recursively defined sequences: S1 = 13 Sn = Sn-1 + 13 for n > 2 (b) Ai = 1 + 4n = 4n-1 + n^2 for n > 2. (Hint: 1 + 2 + 3 + ... + n^2 = 2n^3) B = 1 Ba = 3Bn-1 + 1 for n > 2 (Hint: 3 + 32 + 43)
(d) Develop a program that takes 'n' numbers as current input (mA) from the end user. Then receive values for these 'n' numbers and store them in an array named 'arr_current'. Then, arrange the numbers in ascending order and print them. Hint: n=3 [input from end user] 3 values for n - 33,12,57ā¦
please answer in C language and explain In brief Q12_ Explain in detail how to access a two-dimensional array using pointers with an example program?
This task is from Linux, and the solution will be in nano editor. Task 2: Get Bio-Data from the user and save it to an array. Then print the bio data.
Consider this data sequence: "fish bird reptile reptile bird bird bird define SINGLETON to be data mammal fish". Let's define a SINGLETON as an element that is not repeated immediately before or after itself in the sequence. So, in this sequence, there are four SINGLETONs (the first appearanceā¦
This task is from Linux. Task 1: Use a for loop to rename a couple of existing files in a folder. For example, the existing files in a particular folder are: file1.txt, file2.txt, file3.txt. After running your script, these should be renamed to: new-file1.txt, new-file2.txt, new-file3.txt.
Please help with the Coral programming language. Please show the solution step by step. Write a program that will read input for temperature in Celsius and then calculate and display its equivalent in Fahrenheit: Display both the input value and its equivalent in Fahrenheit. Formula to use: Fā¦
Question 6) Write a program to calculate the perimeter of a square, rectangle, and the circumference of a circle. Ask the user to key in the required details depending on their selected shape. The program will keep asking the user for input unless the user enters 0 to exit. The followingā¦
Q6. (A) A class has a number of students and a number of candies to pass out to them. Their teacher decides the fairest way to divide the candies is to seat the students around a circular table in sequentially numbered chairs. The chair number will be drawn from a hat. Beginning with theā¦
Text: sample-input: 1 13 14 2 25 26 45 23 12 34 10 sample-output: Inversion count: 2. Sorted array: 1 2 13 14 25 26. Inversion count: 8. Sorted array: 10 12 23 34 45. Homework 7 Programming (Maximum 50 points) Due 11:59 pm Wednesday March 30, 2022 Submit your Java codes via Blackboard. Refer toā¦
QI: Fill up the blank lines in the function update(int *a, int *b) and justify your answer: receives two integer pointers, int* a and int* b. Set the value of a to their sum and b to their absolute difference. There is no return value, and no return statement is needed. #include <stdlib.h>ā¦
Text: Debug the following code: Write out the [full] re-factored code (without comments) in the textbox below: Make sure your code's logic still falls in line with their respective comments) NOTE: You do NOT have to write what the [fixed] program's output is. public class Test { ā¦
A bridged LAN is shown in Fig. 1, where 'Bn' is the name of the bridge and 'n' is the identifier. Fig. 1 Assume that all bridges have equal priority and all segments have the same path cost. Determine the spanning tree topology of the network. Your diagram should include the followingā¦
(a) Construct an algorithm that can take input of two integers from the user and find the sum. If the sum is in the range of 10 to 20, then display it as 30. (5 marks) (b) Draw a flowchart for the following scenario: Calculate the square of a negative number. If it is a positive number, noā¦
Please answer using R code. Use the data "ProductionLot.txt" for this manufacturing study. The production times for 111 recent production runs were obtained. The data set lists, for each run, the production time in hours (first column) and the production lot size (second column). We areā¦
3. Provide the type and hexadecimal representation of the following instruction: sw St1, 32 (St2)
Text: fastest please Examine carefully the truth table given below, and then write down the output Y in the [4 marks] SOP canonical form (1 pt), SOP standard form (1 pt), POS canonical form (1 pt), and POS standard form (1 pt). d. Find the minimized form for Y [2 marks]. 2. Usingā¦
What are the instructions to branch on each of the following conditions? (2Opt) Hints: use conditional branches and if the condition is satisfied, it will go to the label "Done". Ss0 < Ss1 Ss0 <= Ss1 Ss0 = Ss1 Ss0 >= Ss1
please answer in " c " language Q1. Create an inventory of 50 students (use array of structures) with following parameters: Student Name (Using random alphabetic string generation of exact length 10) Student ID (Using random number generation of exact 5 digits) Student JEE Score (Using randomā¦
Q16. What will be the output of the C program? Explain your answer. What happens when p is printed? #include<stdio.h> void ptr(char**); int main() { char *argv[] = { "abc" , "def" , "ghi" , "jkl", "mno" , "pqr" }; ptr(argv); return 0; } void ptr(char **p) { char *t; ā¦
43) a) Discuss the two main types of constraints on specializations and generalization. (b) How does a category differ from a regularly shared subclass? (c) Map the EER diagram shown inā¦
Weekly Data Class, Create a C++ program to read the numeric contents of the attached file. Add these numbers together and report the total. Create a new Visual Studio project. Place the file in the project. Create a CPP program to read the contents. 1. In the program, create a string constantā¦
C++ Language Please Create the Redact class with an instance variable String text. Create a constructor with an input String value to initialize the instance variable. Complete the method Redact redact(String[]) which takes as input an array of words whose characters are to be replaced byā¦
Q1. Create an inventory of 50 students (use an array of structures) with the following parameters: - Student Name (Using random alphabetical string generation of exact length [0]) - Student ID (Using random number generation of exact 5 digits) - Student JEE Score (Using random numberā¦
In simple Java, please. Create a double array with the values of 254, 135, 10.25, 5.8, and 9.02. Create a method called printArray that prints each value of any double array. Use this method to print your double array. Create an overloaded method also called printArray that prints each valueā¦
In simple Java, please. (Convert feet into meters) Write a program that reads a number in feet and then write a method that converts it to meters. Then display the result. One foot is equal to 0.305 meters. Here is a sample run: Enter a value for feet: 16 16 feet is 4.88 meters. SemLi
Please use R. Problem 2: Distinguish between digits in MNIST using logistic regression. We'll use the MNIST image classification data, available at the MNIST ALADAtA. For this problem, we want to distinguish between all 3 and 4 digits. Filter the train data to only include digits 3 and 4.ā¦
Can you try to use the C# please. Not Java or C++ using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConceptTest2 { public class ExceptionHandlingExercises { public void Execute() { ā¦
#include<iostream> using namespace std; int find(int num) { if (num < 0) { return -1; } else if (num > 0) { return 1; } else { return 0; } } int discover(int one, int two) { int first = one * two; if (first > 100) { first = first / 10; ā¦
Select the single instruction that converts an ASCII digit in AL to its corresponding binary value: If AL already contains a binary value (00h to 09h), leave it unchanged. al, 0Fh xor al, 0Fh and al, 0Fh
In this problem, you're given a list of numbers. The function should return a list of three values (in this same order), namely, the interval start, interval stop, and the value of the greatest sum. For example, if the list is: x = [7, -9, 5, 10, -9, 6, 9, 3, 3, 9], then the greatest intervalā¦
Please show your work. Thanks! Question 5 (5 points): Consider the following schedules of transactions T1, T2, and T3. Determine whether $ is recoverable or not. S: W2(X); W3(X); W1(Y); R3(X); R2(Y); R1(X), Commit(T1); Commit(T2); Commit(T3);
Please show all work. Will upvote, thanks! Question 4 (5 points): Consider the following schedule S: R1(X); R2(Z); R3(Y); W1(X); R2(Y); R2(Z); W2(X); W1(Y). Draw the precedence graph for the schedule. Is the schedule conflict-serializable?
(a) Fill in the empty cells in the following Boolean Algebra input-output table. I Z 0 0 1 0 0 1 1 1 (r + z) y (r - z) (b) Use your answer to (a) to write down the Boolean Algebra result: (r + z) (y) = (1.2) . (1 + 9) [(1.2) . x] + [(1.2) - g] [x . (1.2)] + [(1.2) . y] [(x . x) .ā¦
Algorithm WA1: For a given set of node pairs and their associated shortest paths and the traffic matrix T of an instance, for each request randomly assign wavelengths to the paths, one at a time, such that no wavelength conflict occurs. Take extra care with node pairs that have more than oneā¦
Lab Task [70] Write a C program that can perform the following operations: Your program should get two inputs from the user on the command line. The first should be the name of a file available on your PWD. The second should be a character. Make sure that the user has provided correct inputs.ā¦
The following data are given: x=[1,3,5,7]; y = [ln(1), ln(3), ln(5), ln(7)] a) Write the Python program to interpolate the above data using the Newton's divided difference method. b) Print out the divided difference coefficients. c) Estimate the logarithm of 2. Print out the true value,ā¦
Device a function to reverse the strings. b) Device function to reverse the strings stored in the following array of pointers to strings: (6 marks) ~ILct uelt "Tenth 2ud nall" - Split #04 polle' Tau 4uL
Write a recursive method called square that takes two non-negative integer arguments and n, and returns m raised to the power of n_ For example, square (4,3) should return 64. Do not use Math:pow() or any other method that you did not write:
Answer all the questions. Consider the context-free grammar: S -> SS + Iss * Ia a) Show how the string "aata*" can be generated by this grammar. b) Construct a parse tree for this string. c) What language does this grammar generate? Justify your answer.
What poiro Mnul almo L0O 00lb>100)8 printf (e Jde maino int K-WJ-n for ( ; printf ("%od %odw" , Lj)) F1++<: maino iut >7z 57F[ 2 =+&e++7 &&++1 ; printf ("x = %d = %d z = %din"I%2) : 4-marks Len
Just the output and justification is enough a) With respect to the given image, find the outputs generated for each statement with justification. 65524 65522 65574 65522 455c0 nnutn"Adueri ul P0d "ed #euiu" _ printf ("Adutru of Fud "h " Hant Wnnnenntn 4 unun"elea Uu"u "ud "4" "(L T Lsauat |at
Question 121 1 pts What is the output of the following code snippet? #include <iostream> using namespace std; int main() int value valuet+; cout value return endl; No output due to syntax error
What is the output of the following code snippet? #include <iostream> using namespace std; int main() { int double 365 25; 10; cout << return endl; } No output because the code snippet generates compilation errors 36.525 36
The Jelacan output for the following main program is as follows: ```c #include <stdio.h> #include <string.h> int main() { char output[15]; char str[] = "Shall we tell the Director?"; char *deputy = str + 6; char *director = "To err is human, butā¦
Question 5: Determine the time complexity of the following code segments. In each case, justify your answer. (a) sum = 0; for(i=1; i<=2*n; i++) sum = sum + 1; (b) sum = 0; for(i=1; i<=n*n; i++) sum = sum + 1; (c) sum=0; for(i=1; i<=n; i++) sum = sum + n; (d) sum = 0; for(i=1; i<=n; i++)ā¦
Text: Output and Justify main() { int a = 30, b = 40, X; X = (a != 10) ? 50 : 0; printf("x = %d", X); } main() { int i; printf("%d", 0); for (i = 1; i < 5; i++) { printf("%d", i); } } ā¦
It's C programming needed quickly, please. Upload answer sheets Text time left: 58.19 Consider the following scenario: There are "n" patients in a hospital. The doctor wants to save those patients' details (get the input from the user) of the percentage of disease affected in a variable (PE).ā¦
Given an array of 'n' elements in the main function, identify all the leaders (using a function) and print them. An element is said to be a leader if all the elements to its right are smaller than it. For example, if the elements are 12, 13, 16, 10, then there is only one leader element whichā¦
Sir/madam, please make it quick. I have an exam in a few minutes. I need this program to solve my doubts. Thank you. ii) If i and j are ints and p and q are pointers to int, which of the following assignments are not legal? [2] Pz&*&1 Pz*&*&j i-*pt+ + *q i-(*&)j
Please urgent!! With respect to the given image, find the outputs generated for each statement with justification. 30 6104 MM; 9u06 9r98 GRA integer variable pointer to an integer variable pointer to an integer pointer printf ("Address of i is %d\n", &i); 15 marks printf ("Address of j isā¦
Section [Module J] J of J Question Upload answer sheets Mathematics for this Question Consider the following operations Queue ADT, Show the content of Enqueue(15); Enqueue(25); Enqueue(35); queue size 10 along FRONT and REAR values Dequeue(): Dequeue(): Enqueue(45); performing each followingā¦
Please urgent!! What will be the output of the following program? Please answer (both output and justification carry equal marks). #include <stdio.h> int main() { int i; for (i = 0; i < 4; i++) { printf("%d ", i); } int x, y, z; x = y = z = -1; x = ++y &&ā¦
Given 'n' integers, write a program to find three distinct numbers that are sum-equivalent to the first number. Two numbers are said to be sum-equivalent if the sum of their digits is the same. Here, both numbers are five-digit numbers. The sum of the digits of the first number is 5+1+8+2+1 =ā¦
Situation: Jake Milliana Rendition Infosec gave a talk at the "Wild West Hackin' Fest" in 2019. During which he discussed the importance of checking the PATH Variable. The highlighted text in the below snapshot poses any issues? And why? (Note: this shouldn't take more than 3-4 sentences toā¦
Get a string of alphabetic characters and return the value of the counter variable. The counter is initialized to 100 and decrements by 1 for each vowel and decrements by 1 for non-vowels in the input string. If the input string contains the special character '$', then return the counter asā¦
solution should be in python programming The factorial of a positive integer N, denoted by N!, IS defined by the following: N! = 1x 2 * xN (Note: 0! = 1 ) Using subprograms and functions, create a recursive program to compute N! The user should input a positive integer and a subprogram shouldā¦
**Please, Solve all the Questions Answers.** Quartile Based on the figure below, answer the following questions: listData Give the value of the following expressions: 1. Ptcl->info 2. picz->'next->info 3. Lietdyey->Jnexe->'next->info 4. Arc->the following cxnresslons (Nc falsc? IE data->nextā¦
The response should be in Prolog (logical language) for all these questions below: A mini-sudoku is an array of 4x4 in which each entry is one of the four numbers 1, 2, 3, 4. To be a valid Sudoku, each row, each column, and each of the four quadrants must contain different numbers (as shown inā¦
Consider the following set of processes (smaller priority number implies higher priority). The processes are assumed to have arrived in the order P1, P2, P3, P4, PS all at time. Process Priority Burst Time P1 1 t0 P2 2 t0 P3 ā¦
Question 21 (10 points) Write a recursive function tuple_product that, given a tuple of integers, will return the product of that tuple's integers. Extra credit: Have the function support nested tuples. You can check if a variable is a tuple: type(v) is tuple will only be True if v is aā¦
The following questions are intended for the Windows XP (WnXP) VM. Difficulty: Intermediate. What is the state of the "W32time" service? What command did you use to get this information?
8. What is the relationship between R and RStudio? 9. Edit the code chunk below to assign the value to the variable. Your code here. 10. Explain in words what the following code does. (Optional: Why does print(Y) produce 5 and not 62?) ``` Y <- 2 2 <- Y 2 <- 2 + 1 print(Y) ## [1] 5 print(2) ##ā¦
Need this before 9:30 am IST. It's urgent. Please, experts, help me! of8 Question Matns Section [3] 0. Upload answer sheet details. Also, write the output and your solution to the error support. Analyze the error, correct the errors in the following code, identify and mark. (Include <stdio.h>ā¦
Hello, please use structures to create an interesting and unique computational and algorithmic graphic which contains: - Some underlying mathematics (sequences, geometry, etc.) - User interaction - Dynamics, where the graphic evolves in time I have given question details, please do this usingā¦
Using the ORM framework Sequelize, write code to define a new Employee model (called employeeModel) that will correctly capture the following data (represented as a JavaScript Object). The name of the table is "employees". NOTE: Any special details about the data will be listed as commentsā¦
Use a for loop and write the code to produce the sketch below. In your answer box, you should include the full solution to create your sketch. Note: You must use a for loop to receive full marks! int spacing = 20; void setup() { size(300, 308); strokeWeight(2); stroke(255); ā¦
Sir/mam please make it quick. I have an exam in few mins. I need this program to solve my doubts. Thank you 'a' (overwriting from beginning of the array) and returns the number of maximum elements. In the last iteration if you have less than k elements; find the maximum if they are (>=2)ā¦
need it fast t Fot Clia FGI nd td
Work from scratch to draw a Full subtractor circuit: Your design takes three bits as input and outputs Sub and Borrow bit (Bo) as output. Sample example and Truth Table columns are listed below: Borrow (Bo) | A (229) | B (46) | Sub (183) ------------|---------|--------|---------- 1 |ā¦
In a XYZ coaching institute, there are students. Each student has taken tests, with scores ranging from 5 to 100. The first line stores the number of students. The next lines store the student scores. Each line starts with an integer, Ti, which represents the number of tests taken by thatā¦
10. Consider the master-slave JK Flip Flop with Q = 1 initially and complete the timing diagram of Q and Q' for Master and Q and Q' for Slave. Neglect hold time and propagation time. [5+5+5+5 = 20] Master Flip-Flop Slave Flip-Flop Clock CLK ~CLK Clock QMaster 0 Qslave
Posted at 9:00 am IST and need this before 9:35 IST, please provide us before the given time, it's urgent! lo 1000 The winner of the contest chosen based on total of 1000 participants. Each participant is given a registration number that ranges from 1 to 1000. In the lucky draw contest, theā¦
Sir/mam please make it quick. I have an exam in few mins. I need this program to solve my doubts. Thank you i) Assume that, you deposit an amount 'm' in a bank at an interest rate of 'x%' per year: At the end of each year; the interest earned is added to amount 'm' on deposit and this willā¦
Please send the C language code. [Marks = 12 (= 2 + 2 + 4 + 2 + 2)] Use dynamic memory allocation with pointers and arrays (Do not use linked list). Define a structure named POINT with two members: x and y (of type float). b) Define a structure named SQUARECT using typedef with the followingā¦
Text: Operating System Concepts - C Programming main Write the main function to do the following: - Return type: int - Empty parameter list - Declare variable, data type integer, to store the user's menu selection (i.e. choice). Initialize it to -1. Writeā¦
Please Answer my Question! Illustrate the C memory management while processing an array of integers, floats and characters process for the same from pointer arithmetic perspective_ appropriate examples also discuss the address allocations and access
Please send the solution fast. [Marks = 8 (=3+5)] Assume (Initialize) the following 10x10 matrix: values (two such patterns are highlighted in the above matrix with thick border): In the above matrix, consider all 3x3 matrices that have the following pattern of Here the centered element (whoseā¦
Discuss the memory related issues that may arise while returning an array that is local to the function from function and analyse all the possible solutions Make your answer through C programs: Consider scenario from the cinema ticket reservation process t0 design your program:
Given a number, return the total sum of that number multiplied by all the numbers between 1 and 10. Construct a C program for the above problem and analyze the looping statements and statements used. Example: For a given input number, the expected output is 55. For the expected output of 330,ā¦
Posted at 9:00 am IST and needed before 9:30 am IST, please it's very urgent. Jupiter Mission Rajjo of values specified by Rusty. The product of first prime multiples from bacon board on Rusty's SOS is the password of his laptop. How quantum numbers vary with two minor scales is password. Useā¦
Hello, please do question number 8 using openFrameworks C++, and provide as many comments as possible explaining the code. (a) Create the following figure in openFrameworks. Ask the user in setup() how many connected rectangles they want to be created, and then dynamically allocate an array ofā¦
Please solve as fast as possible. In the rectangle. Write a function to find the area of these coordinate values. The three rectangles from the person who is going. The rectangles have been drawn on the blackboard. Get the rectangles and print them in the calling function.
Please solve as fast as possible. Upioao as an input and print the given input as follows: Implement printing machine which will get the city name. Develop program. Input your city name: Output: Chennai Che Che n n Chennai
Q8. Which of the following statement(s) is/are true? The information gain of an attribute A used in ID3 is equal to the information gain used in C4.5 divided by SplitInfo(A). Consider a lift chart: It is always true that the value of the Y-axis increases monotonically when the X-axis valueā¦
Hello, please help me answer question number 7 using openFrameworks in C++. Please provide a snippet/screenshot of the output. Also, please add a lot of comments to explain the code. Thank you, and I promise to upvote. Similarly, write a circle packing program that creates randomā¦
Need help on this TOC question H 87 { 1 1u WF PoDO cr #: H [ 0 1 0 EE ! 1 # 8 17 S 1 [ 1 3" I DDD 77 D
x86 assembly Select the instruction sequence that will add 4 5 times using loop structure: Choice 1: Mov Li: add Ioop Choice 2: Li: add Ioop
Q7. Consider the following 2 matrices, namely A and B (10 20 A = (30 40_ B = Which of the following statement(s) is/are true? (230 The matrix multiplication between A and B (i.e, AB) is equal to 530_ (460 (2) The matrix multiplication between the transpose of A and B (i.e_, A TB) = is equalā¦
Hello ðŸā¢ā, please help me answer question number 5 part 1, 2, & 3 and using openFrameworks in C++. Please provide a snippet/screenshot of the output. Please add in a lot of comments to explain the code. Thank you, and I promise to upvote. Similar to the circle packing problem, pack randomā¦
Write code to parallelize the program Like #pragma omp stuff void improve(float a, float *alud, int int indx[], float b[], float x[]) { // TODO: Try int j,i; double sdp; float *r; // use openmp // parallelize the code below // r-vector(1,n); for (i-1;1<-n;it+) sdp ~b[i]; forā¦
Hello! Please complete the following question using C++/C only. Provide the snippet of the code and also add in as much feedback as possible to explain the code. Thank you. I promise to give an upvote. Thank you. (a) Create objects of the following classes and call their methods: - ofColor -ā¦
Problem 3 (35 points). Consider the language L = {w Ć¢ĖĖ {a,b}+ | |w| = |w|}: Is it regular? Context-free? Not even context-free? Justify your answer.
Given that the scheduling policy is RR, complete the timing/Gantt chart below for the following processes in the queue (use Tc = 10 ms and Tq = 60 ms. If relevant, assume that it takes Tc to bring in an old process or preempt a running process): P1, requiring 40 ms, arrives in the queue atā¦
Use Boolean to reduce the following logic functions. (a) f(A.B.C.D) = (A+C+D)(J(B+C)A+ B+ D)(J(B+C)B+C+ D) (b) f(A.B,C.D) = AB+ AD + BD + AB+ CD+ AD+ CD+ ABC (c) f(A.B.C,D) = ABC + AB + ABC + AC + ABC (d) f(A,B,C) = (AB+ AJAB+C)+ ABA+ABC +(A+ BJ(A+C) (e) f(A.B,C) = (4+ B)(A+ AB)( A+ B + ABC) +ā¦
QUESTION ONE: a) Based on your study of automata and the theory of computer science, explain FOUR (4) ideas behind automata theory. (8 Marks) b) Define the main principle of automata. (2 Marks) QUESTION TWO: a) Categorize the FOUR (4) main layers of automata theory and explain each layerā¦
answer in java. ASAP 2. [Easy] [5 Marks each] a)lmplement a recursive algorithm that takes a decimal number and converts n to its corresponding (you may return as a string) binary number: b) Implement a recursive algorithm to add all the elements of a non-dummy headed singly linked linearā¦
What is the critical combinational path (cycle) of the following 4x4 multiplier assuming delay of LAND and tADD for the AND gate and ADDER, respectively? Show your work. Extend the calculation to an N x N multiplier. A3 Az A, Ao Bo = B, Bz Ba VFo Pa Pe Pz Ps Ps Pa P Po
QUESTION FQURA a) Write the language produced by EVEN-EVEN, which consists of strings with an even number of 'a's and an even number of 'b's, defined over the set Z-{a,b}. Marks) b) Differentiate each by giving an example of an alphabet, strings, and language.
Write & Java program that reads list of integers into an array. The program should read this array fiom the file "input txt" You may assume that there are fewer than 50 entries in the array: Your program determines how many entries there are. The output is a two-column list. The first columnā¦
Can I get this blank filled in? ISense Multiple Access is a technique where the transmitter first checks to see if any other devices are transmitting on the same carrier frequency before attempting to transmit data on it. Review Check to review before finishing (will be flagged in Table ofā¦
Can I get this blank filled in?
Situation: Below: E portion bash script used and Enclose Maliare cimda Question: What integer gets returned from the conditional statement in line 02, if the Linux distro is indeed Gentoo? ie 0i: c-release 7re? Gentoo Ice -2: :var}" are Ice 03: Vir 203 12516 grep 447700 Ice 0: (Difficulty:ā¦
Problem Light Dimmer: You are to develop the structure diagram and produce the code for a light dimmer. The operation of the light dimmer is as follows: A light dimmer is used to control the brightness of a light. The dimmer has a switch to turn the light on and off, and a potentiometerā¦
Text: UI Controls and Multi-Line Output Please, I need help with the code in C# and the program. User Interface Controls and Multi-Line Output. Create a C# Windows Form containing different user interface controls and display multiple lines of output in a label. Use the enclosed .exe as anā¦
Using Python: Start using dictionaries. Gain more experience with functions. Write a program that operates on a dictionary that uses names and email addresses as key-value pairs. In the main function, you first need to initialize the dictionary with some artificial data. Here, you can use theā¦
Question (10 points): Purpose: Practice reading tabular files combining data from lists and writing into tabular files. Degree Difficulty: Easy For this problem, you need to program a function that takes information about the size and location of dots from a file and draws that informationā¦
List the classes of IPv4 addresses and their default subnet masks. In the final column, list the number of host addresses per IP address and network addresses. IPv4 CLASS & Default Subnet Mask Total Number of Network Addresses Total Number of Host Addresses Per Possible Networkā¦
Explain if the system in the figure is deadlocked. If not, give an execution order of the processes which successfully terminates. Explain if the following system is deadlocked or not. For the following resource allocation graph, for deadlock detection show the current contents of theā¦
4. Given the following resource allocation diagram: Apply the deadlock detection algorithm and either indicate why the system is deadlocked_ or specify safe allocation sequence_ If the process P2 also request 2 instances of resource deadlock? Why? does the system enter deadlock occursā¦
Given the sheet above, write the string function that will change turtle to bubble.
My name is Mohamed.
Qa Warrenhouse Extract Jack The Pine Valley's Furniture Company designing the fact table Qata Warehouse growing amount of transaction and product data The total number Nc dulcts solo the company 138. The company has 98 retail stores The company considers clothing monthly data Over Denoo ofā¦
Write a recursive method called square that takes two non-negative integer arguments, m and n, and returns m raised to the power of n. For example, square(4,3) should return 64. Do not use Math.pow() or any other method that you did not write. [20 points]
Perform Knaster's Procedure to split up the sports tickets between Brian and Lee: which items. Brian Lee 50 yard line ticket Goal line ticket 30 50 40 35 Box seats ticket (Student section ticket) 80 55 30 10 Bid Fair Share 1st cash settlement 2nd cash settlement Total cashā¦
In Java, please. Problem 4: Implement a recursive method called sumArray() that returns the sum of the first few numbers in the array. The method takes two parameters: a non-empty integer array called numArray and a positive integer called numbersToAdd, which represents the number of entriesā¦
(6 points) What kind of search does Simulated Annealing do (approximately) if the temperature is very large (i.e., close to co) at every iteration? Please select your answer from one of the following options and justify your answer: (a) It will halt immediately and do no search (b)ā¦
Given that the scheduling policy is RR, complete the timing Gantt chart below for the following processes in the queue (use 10 ms intervals): Process 1, requiring 20 ms, arrives in the queue at (t+0) ms Process 2, requiring 60 ms, arrives in the queue at (t+25) ms Process 3, requiring 30 ms,ā¦
Java question The following questions are related to methods. [20 points] Complete the method signature to have a parameter named "plant" of type String: [2 points] void getPlantInformation() What is the return type of the main method? [2 points] Create a method signature for a methodā¦
41. Transact-SQL comments (select all that apply): can be single-line, can enclose a multi-line block of text, have identical single-line and multi-line syntax, have different single-line and multi-line syntax. 42. Transact-SQL statements in one batch (select all that apply): are sent to SQLā¦
Give an example of a context-free grammar for the language (ab+ba)(a+b*). Give an example of a context-free grammar for the language (ab+ba)(a+b*).
9. The authors of the course text speculate that the "latest" Intel i7 uses tagged hybrid predictors False True
8. Which of the following does not limit the gains from loop unrolling? Register pressure Code size limitations Speed of the floating-point units Decreased amortized overhead
7. If a processor pipeline using dynamic scheduling lets instructions start as soon as their data operands are available; it is called out-of-order completion out-of-order execution Tagged hybrid predictors register pressure
Suppose that we have three variables Xi, Xz, and X3, which are defined on the same domain of {1,2,3}. Two binary constraints for these three variables are defined as follows: R1z = {(XuX2) [(2,1) (2,3) (3,2) (3,3)]} R13 = {(XuX3) [(1,2) (2,1) (3,1) (3,3)]} 1. (12 points) Is Xi arc-consistentā¦
6. Loop unrolling for a loop which iterates number of times that is not a multiple of the k copies of the unrolled loop requires: None of these An additional not unrolled loop; executed k mod times An unrolled loop executed k n times An additional not unrolled loop; executed mod k times
4. In the following instructions, which pair has a WAW hazard? Mov imul imul eax,x eax;eax eax,a ax2,eax eax,b eax,X eax,ax2 eax,c quad,eax Mov mov imul add add mov add eax,ax2 and add eaxc add eaxc and mov quad,eax Mov ax2,eax and mov eaxb None of these
Taken Not taken Predict taken Predict taken 10 Taken Taken Not taken Not taken Predict not taken Predict not taken Taken Not taken Assume you start in state 00. Modify the following code so that the array a[9] contains the digits of your student ID number, separating each digit by commas. Thus,ā¦
Encrypting Code (3 Options) Write a program that uses a dictionary to encrypt a text file. You can use the dictionary provided below or modify it to create your own version: Encrypt_Code = {'A':')', 'a':'0', 'B':'(', 'b':'9', 'C':'*', 'c':'8', 'D':'&', 'd':'7', 'E':'^', 'e':'6', 'F':'%',ā¦
4) Karnaugh Maps: Simplify parts a through d using Karnaugh maps. a) F(x,y,z) - 2(0,2,4,5) b) F(x,y,z) - xy' + yzt + x'yz' c) F(w,x,y,z) - 2(2,3,12,13,14,15) d) xztw'xy'tw(x'ytxy') Find minterms of xytyztxyz by plotting it in a Karnaugh map. e) Find all the prime implicants of F(W,X,Y,2) -ā¦
Common Time Zones Function Name: commonTimeZones() Parameters: code1 (str), code2 (str) Returns: list of common time zones Description: You and your friend live in different countries but you figure there's a chance that both of you might be in the same time zone. Thus, you want to find outā¦
What are some obstacles you must remember when considering the use of network logs within an investigation? (2 marks) Knowledge: tutorials, texts, credible websites; Ctc) 10. Using credible sources (your own answer the following three questions one slide per question. Facing investigator, dueā¦
1
...
261
262
263
264
265