In: Computer Science
Design a multiplexed communication system that can be used for 1 of 4 senders (sources) to send 3 bits to 1 of 2 receivers (destinations) using a 3-bit 4×1 multiplexer and a 2-bit 1×2 demultiplexer. Assume that the most significant of the 3 bits denotes the header containing the destination ID and that the 2 less significant bits denote the message. Represent both the 3-bit 4×1 multiplexer and a 2-bit 1×2 demultiplexer using block diagrams with all inputs and outputs labeled. Show which outputs of the multiplexer connect to which inputs of the demultiplexer!
In: Computer Science
Draw an ER diagram and write a database design outline for the following prompt:
You run a coaching service to help high school students prepare for the SAT exam. You have a staff of coaches, each of which has an employee ID, an hourly rate (such as $20 per hour), and personal information consisting of their first name, last name, middle name/initial, address information, phone number, mobile phone number, and e-mail address. For each high school student, you want to keep similar personal information and a student ID number, date of birth, and expected date of graduation from high school. Coaching takes place in sessions, to each of which you assign a unique ID number. Each session consists of one coach and one student. In addition to being able to identify the coach and student involved in each session, you want to store its start date/time and end date/time.
In: Computer Science
Complete the program used on the instructions given in the comments:
C++ lang
#include <string>
#include <vector>
#include <iostream>
#include <fstream>
using namespace std;
vector<float>GetTheVector();
void main()
{
vector<int> V;
V = GetTheVector(); //reads some lost numbers from the file “data.txt" and places it in //the Vector V
Vector<int>W = getAverageOfEveryTwo(V);
int printTheNumberOfValues(W) //This should print the number of divisible values by 7 //but not divisible by 3.
PrintIntoFile(W); //This prints the values of vector W into an output file “output.txt”
}
As you see in the main program, there are four functions. The first function is called “GetVector()” that reads a set of integer, place them into the vector V, and returns the vector to the main program.
The second function is called “GetAverageOfEveryTwoNumber() that takes a vector “V” and finds the average of every two consecutive numbers, place the values into another vector called “W” and returns it to the main program. For example if the Vector is:
10 20 30 40 50 60 70 80 90 100
Then vector “W” should be:
15 25 35 45 55 65 75 85 95
Because (10+20) divided by 2 is 15, and so on.
The next function takes the vector “W” and count how many of the values are divisible by “7” but not divisible by “3”
Finally the last function prints the vector “W” into an output file called “output.txt”
In: Computer Science
How do you dereference a pointer? Explain the difference between a dereferenced pointer and the pointer itself.
In: Computer Science
What happens if you call VEB-TREE-INSERT with an element that is already in the vEB tree? What happens if you call VEB-TREE-DELETE with an element that is not in the vEB tree? Explain why the procedures exhibit the behavior that they do. Show how to modify vEB trees and their operations so that we can check in constant time whether an element is present.
In: Computer Science
JAVA:
Write a program to perform time conversion. The user will select from the following menu: Hours to minutes Days to hours Minutes to hours Hours to days. Each choice has a separate method which is called when the user makes the selection. Please see the output below: Hours to minutes. 2. Days to hours. 3. Minutes to hours. 4. Hours to days. Enter your choice: 2 Enter the number of days: 5 There are 120 hours in 5 days.
In: Computer Science
Question 4: Business Continuity planning [50 marks]
Business Continuity planning involves the creation and validation of a logistical plan that outlines how an organization will recover from a disaster or extended disruption of operations.
a) Identify and discuss the phases of a Business Continuity life cycle. [25 marks]
b) With the aid of examples, discuss the various issues that could indicate that a Disaster Recovery Plan is not in order. [25 marks]
In: Computer Science
TOPIC: DESIGN A SALE WEBSITE
In: Computer Science
Create a generic superclass Shoe, which has at least 3 subclasses with attributes as shown below: class Shoe: Attributes: self.color, self.brand class Converse (Shoe): # Inherits from Shoe Attributes: self.lowOrHighTop, self.tongueColor, self.brand = "Converse" class CombatBoot (Shoe): # Inherits from Shoe Attributes: self.militaryBranch, self.DesertOrJungle class Sandal (Shoe): # Inherits from Shoe Attributes: self.openOrClosedToe, self.waterproof Implement the classes in Python. Create a separate test module where 2 instances of each subclass are created. Test the methods by displaying their information.
In: Computer Science
a) What are the most important principals for designing a good input form?
b) What would you specifically avoid in designing an input form?
c) Provide examples, good and bad
In: Computer Science
please use python to solve this problem.
Math and String operations
Write a script to perform various basic math and string operations.
Use some functions from Python's math module. Generate formatted
output.
Basic math and string operations
Calculate and print the final value of each variable.
a equals 3 to the power of 2.5
b equals 2 b equals b + 3 (use +=)
c equals 12 c = c divided by 4 (use /=)
d equals the remainder of 5 divided by 3
Built-in functions abs, round, and min
Use abs, round, and min to calculate some values. These are all
Python built in functions (see: BIF ).
Print the difference between 5 and 7.
Print 3.14159 rounded to 4 decimal places.
Print 186282 rounded to the nearest hundred.
Print the minimum of 6, -9, -3, 0
Functions from the math module
Use some functions from Pythons math module to perform some
calculations.
Ask the user for a number (test with the value 7.6).
Print the square root of the number, rounded to two decimal places
(include an appropriate description).
Print the base-10 log of the number, rounded to two decimal places
(include an appropriate description)
(see https://docs.python.org/3/library/math.html).
Complex numbers
Do a calculation with complex numbers. Note that, while you might
be familiar with the notation convention commonly used within
mathematics for complex numbers (z = a + bi), Python uses the
notation convention used in electromagnetism and electrical
engineering (z = a + bj).
Assign z1 the value of 4 + 3j
Assign z2 the value of 2 + 2j
Assign z3 the value of z1 times z2
Print the value of z3
Add the following at the end of the script to show your results
In: Computer Science
Must be done in Ruby
Histogram
Create a Ruby program which reads a string of information and uses
a Hash to keep track of letter frequencies and then displays a
Histogram using this frequency information.
IN ORDER TO RECEIVE FULL CREDIT, YOUR CODE SHOULD PROPERLY PROCESS THE STRING INFORMATION, COUNTING FREQUENCIES BY USING A HASH.
A number of different program dialogues describe the program I am looking for.
Enter Data:
supercalifragilisticexpialadocious
A - 4 - ****
C - 3 - ***
D - 1 - *
E - 2 - **
F - 1 - *
G - 1 - *
I - 6 - ******
L - 3 - ***
O - 2 - **
P - 2 - **
R - 2 - **
S - 3 - ***
T - 1 - *
U - 2 - **
X - 1 - *
In: Computer Science
In: Computer Science
At Transport layer of Networks, we use segments to send data across.
1. Argue for using larger segments by discussing briefly why larger segments could be beneficial.
2. Then also argue why using small segments may be beneficial.
In: Computer Science