Two nodes A and B are connected via switch S.
*About packet switching Latency
bandwidth : 4Mbps
number of packets : 10^3
Propagation time : 2msec
size of a packet: 8000 bit (there for there are 8M bit data, 8000 * 10 * 3)
switching time : 1msec
Queuing time : 0
If a header must be added to the data size (8000 bits), I wonder what is the length condition of the header that will take less time than 2024 msec.
I think it will be solved by pipelining, but I cannot solve. Can you help me?
In: Computer Science
Two identical metal spheres attract each other with a force of 7.00 × 10−6 N when they are 3.00 cm apart. The spheres are then touched together and then removed to the original separation where now a force of repulsion of 2.00 × 10−6 N is observed. What is the charge on each sphere after touching and before touching?
In: Physics
Using a table of standard electrode potentials, decide which of the following statements is completely true.
A. Cu2+ can oxidize H2, and Fe can reduce Mn2+ .
B. Ni2+ can oxidize Cu2+, and Fe2+ can reduce H+ .
C. Fe2+ can oxidize H2, and Fe2+ can reduce Au3+ .
D. Br2 can oxidize Ni, and H2 can reduce Mn2+ .
E. H + can oxidize Fe, and Ni can reduce Br2.
Answer: E.. but why? can you explain why A-D are incorrect and why E is right. I know it has something to do with how they are positioned on the standard reduction potential list, but I dont understand the concept, which I will need to know for my exam. thank you!
In: Chemistry
An investment project costs $22,761 and has annual cash flows of $10,267 for six years. What is the discounted payback period if the discount rate is 5 percent?
In: Finance
Wagner Company developed the following standard costs for its product for 2011:
Direct Materials - 4 pounds at $4.50 per pound
Direct Labor - 2 hours at $10.50 per hour
Based on their flexible budget, budgeted Manufacturing Overhead costs are $80,000 of fixed costs plus variable costs of $4 per direct labor hour. Normal capacity is set at 20,000 units of product OR 40,000 DIRECT LABOR HOURS. (20,000 units x 2 labor hours per unit).
Actual costs for 2011 were as follows:
a. 19,000 units of product were actually produced
b. Direct labor costs were $362,700 for 37,200 direct labor hours actually worked.
c. Actual direct materials purchased and used during the yeear cost $361,900 for 77,000 pounds.
d. Total actual manufcaturing overhead costs were $227,000.
Compute the following yearly variances for Wagner company for 2011 and indicate whether the variance is favorable (F) or unfavorable (U):
1. Direct Materials Price Variance
2. Compute the Direct Materials Quantity Variance
3. Compute the total Direct Materials Variance.
4. Compute the Direct Labor Price Variance
5. Compute the Direct Labor Quantity Variance
6. Compute the total Direct Labor Variance
7. Compute the Variable Overhead Controllable Variance
8. Compute the Fixed Overhead Volume Variance
9. Compute the total Manufacturing Overhead Variance
10. Compute the total cost variance and indicate if favorable or unfavorable.
In: Accounting
use the 4 action framework from the textbook to describe how you are going to build competitive advantages for IMAX in the market?
In: Operations Management
The State Patrol Ticket Processing System
The purpose of the state patrol ticket processing system is to record driver violations, to keep records of the fines paid by drivers when they plead guilty or are found guilty of moving violations by the courts, and to notify the court that a warrant should be issued when such fines are not paid in a timely manner. The system does not maintain data on accidents, insurance, driving history and driver's licenses. These data are managed in separate systems and can be accessed by the State Patrol ticket processing system.
The data used by the ticket processing system involves driver data, officer data, and court data. The system creates and maintains ticket data. Driver data used includes license number, name, address, date of birth, date licensed, and so on. Court and officer data include the name and address of each respectively. Ticket data created includes ticket number (each is unique and preprinted on each sheet of the officer's ticket book), location, ticket type, ticket date, ticket time and fine amount. Data related to ticket processing such as trial (plea date, trial date, verdict, fine amount), payment (amount and date paid), and warrant (date, type) are also recorded.
Each driver may have zero or more tickets, and each ticket applies to only one driver.
Other System Requirements:
Tasks:
In: Computer Science
Suppose you purchase a ten-year bond with 6 percent annual
coupons. You
hold the bond for four years, and sell it immediately after
receiving the fourth
coupon. If the bond's yield to maturity was 4.5% when you purchased
and 7%
when you sold the bond. What is your annual rate of return on the
bond in
each of the following situations:
a) All coupons were immediately spent when received.
b) All coupons were reinvested in a bank account, which pays 2
percent
interest until the bond is sold.
In: Finance
1. List five ways entrepreneurs can use their small size to improve their HR processes.
2. Discuss how you would choose and deal with a professional employee organization.
3. Describe how you would create a start-up human resource system for a new small business.
In: Operations Management
If you have a CEO or a person who is considered to be an insider sell a large block of stock and he gets reported through the security and exchange commission, is that a sign that the company as well as the stop is headed for challenging times?
In: Finance
The bubble sort described in AS 7e is inefficient when perform on a larger array. To improve the efficiency, we have to observe the basic mechanism of Bubble Sort.
Each inner loop of the Bubble sort always move the largest item on the unsorted left side to the sorted right side.
When a list is sorted, we say the list is in ascending order by convention.
We can enhance the efficiency of traditional Bubble sort by making only one swapping per inner loop iteration. To accomplish this, the following simple modifications are applied:
Hint:
The inner loop finds the index of the largest item of the
unsorted region and performs no swap operation.
The outer loop index to track the range of "unsorted
region."
Example of Sorted vs Unsorted region through each inner iterations:
4, 3, 5, 7, 2, 9, 1 unsorted | sorted 4, 3, 5, 7, 2, 1| 9 (1st iteration) 4, 3, 5, 1, 2| 7, 9 (2nd iteration) 4, 3, 2, 1| 5, 7, 9 (3rd iteration) 1, 3, 2| 4, 5, 7, 9 (4th iteration) 1, 2| 3, 4, 5, 7, 9 (5th iteration) 1, 2, 3, 4, 5, 7, 9 (6th iteration)
Note:
Complexity of program is to gauge its performance of time and space. See here.
Submit
In: Computer Science
Why is it important that theories describe female criminality? How have critical theories evolved over time to address the exclusion of women?
In: Psychology
In: Psychology
Designing and implementing a C++ structure data type - Monthly Budget
Remember to use correct code formatting and documentation.
A student has established the following monthly budget:
Budget Categories Budgeted amount
-----------------------------------------------------
Housing $ 580.00
Utilities $ 150.00
Household Expenses $ 65.00
Transportation $ 50.00
Food $ 250.00
Medical $ 30.00
Insurance $ 100.00
Entertainment $ 150.00
Clothing $ 75.00
Miscellaneous $ 50.00
----------------------------------------------------
Write a program that declares a MonthlyBudget structure designed with member variables to hold each of these expense categories. The program should define two MonthlyBudget structure variables budget and spent. The first MonthlyBudget structure variable budget will contain (ie., be assigned) the budget figures given above. Pass this first structure >budget variable to a function displayBudget that will display the budget categories along with the budgeted amounts.
The second MonthlyBudget structure variable spent will be passed to another function getExpenses that should create a screen form that displays each category name and its budgeted amount, then positions the cursor next to it for the user to enter the amounts actually spent in each budget category during the past month.
Finally, the program should then pass both structure variables budget and spent to a function compareExpenses that displays a report indicating the amount over or under budget the student spent in each category, as well as the amount over or under for the entire monthly budget.
You may design your own user-input interface but you must use a structure and must implement the three functions listed above. The format of the monthly budgeted report should appear as similar as possible to the sample output shown below.
HINT: Use the setw and right manipulators to right-justify dollar value outputs in function compareExpenses.
INPUT VALIDATION: Do not accept negative values for the users actual expenditure inputs in function getExpenses.
A sample test run using the Code::Block IDE-CompilerHere is your monthly budget for YEAR 2020: Housing $ 580 Utilities $ 150 Household $ 65 Transportation $ 50 Food $ 250 Medical $ 30 Insurance $ 100 Entertainment $ 150 Clothing $ 75 Miscellaneous $ 50 ================================================= Total Budgeted $ 1500 ================================================= Enter month of expenditure: March Enter actual monthly expenditures for each budget category Housing: $ 580 Utilities: $ 130 Household: $ 50 Transportation:$ 50 Food: $ 230 Medical: $ 30 Insurance: $ 100 Entertainment: $ 120 Clothing: $ -10 ERROR: You must enter a positive number. Clothing: $ 100 Miscellaneous: $ 30 Budgeted Spent Difference ================================================= Housing 580.00 580.00 0.00 Utilities 150.00 130.00 -20.00 Household 65.00 50.00 -15.00 Transportation 50.00 50.00 0.00 Food 250.00 230.00 -20.00 Medical 30.00 30.00 0.00 Insurance 100.00 100.00 0.00 Entertainment 150.00 120.00 -30.00 Clothing 75.00 100.00 25.00 Miscellaneous 50.00 30.00 -20.00 ================================================= Total 1500.00 1420.00 80.00 ================================================= Congratulations! You were $80.00 under budget in March 2020. Process returned 0 (0x0) execution time : 104.850 s Press any key to continue.
Please make sure to declare your struct above your function prototypes and include appropriate function documentation as needed. You may use pointers or constant reference parameters when passing the structure variables to the functions mentioned above. DO NOT use global variables.
In: Computer Science
Your assignment for this program is to evaluate a numeric expression in postfix notation using a dynamic (pointer based) stack. As stated in the handout, in order to evaluate a numeric expression, a compiler converts an infix numeric expression to postfix notation and then it uses an algorithm and a stack to evaluate the expression. Your program should implement the pseudocode algorithm described in the attached handout.
Your program will read and evaluate expressions stored in an input file (infile.txt). The process will continue until the end of file is read. After each expression is read and evaluated, the expression and its value should be output to a text file using the following format.
EXPRESSION: XXXXXXXXXXXXXXXXXXXXXXXXXXX
VALUE:XXXXXX
You may assume all expressions in the file will be in postfix notation. You may also assume that the expressions will only have the following operators: +, -, *, /. The variables found in the expressions will be either A, B, C or D. No other variables will be used. The variables should be assigned the following values in your program:
A = 14.0, B = 16.0, C = 20.0, D = 30.0
Assume that all variables will be uppercase. You may store the expression in a string and extract one character at a time. Please use the data file shown below for the program run.
Output your run to another file.
Please note: Your stack should include a working destructor.
infile.dat
DCA-+
ABC-+
ABCD*+A/-
AB-CD+*
Hint: You can use this code to help you input the string and process each character in the string.
while(!in.eof()){
in>>s; // s is a string, read the entire string on the line
// process each character in the string using s.length() and a for loop
for (int i = 0; i < s.length(); i++)
//check to see if the character is an operator (+,-,*,/)
// or operand A,B,C,D
if(s.substr(i,1)== ) // use the handout algorithm for the rest
}
Given s, declared as a string then s.length() returns the number of characters in the string; s.substr(i,1) returns the character in the ith position of the string. The string library contains the length and substr methods; substr(i,n), another method, will return n characters starting at position i of a string.
In: Computer Science