Question Answers
Textbooks
Search Textbook questions, tutors and Books
Oops, something went wrong!
Change your search query and then try again
Toggle navigation
FREE Trial
S
Books
FREE
Hire a Tutor
AI Tutor
New
AI Flashcards
FREE
Search
Search
Sign In
Register
study help categories
computer science
programming qa by year and month
Top Selling
Programming
Questions
Describe what changes would be necessary to the producer and consumer processes in Figure 7.1 and Figure 7.2 so that a mutex lock could be used instead of a binary semaphore. while (true) { /*...
Many mathematical problems require the addition, subtraction, and multiplication of two matrices. Write an ADT Matrix. You may use the following class definition: const int MAX_ROWS = 10; const int...
1. The Jumpin Jive Coffee Shop charges $2.00 for a cup of coffee and offers the following add-ins. Whipped Cream .89 Cinnamon Dolce. 89 Caramel .99 Chocolate Sauce .79 Ameretto 1.50 Create a Python...
In Java FileDisplay class Write a class named FileDisplay with the following methods: -Constructor. The class's constructor should take the name of the file as an argument. -displayHead. This method...
Sanchez Construction Loan Co. makes loans of up to $100.000 for construction projects. There are two categories of Loansthose to businesses and those to individual applicants. Write an application...
Describe how catching exceptions can help with file errors. Write three Python examples that actually generate file errors on your computer and catch the errors with try: except: blocks. Include the...
1. Write a class encapsulating a web tore, which inherits from Store. A web store has the following additional attributes: an Internet address and the programming language in which the website was...
EliteVideo is a startup company providing concierge DVD kiosk service in upscale neighborhoods. EliteVideo can own several copies (VIDEO) of each movie (MOVIE). For example, the store may have ten...
Linda is starting a new cosmetic and clothing business and would like to make a net profit of approximately 10% after paying all the expenses, which include merchandise cost, store rent, employees'...
Marist College plans to develop a new Course Registration System to better manage and streamline the online registration process for Graduate students. Based on the following requirements create a...
Using the code above, fill in the blank lines provided to create a constructor that will require parameters for the three score data fields. Be sure to include the necessary brackets and semicolons....
What is the answer to zybooks python lab 9.11(Warm up: Online shopping cart (Part 1)
Write simple valence bond wave functions for the diatomic molecules B 2 and O 2 . State the bond order predicted by the simple VB model and compare with the LCAO predictions in Table 6.3. TABLE 6.3...
Design a program that computes pay for employees. Allow a user to continuously input employees' names until an appropriate sentinel value is entered. Also input each employee's hourly wage and hours...
// This program uses hours, pay rate, state tax and fed tax to determine gross // and net pay. #include <fstream> #include <iostream> #include <iomanip> using namespace std; int...
/* * Complete the 'minMoves' function below. * * The function is expected to return an INTEGER. * The function accepts INTEGER_ARRAY avg as parameter. */ int minMoves(vector avg) { } There are a...
Sam is part of the organizing team arranging the university's career fair and has list of companies and their respective arrival times and durations. Due to university-wide budqet cuts, there is only...
Write a SELECT statement that uses the analytic functions to get the highest and lowest sales by product within each category. Return these columns: The category_name column from the Categories table...
Use a recursive helper method to make clean() more efficient, by elimitating the need to extract substrings. CleanUp.java 1 /** 2 * A recursive method that removes forbidden characters from a string....
Write a class named Employee that holds the following data about an employee in attributes: name, ID number, department, and job title. Don't include a constructor or any other methods. Once you have...
Each of the following code fragments contains a number of security vulnerabilities. For each fragment, identify these security vulnerabilities and, for each vulnerability, discuss at least one way...
A sequential search of a sorted list can halt when the target is less than a given element in the list. Define a modified version of this algorithm, and state the computational complexity, using...
Consider a class MathUtils which has method that perform various mathematical functions using recursion. public class MathUtils { public static int factorial ( int n) { //to be implemented } public...
Write a C function that takes three arguments: a character and two integers. The character is to be printed. The first integer specifies the number of times that the character is to be printed on a...
Create a text file that is at least 64 bytes long. Encrypt the file using the AES-128 cipher. Unfortunately, a single bit of the 30th byte in the encrypted file got corrupted. You can achieve this...
Modify your program from Learning Journal Unit 7 to read dictionary items from a file and write the inverted dictionary to a file. You will need to decide on the following: How to format each...
Ashley was editing her document using Microsoft Word. She wanted to change the documents orientation from portrait to landscape. She had never done this before. Explain how Microsofts use of the...
Implement an array-based Linked List in Java. Use double as the item. You need to create a driver includes several items and inserts them in order in a list. Identify the necessary methods in a List...
1.Using online and any other resources, write a brief summary of how Wireshark is used to manage computer networks. 2. What are the sequence and acknowledgement numbers of the three TCP packets...
Write a function that returns a decimal number from a binary string. The function header is as follows: int bin2Dec(const string& binaryString) For example, binaryString 10001 is 17 (1x2 4 + Ox2...
When a share of common stock of some company is sold, the capital gain (or, sometimes, loss) is the difference between the shares selling price and the price originally paid to buy it. This rule is...
In the initial stage of the development in redesigning the mobile apps, UX D'sign Group Sdn Bhd have executed User Research via data gathering activities to acquire relevant information in building...
design an algorithm to convert the change given in quarters dimes nickels and pennies into pennies
Write a class called Full Name that represents a persons full name. It must have separate fields for title (e.g., Mr., Mrs., Ms.), first name, middle name, and last name. Override the to String()...
Write a Java program to imitate a file system of an operating system. In your solution, design a class called BasicFile with options to carry out the following operations: (a) Select and open an...
Define two derived classes of the abstract class ShapeBase in Your two classes will be called RightArrow and LeftArrow. These classes will be like the classes Rectangle and Triangle, but they will...
Suppose that a certain programming language permits only identifiers that begin with a letter, contain at least one but no more than three digits, and can have any number of letters. Construct a...
Number of variables used in the predicate O(b), where O(b) denotes overdue book in a library?
Consider the following 0x86 program: .data array DWORD 1,2,3,4,5,6,7,8,9 aravSize -(S-array)/4 ; array .code main PROC mov ecx,arraySize-1 mov esi.OFFSET array L1: mov eax. [esi] sda mov bx,2 idiv bx...
Unexpected Indent /2 In Python, we increase the indentation level of our code to define a new block for statements like def. Indentation is expected to be consistent. The code below uses inconsistent...
Consider the following piece of code: for (i = 0; i < 600; i ++) A[i] = a+B[i]+ A[i]; (a)Translate the above code to perform scalar and vector processing with the vector length of 64. (b)Calculate...
Write a program that allows the user to play "Rock, Paper, Scissors". Write the RPS class. All code should be in one file. main() will be part of the RPS class, fairly small, and contain only a loop...
Write a program name Blackjack Jr that allows a human user to play a single hand of "blackjack" against a dealer. Pick two values from 1-10 for the player. These are the player's "cards". Pick two...
Write a program named SortWords that includes a method named SortAndDisplayWords that accepts any number of words, sorts them in alphabetical order, and displays the sorted words separated by spaces....
Write a MATLAB function that solves tridiagonal systems of equations of size n. Assume that no pivoting is needed, but do not assume that the tridiagonal matrix A is symmetric. Your program should...
Write a Java GUI program that contains the following class, i.e., class SecretCode. Please refer to the given UAL diagram for the minimum required class's data fields and methods. You arc free to add...
1. Write a SELECT statement that returns the same result set as this SELECT statement, but don't use a join. Instead, use a subquery in a WHERE clause that uses the IN keyword. SELECT DISTINCT vendor...
This is a subset of C+ language. Description of the language as follow: Detail Note #DEFINE // define is keyword DEFINE / Nothing Reserve words CONST, FLOAT , INT, BREAK, CONTINUE , ELSE , FOR ,...
n n Write a program that will keep asking the user to input integers until he inputs -1, or the sum of all inputs has reached or exceeded 2000. When the sum has exceeded 499, print "You're off to a...
3. An implementation of two functions is shown below, one is called inside fork() when creating a new process and the other one is called inside exit() when exiting a process. #define CAPACITY 511...
For this last project, you must implement two Java classes. One will be a "Player'' class, which will "simulate" a game player profile, and the other will be a -driver program which allows two...
Aircraft.java public class Aircraft implements Comparable 3 -} int numEconomySeats; int numFirstClassSeats; String model; public Aircraft (int seats, String model) { } } public Aircraft (int economy,...
Using the Euler's Method discussed in the lecture: a) write a function called "eulermethod" that will (1) print out the corresponding y-value for a given x- value and (2) a plot of the original...
1. Implement the TriangleArea() function using the Point structure defined in the provided source file. The formula for area of a triangle given three points is: 2 Note: The math library function...
Create a method called parking charges that accepts 1 decimal value (rate) and 1 integer value (hours) and returns one decimal value (parking cost). Make sure to have an appropriate formula.
Create an application that uses parallel arrays to contain student ID #'s and the students course average. The application should have the user enter 5 grades for the student and the students ID. The...
Create a java application that uses parallel arrays to contain student ID #'s and the student's course average. The application should have the user enter 3 grades for the student and the student's...
Imagine you have the following time series signal that is collected from one of the sensors inside Taptronics. Each sample is gathered after a beer is served and device may be turned on/off in the...
Write a program that accepts an integer input from the user and display the least number of combinations of 200s, 100s, 50s, 20s, 10s, 5s, and 1s. [Test your solution using this samples] a. Input:...
Jeff runs a local retail store in your neighbourhood. He has contracted you to create an interactive application that will assist him in increasing staff salaries. Create a class named Details that...
Decode and execute the MIPS assembly language program. Show the changed register and memory values, in hexadecimal format, after the execution of each of the above assembly language instructions....
Decode and execute the MIPS assembly language program. Show the changed register and memory values, in hexadecimal format, after the execution of each of the above assembly language instructions....
Without using a library function or a function from the prelude, write a function rVrs s (Charl IChar] that reverses a given string recursively. Explain the recursive workings of this function,...
Solution Description: For this assignment, create files with the following names: Superhero.java ChargedSuperhero.java FlyingSuperhero.java Creating a Superhero 1.Create a class called Superhero that...
Richard chooses technique 0 and 2 requiring 10+10-20 efforts and provising 10+11=21 benefits. Hence, 21 is returned as the output Example 2: input1: 3 input2: (10,10,10,10) input3: (10,11,12,15)...
The Financial officer at RGIT wants you to develop an application that will evaluate the company?s asset?s annual depreciation using the double-declining balance and sum-of-the years? digit method....
The assignment is to put comments for the program in c++ and explain what the program does. #include using namespace std; class CircularArrayQue { private: int *Container; int Front; int Rear; int...
Data mining is used by everyone who wants to learn more about their customers or members. It helps people make decisions about what to sell or what to promote. This assignment is to write a program...
A system offers four service classes A, B, C and D, which differ in price tag and have a distinctive public method doA(), doB(), doC(), and doD(), respectively. These classes do share an identical...
The credit plan at TidBit Computer Store specifies a 10% down payment and an annual interest rate of 12%. Monthly payments are 5% of the listed purchase price, minus the down payment. Write a program...
In Java Problem Description FileDisplay class Write a class named FileDisplay with the following methods: -Constructor. The classs constructor should take the name of the file as an argument....
Java Programming Problem Description For this assignment, you will design a set of classes that work together to simulate a cars fuel gauge and odometer. The classes you will design are as follows:...
To enlarge an image, one must fill in new rows and columns with color information based on the colors of neighboring positions in the original image. Develop and test a function named enlarge . This...
Convert lengths In this exercise, you?ll add code to a form that converts the value the user enters based on the selected conversion type. The application should handle the following conversions:...
The program will display two options at the beginning of the program, Customer and Manager. Customer: If this is a new customer, the program will let customer to register with their information and...
For Table 1 ORDER(order#, customer#, name, address, orderdate) 31a. List all functional dependencies 31b What is the key? (Note, to analyze or normalize a table, you MUST figure out the key of the...
For this assignment, we are going to change our point of view. You are now working for Woolly, and you are preparing Woolly's response to Mammoth's RFP to support the transition of the 12 staff from...
Write an ARM Assembly code subroutine to approximate the square root of an argument using the bisection method. Your code must approximate the square root of an integer between 0 and 2^(31) -1. Using...
Write a program named TemperaturesComparison that allows a user to input five daily Fahrenheit temperatures that must range from ?30 to 130; if a temperature is out of range, require the user to...
Use java There are n gardens in a row. The gardens are numbered 1 to n and the i-th garden has a greenness of a[i], with higher numbers representing greener gardens. Let us define the "greenness on...
WRITE IN PYTHON AND IN THE GIVEN CODE coderbyte medium Back-end Challenge In the Python file, write a program to perform a GET request on the route Time left: Unlimited time...
H ALL 1 2 3 2. Simple Matrix Summation Given an n x m matrix, a, where each a(i, j) is the value of the cell at the intersection of row i and column j, create another n x m matrix, b, using the...
Question 1 Which concept of OOP is false for C++? O Code can be written without using classes O At least one object should be declared in code O A class must have member functions O Code must contain...
Provide a brief evaluation of the different types of machine learning methods that can be used to improve the recommendation system, and ultimately, the output generated by the algorithm. In your...
The Rabbit-fox-and some other animal Simulation 100 points possible Implement exercise 12.51 by adding a third animal to the rabbit and fox simulation. The third animal must interact with the fox and...
You have been asked to write a program that calculates the total price for a picnic lunch that the user is purchasing for a group of friends. Your program should: Ask the user to enter her budget for...
Assume a file named my data.txt already exists and contains an unknown number of lines. Each line contains an integer value. Write a program that copies the contents of my_data.txt to another file...
Write a statement that creates the concatenation of the three strings namel, name 2, and name 3, separated by commas, and assigns the result to a variable named roster. So if name 1, name2, and name...
You are given a path to a file of comma-separated values (CSV), jobs.csv, which contains people's names and job titles, such as Dancer, Nurse, Pilot, etc. The dataset has two columns: 'name' (a...
Design, using an IPO chart, a flow chart, pseudocode, or any reasonable combination of these techniques, a module called checkGuess that accepts 2 string inputs. The first input will be the user's...
In each case, write a program implemented using Spark (either on AWS or Databricks), to: Find the 5 most frequent and 5 least frequent (but present)t bi-grams for your dataset (only digits, not the...
Allen Furniture is a manufacturer of hand-crafted furniture. At the start of January, Allen employs 20 trained craftspeople. They have forecasted their labor needs over the next 12 months as shown in...
2 3 4 On the SalesData worksheet in cell B4, use an XLOOKUP function to retrieve the product name for the ProductID in cell A4, using the table of data about the products at Kelly Computers on the...
Java Programming Step 1 Employee and ProductionWorker Classes Design a class named Employee. The class should keep the following information in fields: Employee name Employee number in the format...
LAB 5.3 Working with the for loop Bring the for.cpp from the Lab 5 folder. This program has the user input a number n and then finds the mean of the first n positive integers. ?? The code is shown...
1. Array Subsets Given an integer array, divide the array into 2 subsets A and B while respecting the following conditions: The intersection of A and B is null. The union A and B is equal to the...
2.10 LAB: Set basics Given the user inputs, complete a program that does the following tasks: Define a set, fruits, containing the user inputs myFruit1, myFruit 2, and my Fruit3. Add the user input...
Create a sequential circuit that implements 4 bit unsigned division following the design of the sequential divider seen in class. Your circuit will have a RESET input. On a rising clock edge, when...
8.9 (Creating Three-Letter Strings from a Five-Letter Word) Write a script that reads a five-letter word from the user and produces every possible three-letter string, based on the word's letters....
Write a MIPS assembly language program that a) Prompt the user for an integer in the range of 0 to 50. If the user inputs 0 the program stops. b) Otherwise, the program stores the numbers from 0 up...
Showing 100 - 200
of 283
1
2
3