There is a lottery with n coupons and n people take part in it. Each person picks exactly one coupon. Coupons are numbered consecutively from 1 to n, n being the maximum ticket number. The winner of...
A store maintains data on customers, products and purchase records in three tables: CUSTOMER, PRODUCT, PURCHASE. The store manager wants to know which product is on its maximum discount for each...
A ride hailing company has their DB structured in 3 major tables as described in the SCHEMA section below. Write a query to fetch the top 100 users who traveled the most distance using the service....
Erica and Bob participate in a friendly Hackathon that allows each to solve one question a day out of the three offered. There will be one easy, one medium and one hard question, with points awarded...
There are n chocolates and the weight of the chocolates is given as an array of integers weights/n, where weights] denote the weight of the chocolate. Every day, one can pick one chocolate, eat half...
Letty is hired as a Sales Executive and her role is to sell items which are given to her in a bag. The bag contains n items where each item has an associated ID. Letty is inherently lazy and plans to...
Your monthly phone bill has just arrived, and it's unexpectedly large. You decide to verify the amount by recalculating the bill based on your phone call logs and the phone company's charges. The...
Write a function: string solution (string &S, string &T); that, given two strings S and T consisting of N and M characters, respectively, determines whether string T can be obtained from string S by...
This is a question from "Starting out with Python" by Tony Gaddis Chapter 8, question number 14, titles "Gas Prices" has anyone solved this? In the student sample program files for this chapter, you...
Create a class named Customer that will determine the monthly repayment amount due by a customer for a product bought on credit. The class has five (5) fields: customer name, contact number, product...
Camer Pharmaceuticals is testing a new product in the market 1 . The demand for the new product is estimated to be Normally distributed with a mean 2,000,000 and standard deviation 250,000. The...
Go to the Structural Styles section and create a style rule that sets the background color of the browser window to rgb(173, 189, 227). Create a style rule for the body element that sets the...
Start with an initial string of zeros. Choose any digit of the string to flip. When a digit is flipped, its value and all those to the right switch state between 0 and 1. Given a target string of...
Use assembly language to write a complete program that will input values for num1 ,num2 and num3 and display the value of the expression ( (num1 ^ 3) * num2 + 5 * ( num2 ^ 2) ) / num3. assume that...
8. Area of Triangle You are given 3 sets of coordinates that form a triangle. Write code to find the area of the triangle enclosed by those coordinates. For example, the 3 points have coordinates...
You will develop a program that loads student, course, and grade data from a text file, then allows the user to perform simple queries on that data through a command line interface. The intention of...
The Student News Service at Clear Mountain State University (CMSU) has decided to gather data about the undergraduate students that attend CMSU. CMSU creates and distributes a survey of 14 questions...
Write a Ruby or Bash script that will print usernames of all users on a Linux system together with their home directories. Here's some example output: gitlab:/home/gitlab nobody:/nonexistent . As you...
Part 1 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...
String Chains: Given an array of words representing your dictionary, you test each word to see if it can be made into another word in the dictionary. This will be done by removing characters one at a...
The code on pages 20-21 of the Text book asks you to input a number, and it will then sum the numbers from 1 to that number. The Prompt asks you to input a number, not necessarily an integer. The...
Ensure the Sales worksheet is active . Enter a function in cell B8 to create a custom transaction number. The transaction number should be comprised of the item number listed in cell C8 combined with...
You are a manager of a Wally's Training Gym and you encourage your trainers to enroll new members. Input is the trainer's last name and the number of new enrollees. Output is the number of trainers...
The class date Type was designed to implement the date in a program, but the member function set Date and the constructor do not check whether the date is valid before storing the date in the member...
I need a program written in Java. Write a simple line editor. Keep the entire text in an ArrayListobject, one line in a separate index position. Start the programwith entering EDIT file, after which...
Ethan is the leader of a team with N members. He has assigned an error score to each member in his team based on the bugs that he has found in that particular team member's task. Because the error...
Write an address book program that stores your contacts' names and their email addresses. The names and email addresses are originally stored in a file called phonebook.in, in the format: Harry...
Modify the guessing-game program so that the user thinks of a number that the computer must guess. The computer must make no more than the minimum number of guesses, and it must prevent the user from...
Write a program that will read data from the file "p6.txt". The file (that you will create) always contains 15 test scores (whole numbers between 0 and 100). The test scores are scores for 5 students...
Modify the sentence-generator program of Case Study so that it inputs its vocabulary from a set of text files at startup. The filenames are nouns.txt, verbs. txt, articles.txt, and prepositions.txt....
2. First Lady of Software Grace Hopper is widely known as the "First Lady of Software." She is primarily known for helping to create the first all-electrical digital computer: UNIVAC (Universal...
Design a Java class named Guitar that contains: A private int data field named numStrings that defines the number of strings on the guitar. The default value should be 6. A private double data field...
Write C++ statements that do the following: (i, 2, 3, 4. 5) Submit your answer to dropbox. a. Define an enum type, flowerType, with the values ROSE, DAISY, CARNATION, FREESIA, GARDENIA, ALLIUM,...
Design and implement a Class named Postal that represents information for a postal customer Voting a first name, last name and integer representing a zip code Provide a constructor that accepts the...
Develop a REST server script named measurement_server.py. This script will respond to requests for data from the measurement database by sending back data that is JSON serialized. The server should...
In Java Write a class named Patient that has fields for the following data: First name, middle name, and last name Street address, city, state, and ZIP code Phone number Name and phone number of...
Design a data mart solution for the SUN hotel chain that has over 300 hotels of different categories all over the world. On a daily basis in the OLTP system of each hotel, information on free,...
Create a class HugeInteger which uses a 40-element array of digits to store integers as large as 40 digits each. Provide methods parse, toString, add and subtract. Method parse should receive a...
1. Copy the countdown function def countdown(n): if n <= 0: print('Blastoff!') else: print(n) countdown(n-1) Write a new recursive function countup that expects a negative argument and counts up...
Implement the event-driven simulation of a bank that this chapter described. A queue of arrival events will represent the line of customers in the bank. Maintain the arrival events and departure...
Lets roll some dice! Write a program that allows the user to choose to roll between 1 and 100 dice between 1 and 1000 times. The program should simulate each roll of the die/dice by generating one...
C++ Chapter 10 defined the class circleType to implement the basic properties of a circle. (Add the function print to this class to output the radius, area, and circumference of a circle.) Now every...
StudentGrades.java import java.io.File; import java.io.FileReader; import java.io.IOException; import java.io.PrintWriter; import java.util.Map; import java.util.Scanner; import java.util.Set; import...
A text analyst wants to analyze a text file (refer to File.txt on Moodle). She wants to find out the total number of sentences in the text file. She would also like to know if there are acronyms in...
Write a PEP/8 machine language simulator that simulates the PEP/8 computer and instruction set for only the following instructions: Instruction Specifier Instruction Addressing Modes Status Bits 0000...
In this exercise, you will create a payroll register for Athletics Supply House using ROUND, IF, and VLOOKUP functions. You will also modify the worksheet's layout and highlight key elements. Use...
Develop a C# console application that implements two parallel int arrays in Main, one called apartment and the other called rent. Each array will hold 5 integer values. Use an initializer to fill the...
Assume that we would like to expand the LEGv8 register file to 128 registers and expand the instruction set to contain four times as many instructions. 1. [5] <2.5> How would this affect the...
Data Engineers regularly collect, process and store data. In this task you will develop a deeper understanding of how C programming language can be used for collecting, processing and storing data....
We are given the following relational database schema for a database that keeps track of student enrollment in courses and the books adopted for each course. STUDENT COURSE Course# Cname Dept Ssn...
CBC-Pad is a block cipher mode of operation used in the RC5 block cipher, but it could be used in any block cipher. CBC-Pad handles plaintext of any length. The ciphertext is longer then the...
Design and implement a class called RandomArray, which has an integer array. The constructor receives the size of the array to be allocated, then populates the array with random numbers from the...
Prepare an integrated data model using UML class diagrams and the REA framework. This data model will serve as the blueprint for YNFs prototype database that you will also develop. Also, prepare a...
Jason Easton is a member of the support/decision team for the San Diego branch of Express Car Rental. He created a worksheet to keep track of weekly rentals in an attempt to identify trends in...
Aircraft.java public class Aircraft implements Comparable { int numEconomySeats; int numFirstClassSeats; String model; public Aircraft(int seats, String model) { this.numEconomySeats = seats;...
Write an application that prompts a user for the number of years the user has until retirement and the amount of money the user can save annually. If the user enters 0 or a negative number for either...
Create a procedure named CalcGrade that receives an integer value between 0 and 75, and returns a single capital letter in the AL register. Preserve all other register values between calls to the...
Sanderson is a bus driver who earns a monthly gross income of $3,500. His wife Norma is the manager of an automotive parts store and she earns gross income of $2,250 every two weeks. The couple has...
Complete the method named charsearch in the class definition for Listops that will search the object attribute xlist (a list of strings) and return the number of strings that begin with the input...
Using C#: Create an application named SalesTransactionDemo that declares several SalesTransaction objects and displays their values and their sum. The SalesTransaction class contains fields for a...
A nursery wants to keep track of all its products, including plants, fountains, garden hardware (wheelbarrow, shovels etc) and also soil and sand which they sell. They buy all stock from the...
Create a security infrastructure design document for a fictional organization. The security services and tools you describe in the document must be able to meet the needs of the organization. Your...
Create a program that will scrape the sayings from: https://quotes.toscrape.com/page/2/ Set up your program to allow the user to input a page number (1-10) which will return the quotes from that...
Here are my code. And the documentation for reference class DeliveryPlanner_PartA: """ Required methods in this class are: plan_delivery(self, debug = False) which is stubbed out below. You may not...
How would the right squares on the board be painted the color of the tetromino and the tetromino gets hidden? Java Language and located in the gray-out comment section in the image. /** * Starts...
The following picture shows four routers, A,B,C,D. Packets travel from A and B to D. All routers including C operate in FIFO order. If two packets arrive at C at the same time, give priority to...
Given an array of four integers, write a program that populates a new array with the square of the elements in the given array. Assume $s0 stores the memory location of the first element of the given...
GUI Assignment You will be creating a seating arrangement application using JavaFX. The project will comprise of two sections: the interface and the Java code. The application will feature a 3x3...
Utilizing the Holt Distributors database design below, write MS SQL Server statements that will accurately and efficiently complete the following requests: 1. Create each table with the correct...
10. Classifying Processed Images into Multiple Classes Introduction We have processed images to represent as a vector of 300 attributes. The first 294 are decimal values in the range 0 to 1...
Please solve this problem using C language Hacker Industries has a number of employees. The company assigns each employee a numeric evaluation score and stores these scores in a list. A manager is...
After the productive team meeting, Fullsofts chief technology officer (CTO) wants further analysis performed and a high-level plan created to mitigate future risks, threats, and vulnerabilities. As...
Using Python, In this assignment, we will analyze the HURDAT2 dataset for Atlantic hurricane data from 1851 through 2017. This dataset is provided by the National Hurricane Center and is documented...
Q1: Suppose Blue Ridge can order additional pumps from a third party for the production, what is maximum rate that Blue Ridge like to pay for each additional pump? use ( sensitivity analysis-Solver)...
2) 3) Write a program named Guess_A_Number that plays a game in which the program picks a secret number and the user tries to guess it. 1) The program first asks the user to enter the maximum value...
import java.util.ArrayList; /* * * A program to test the Partitionable interface using two classes: Employee and CreditCard */ public class QI3 { //Prints out the parts of each object in the given...
1. Prepare manual entries and complete the general and subsidiary ledgers. 2. Prepare an account receivable and account payable reconciliation of the subsidiary ledger accounts to the control...
You are creating an application that will feed into a Tourism business database for location of interesting sites in the country (Ghana.) Your application is a simple command-line interface that will...
1. Create a class called GtStudent that has the following instance data: name: The name of the student. Should be represented as a constant String value since a student's name should not change after...
Metro Land is a country located on a 2D Plane. They are having asummer festival for everyone in the country and would like tominimize the overall cost of travel for their citizens. Costs oftravel are...
Routing Paths and Subnets LATEST SUBMISSION GRADE 0% 1. Let's see how much you've learned about routing paths and subnetting! In this activity, you are given a bunch of source and destination IP...
Lucy loves to play the Hop, Skip, and Jump game. Given an N*M matrix and starting from the cell (1,1), her challenge is to hop in an anti-clockwise direction and skip alternate cells. The goal is to...
An LP model is expressed in terms of its technology matrix (A), RHS vector(b), and cost vector (c) in an Excel file named 'Params.xlsx' with 3 sheets (attached). We would like to minimize the...
Your task is write the following functions: 1. create file o takes filename as a parameter. The function creates an empty file. An example is shown below: o create_file("myfile.txt") File myfile....
Your fellow student was playing Angry Birds on a mobile phone in the lecture theatre when they suddenly stopped, looked up at you and said, Deferred tax liabilities and assets should be measured...
Using C++ and functions: Write a program that reads in a line of text and outputs the line with all the digits in all integer numbers replaced with 'x'. Please enter a line of text: My userID is...
Create a data file called ".addr_book" in your home directory. This file is a book of contacts and should contain entries for people, businesses, etc. For example you might have an entry for me: Mike...
Assuming int numbers[SIZE];is initialized somehow, write a function counter() that you can send the array to, plus an extra integer, and the function will return the number of times that value is...
T he CS1 hospital receives a variety of new patients each day. At various times of the day patients are held in a temporary room until there is a determination made where the patient should be placed...
Create a Web page which generates a series a of small boxes, where the number of boxes is given by theuser via a text input box. Sets the background of each box to a random colour (you can use the...
In this lab, you complete a C++ program that swaps values stored in three int variables and determines maximum and minimum values. The C++ file provided for this lab contains the necessary variable...
Write a C++ program that utilizes a function named find_pi to find the value of pi given the desired accuracy. Prompt the user for the accuracy. You must create the find_pi function and all arguments...
Define a class called SymbolBalance in the provided empty SymbolBalance.java file. Make sure that all { }s, ( )'s, [ ]'s, " "s, and /* */s are properly balanced. Make sure to ignore characters within...
Consider a linear hash table that uses 4-bit hash keys and stores two records per bucket. The capacity threshold is 75%; that is, we create a new bucket whenever the number of records is more than...
Create a procedure named FindThrees that returns 1 if an array has three consecutive values of 3 somewhere in the array. Otherwise, return 0. The procedure's input parameter list contains a pointer...
Two stacks of the same type are the same if they have the same number of elements and their elements at the corresponding positions are the same. Overload the relational operator == for the class...
Generate a lottery of a three digit number. The program prompts the user to enter a three-digit number and determines whether the user wins according to the following rules: If the user input matches...
You'll now re-create the classic race of the tortoise and the hare. You'll use random-number generation to develop a simulation of this memorable event. Our contenders begin the race at square 1 of...
Define a class called star that extends polygon and is shaped like a five pointed star. use parameters to the star constructor to specify the color, position, and scale of the star. Write a JavaFX...