Which line(s) of the following code fragment will cause a runtime error? int *ipl int *ip2 *ipl *ip2 = 20; cout « *ipl « *ip2 « endl; delete ip2; delete ipl; /*Line 1:*/ /*Line 2:*/ = new int (5); ipl; %3D = 10; /*Line 3:*/ /*Line 4:*/ /*Line 5:*/ /*Line 6:*/ /*Line 7:*/ c. Lines 3 & 4 d. Line 6 а. Line 1 е. Line 7 b. Line 2 f. None of them
Q: Using a the shopping situation, explain briefly what is all about computer security, highlighting o...
A: A) Using a the shopping situation, explain briefly what is all about computer security, highlighting...
Q: How do you guarantee team member dependency throughout SDLC phases such that the Development team re...
A: Introduction: Various activities which are undertaken while developing software are commonly modeled...
Q: def is_valid_index(idx, in_list): """ Checks whether the provided index `idx` is a valid...
A: if (idx in in_list - 1): if len(idx) != 0: return idx else: re...
Q: The cross-sectional are of each member in cm2 is underlined. Each member is made of steel, E = 20 * ...
A: Given that E=20*10^6 N.cm2
Q: Q1: Consider the following instruction: Instruction1: AND Rd,Rs,Rt Instruction 2: SUB Rd, Rs, Rt
A: a ) ALU Operation is AND,BSrc will look to register,OpSel will tell ALU to perform AND. MemW is fal...
Q: Instructions newton.py + 1 # Modify the code below Restructure Newton's method (Case Study: Approxim...
A: Given: We have to write a Python Program In the Given Instruction Of the Case Study.
Q: In a C# Console Ap Write a method that takes an int and a double and returns their product.
A: The requested C# program by using a method is provided in next step.
Q: What are the most recent nanotechnology products? Give its benefits and drawbacks./
A: Intro The question is about What are the most recent nanotechnology products?Give its benefits and d...
Q: If Problem A reduces to Circuit SAT in polynomial time, we can say A is in NP-Complete.
A: True
Q: What is the distinction between SLA and HDD?
A: Introduction: Understanding SLA SLA is known as Service level agreement. It is a document agreement...
Q: P4: 0 is an equivalence relation
A: Big theta is either the exact performance value of the algorithm, or a useful range between narrow u...
Q: What are the main advantages of virtual memory? And Describe three advantages of virtual memory and ...
A: Virtual memory is a memory space in the operating system which is acts as a main memory to the secon...
Q: 3. The number of maximal cliques in a graph must obviously be an integer, so when the Moon-Moser bou...
A:
Q: Compare interrupt-based and DMA-based IO in terms of performance and program complexity.
A: Data transfer: Data can be sent between the central computer and I/O devices in a variety of ways. A...
Q: Answer the following questions 1. Rewrite the following code using one if-else statement If (aCh...
A: We are given a code and we are going to rewrite the code using if-else statement. We use if-else sta...
Q: Write a C Program that ask the user to choose from 2 categories, then ask the user to enter two numb...
A: ANSWER:-
Q: In what format does a password manager store encrypted passwords? Is it local, online, clod, or usb?
A: Introduction: Passwords managers allow one to generate strong and unique passwords and store them in...
Q: Write a program that creates an array of 10 names. Display the names in reverse order. Reverse order...
A: As there is no programming language is mention in the question so I will solve this problem using ja...
Q: Develop ethical guidelines for information technology professionals and professional ethics?
A: Intro Many resources support IT professionals who seek ethical guidance in their work. For example, ...
Q: A consistency index measures the degree of inconsistency in pairwise comparisons. Discuss how you ca...
A: Actually every consistency index for pairwise comparison judgment among criteria from the goal. Co...
Q: ii) Write a JAVA program to prompt the user to enter a secret message in the form of a string. If th...
A: Code: import java.util.Scanner; class Main{ public static void main(String args[]){ Scanner m...
Q: What exactly is a communication protocol?
A: Introduction: Different network devices can interact with each other thanks to communication protoco...
Q: Kaggie data se ice date Use the above data set Describe the data set • Use descriptive statistic Dra...
A: Introduction
Q: For the Boolean functions F(X,Y,Z) and E(X,Y,Z), as given in the following truth table: (a) List the...
A: Given: Given the Boolean functions F(X,Y,Z) and E(X,Y,Z), as given in the following truth table we...
Q: Consider the treee in the figure the depth of node is l is
A: Depth of a tree is the longest path from root to the leave. To find the depth, compute all the path...
Q: Question 1 a) A computer virus is a potentially damaging computer program that affects, or infects,...
A: Lets protect our Authorization lists or computer from the viruses, trojan, spyware and malwares. The...
Q: ose to compute a mode for a variable, which variability would you m
A: If you chose to compute a mode for a variable, which variability would you most likely report?
Q: What exactly is a WebAppcomponent?
A: Introduction: You may create reusable custom objects with their behaviour separated from the rest of...
Q: Write a in C++ Using take while loop from your entered will that पन्ीिनति in string anay input and u...
A: the c++ code is an given below :
Q: For this question you will be using a doubly linked list containing Strings and Node class which con...
A: I have answer this question in step 2.
Q: Computer Science - Describe two information systems/technology concerns that you believe organisatio...
A: Introduction: Data Backup IssuesA backup copy of the data is something every business should do, eac...
Q: . Describe briefly the roles of the following: -Disk Cleanup -Disk Defragmenter -Remove hardware saf...
A: Disk cleanup:- •Disk Cleanup helps free up hard drive space to improve system performance. •Disk Cle...
Q: = ax+b is
A: 1) f(x) = ax+b is O(x2) 2) explain a condition where the code isn't O(x). also prove witness and gra...
Q: Write a SQL query to retrieve the First_name of employees having any of the following SSN_NUMBER 123...
A: Write a SQL query to retrieve the First_name of employees having any of the following SSN_NUMBER 123...
Q: Let M(n) be the minimum number of comparisons needed to sort an array A with exactly n elements. For...
A: Given: M(1)=0 M(2)=1 M(4)=4 Given expression: M(n)=2M(n/2)+n/2
Q: Why is it important to establish a relation between a UI prototype (or even UI sketches) and use-cas...
A: use case is a formal or simple way to represent how an information system interact with the environm...
Q: Computer Science using this data data <- data.frame(no = seq(1,1000), offers = c(rep(0, 550), r...
A:
Q: Using C program. Create an array named NUMBERS with 10 cells. You are to initialize all of the cells...
A: PROGRAM INTRODUCTION: Include the required header files. Declare the array to store ten values. Use...
Q: What exactly is memory hierarchy? Describe using proper graphic representation.
A: Intro What exactly is memory hierarchy? Describe using proper graphic representation.
Q: ii) Write a JAVA program to prompt the user to entera secret message in the form of a string. If the...
A: Write a JAVA program to prompt the user to enter a secret message in the form of a string. If the se...
Q: 27. Implement the following RECURSIVE function named starString: // Returns a string containing 2^n ...
A: PROGRAM INTRODUCTION: Import the required libraries. Start the definition of the function starStrin...
Q: I want all TCP traffic originating from my internal network to be allowed back through the firewall ...
A: ICMP
Q: Write a statement that increases numPeople by 5. Ex: If numPeople is initially 10, the output is: Th...
A: The answer is given below.
Q: Consider this scenario: An exception is thrown when a function is called. What are the three things ...
A: An exception is thrown when a function is called. Things can do by the function is try-catch, throw...
Q: Large computing installations (such as server farms) can have significant impacts on the environment...
A: The server farms or large computing installations are a collection of servers which are usually main...
Q: Show that each of the following pairs of sentences are provably equivalent in SL : a. J → F, ¬(J ∧ ...
A: The solution is given below step
Q: 7. For each of these lists of integers, provide a simple formula or rule that generates the terms of...
A: 7. For each of these lists of integers, provide a simple formula or rule that generatesthe terms of ...
Q: Task-5. Write HTML 5 code to get below mentioned output on a webpage. C file///C:/Users/mmumtaz/Desk...
A: HTML5 is the latest and most enhanced version of HTML
Q: What is the evaluation of Erlang in these 4 criteria: readability, writability, reliability, and cos...
A: Ans: Evaluation of Erlang in these 4 criteria: readability, writability, reliability, and cost are b...
Q: lwc (lighting web componet) make a calendar where the user is able to see the date pinned in the...
A: <template> <lightning-card variant="Narrow" title="Full Calendar" icon-name="standa...
Please answer questions and provide an explanation.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- swap_nums seems to work, but not swap_pointers. Fix it. #include <stdio.h>void swap_nums(int *x, int *y) { int tmp; tmp = *x; *x = *y; *y = tmp; } void swap_pointers(char *x, char *y) { char *tmp; tmp = x; x = y; y = tmp; } int main() { int a,b; char *s1,*s2; a = 3; b=4; swap_nums(&a,&b); printf("a is %d\n", a); printf("b is %d\n", b); s1 = "I should print second"; s2 = "I should print first"; swap_pointers(s1,s2); printf("s1 is %s\n", s1); printf("s2 is %s\n", s2); return 0; }// // main.c // Assignment1 // // Created by Hassan omer on 15/10/21. // #include <stdio.h> # include <stdlib.h> int input(); int multiples(); int cions(); void display_change(); int main() { int num; num = input(); multiples(num); cions(); display_change(); return 0; } int input(int num) { printf("enter 5-95 number\n"); scanf("%d",&num); return num; } int multiples(int num) { int sum5 =0; if (sum5 %5 != 0 ||sum5<5|| sum5 >95) { printf("invaild input %d",sum5); } cions(sum5); return sum5; } int cions(int sum05){ int cent50 = 0; int cent20 = 0; int cent10 = 0; int cent05 = 0; if (sum05 > 0) { if (sum05 >= 50){ sum05 -= 50; cent50++; } else if (sum05 >=20){ sum05 -= 20; cent20++; } else if (sum05 >= 10){ sum05 -=10;…void writeEmpToFile(Employee *emp, FILE *f) { fwrite(&emp->salary, sizeof(emp->salary), 1, f); fwrite(&emp->yearBorn, sizeof(emp->yearBorn), 1, f); fwrite(emp->ssn, sizeof(char), SSN_SIZE, f); int len = strlen(emp->name) + 1; fwrite(&len, sizeof(int), 1, f); fwrite(emp->name, sizeof(char), len, f); } Below is the work I have done so far that is required from the image but I have not been able to finish it and I need assistance with making the final changes that I have missed from the image that I have provided If you want to see the full code that this chunk of code is supposed to function with it is in the link below https://onlinegdb.com/nWSAIx8hCn
- void writeEmpToFile(Employee *emp, FILE *f) { fwrite(&emp->salary, sizeof(emp->salary), 1, f); fwrite(&emp->yearBorn, sizeof(emp->yearBorn), 1, f); fwrite(emp->ssn, sizeof(char), SSN_SIZE, f); int len = strlen(emp->name) + 1; fwrite(&len, sizeof(int), 1, f); fwrite(emp->name, sizeof(char), len, f); } If you don't want to look at all the code then please help me get the other section done from this code that I will put right here directly in the post if you need context on what this code needs to work with you can click on the link below https://onlinegdb.com/nWSAIx8hCn#include<stdio.h> #define FAIL_VAL -99999#define SUCCESS_VAL 99999#define MAX_USER 20#define MAX_LEN 200 char emailArr[MAX_USER][MAX_LEN];char passArr[MAX_USER][MAX_LEN]; char nameArr[MAX_USER][MAX_LEN];char addressArr[MAX_USER][MAX_LEN]; int user_count=0; int signupUser(char email[], char pass[]){char Email_id[60];int i;//p1=0,p2=0;printf("Enter your Email_id: ");scanf("%s", &Email_id); if(Email_id[i]=='@' && Email_id[i]=='.'){printf("Your Email_id is valid");}else{printf("Email_id invalid.Please enter a valid id.");} } int loginUser(char email[], char pass[]){//Write your code here} int buildUserProfile(char email[], char firstName[], char lastName[], char address[]){//Write your code here} void searchByName(char name[]){//Write your code here} void searchByAddress(char address[]){//Write your code here} int main(){while(1){printf("*******************************************************************\n");printf("1. signup User. 2. login User. 3. build User Profile.…#include<stdio.h> #define FAIL_VAL -99999#define SUCCESS_VAL 99999#define MAX_USER 20#define MAX_LEN 200 char emailArr[MAX_USER][MAX_LEN];char passArr[MAX_USER][MAX_LEN]; char nameArr[MAX_USER][MAX_LEN];char addressArr[MAX_USER][MAX_LEN]; int user_count=0; int signupUser(char email[], char pass[]){ char Email_id[60]; int i;//p1=0,p2=0; printf("Enter your Email_id: "); scanf("%s", &Email_id); if(Email_id[i]=='@' && Email_id[i]=='.') { printf("Your Email_id is valid"); } else { printf("Email_id invalid.Please enter a valid id."); } } int loginUser(char email[], char pass[]){ //Write your code here} int buildUserProfile(char email[], char firstName[], char lastName[], char address[]){ //Write your code here} void searchByName(char name[]){ //Write your code here} void searchByAddress(char address[]){ //Write your code here} int main(){ while(1) {…
- #include<stdio.h> #define FAIL_VAL -99999#define SUCCESS_VAL 99999#define MAX_USER 20#define MAX_LEN 200 char emailArr[MAX_USER][MAX_LEN];char passArr[MAX_USER][MAX_LEN]; char nameArr[MAX_USER][MAX_LEN];char addressArr[MAX_USER][MAX_LEN]; int user_count=0; int signupUser(char email[], char pass[]){ char Email_id[60]; int i;//p1=0,p2=0; printf("Enter your Email_id: "); scanf("%s", &Email_id); if(Email_id[i]=='@' && Email_id[i]=='.') { printf("Your Email_id is valid"); } else { printf("Email_id invalid.Please enter a valid id."); } } int loginUser(char email[], char pass[]){ //Write your code here} int buildUserProfile(char email[], char firstName[], char lastName[], char address[]){ //Write your code here} void searchByName(char name[]){ //Write your code here} void searchByAddress(char address[]){ //Write your code here} int main(){ while(1) {…Java Code: -Creates ProgramNode, loops over Parse calls correctly, throws exception if unknown item found -(ParseFunction) Uses MatchAndRemove(), handles any number of parameters, fills in ASTNode correctly -(ParseAction) Uses MatchAndRemove(), handles any number of parameters, fills in ASTNode correctly Make sure to give the correct code for parser.java with the screenshots of the output. There must be test cases involved, so make sure to have test cases as well.This file has syntax and/or logical errors. Determine the problem and fix the program. // Employee's salary should not be negative // Include stack trace when exception occurs using System; using static System.Console; class FDebugEleven03 { static void Main() { Employee emp = new Employee(); try { emp.IdNum = 234; emp.Salary = -12; } catch (NegativeSalaryException e) { WriteLine(e.Message); WriteLine(e.StackTrace); } } } public class NegativeSalaryException : { private static string msg = "Employee salary is negative."; public NegativeSalaryException() : base(msg) { } } public class Employee { private int idNum; private double salary; public int IdNum { get return idNum; set idNum = value; } public double Salary { get {…
- Topic: Data Communication & Network Write a socket server program named "RockPaperScissorsServer", which communicates with players (clients). Server firstly receives a name for the player. Let’s assume 1 is Rock, 2 is Paper and 3 is Scissors. Next Server receives any of the 3 number from the user, generate a random number between 1 to 3 itself and then apply the Rock Paper Scissors game logic (which is paper beats rock, rock beats scissors, scissors beats paper), Then it will tell the player if the player or server has won. Write another client program to communicate with the server. Kindly make the server in such a way the any time any player can leave and another player can join. Use Java to write the code. *** Reference code: Creating a simple Server *** import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.ServerSocket; import java.net.Socket;import java.util.Scanner; public class Server1 {…#include<stdio.h> #define FAIL_VAL -99999#define SUCCESS_VAL 99999#define MAX_USER 20#define MAX_LEN 200 char emailArr[MAX_USER][MAX_LEN];char passArr[MAX_USER][MAX_LEN]; char nameArr[MAX_USER][MAX_LEN];char addressArr[MAX_USER][MAX_LEN]; int user_count=0; int signupUser(char email[], char pass[]){char Email_id[60];int i;//p1=0,p2=0;printf("Enter your Email_id: ");scanf("%s", &Email_id); if(Email_id[i]=='@' && Email_id[i]=='.'){printf("Your Email_id is valid");}else{printf("Email_id invalid.Please enter a valid id.");} } int loginUser(char email[], char pass[]){//Write your code here} int buildUserProfile(char email[], char firstName[], char lastName[], char address[]){//Write your code here} void searchByName(char name[]){//Write your code here} void searchByAddress(char address[]){//Write your code here} int main(){while(1){printf("*******************************************************************\n");printf("1. signup User. 2. login User. 3. build User Profile.…Links Bing Remaining Time: 1 hour, 24 minutes, 17 seconds. * Question Completion Status: Р QUESTION 8 bbhosted.cuny.edu/webapps/assessment/take/launch.jsp?course_assessment_id=_2271631_1&course_id=_2 Implement the following: 1) Define a function evenList() with an arbitrary parameter a. P 2) This function accepts any number of integer arguments. 3) evenList() stores all even numbers into a list and returns the list. 4) Call the function with 5, 6, 7, 8, 9, 10 as arguments. 5) Print the result of the function call. Make sure to precisely match the output format below. Write your code in the ANSWER area provided below (must include comments if using code is not covered in the course). Example Output [6, 8, 10] For the toolbar, press ALT+F10 (PC) or ALT+FN+F10 (Mac). BIUS Paragraph Arial QUESTION 9 Programs s 10pt Click Save and Submit to save and submit. Click Save All Answers to save all answers. く Ev Av