Create a schema file that captures the requirements for a <student> element>
Here are the specifications for student:
3.1. A student must have a first name and last name.
3.2. A student may have a middle name, but it’s optional.
3.3. A student may have a home address, a work address, or both.
3.3.1. Use a complex type to connect to a single schema definition for “address”
3.4. An address has: a street address, city, state, and zip code. Include the following limits:
3.4.1. Street address may have one or two entries
3.4.2. State must be two letters
3.4.3. Zipcode must be 5 or 9
digits
Online searches can help with regular expressions for this one!
Sample files:
|
<?xml version="1.0" encoding="utf-8"?> <!--- Valid data --> <student> <first_name>Mani</first_name> <middle_name>Rupee</middle_name> <last_name>Patel</last_name> <home_address> <street>2525 Longhorn Way</street> <street>Apartment 35</street> <city>Redmond</city> <state>WA</state> <zip>88899-3535</zip> </home_address> </student> |
|
<?xml version="1.0" encoding="utf-8"?> <!--- Valid data --> <student> <first_name>Michael</first_name> <last_name>Hortensia</last_name> <home_address> <street>Generic Technical Company</street> <street>1515 Longhorn Way</street> <city>Seattle</city> <state>WA</state> <zip>98585</zip> </home_address> <work_address> <street>346 3rd Street</street> <city>Olympia</city> <state>WA</state> <zip>98581</zip> </work_address> </student> |
|
<?xml version="1.0" encoding="utf-8"?> <student> <!--- Invalid data --> <first_name>Mani</first_name> <work_address> <street>3535 Too many streets</street> <street>Rockford Way</street> <street>MacIntyre Lane</street> <city>Redmond</city> <state>WART</state> <zip>88899-35358</zip> </work_address> </student> |
In: Computer Science
Charles Lackey operates a bakery in Idaho Falls, Idaho. Because of its excellent product and excellent location, demand has increased by 25% in the last year. On far too many occasions, customers have not been able to purchase the bread of their choice. Because of the size of the store, no new ovens can be added. At a staff meeting, one employee suggested ways to load the ovens differently so that more loaves of bread can be baked at one time. This new process will require that the ovens be loaded by hand, requiring additional manpower. This is the only thing to be changed. The bakery currently makes 1800 loaves per month. The pay will be $8 per hour for employees and each employee works 160 hours per month.
Charles Lackey can also improve the yield by purchasing a new blender. The new blender will mean an increase in his investment. This new blender will mean an increase in his costs of $100 per month, but he will achieve the same new output (an increase to 2250.00 ) as the change in labor hours.
a) Current productivity for 640 work hours = nothing loaves/dollar (round your response to three decimal places). If Charles chooses to increase the number of work hours to 800 in order to employ the new oven loading technique, then the productivity is = nothing loaves/dollar (round your response to three decimal places).
b) If Charles instead chooses to purchase a new blender (while holding labor constant at 640 hours at $8 per hour), then the productivity is = nothing loaves/dollar (round your response to three decimal places).
c) By adding manpower, the percentage increase in productivity is nothing% (enter your response as a percentage rounded to two decimal places and include a minus sign if necessary). By purchasing a new blender (while holding labor constant at 640 hours at $8 per hour), the percentage increase in productivity is nothing% (enter your response as a percentage rounded to two decimal places and include a minus sign if necessary).
In: Accounting
Taylor and Michael are agents working for Juarez Real Estate Brokers last September 2018 when one of Jessica’s clients became interested in Michael’s listing. The two write up an option agreement and purchase contract per the terms of their respective clients with the option expiring December 31st, 2020. Due to a wildfire, real estate prices have risen substantially. Describe this arrangement for Juarez’s agency? What is likely to be Taylor’s client’s action?
In: Accounting
Write a python programA3) Lambda Expressions. Use lambda expression to sort the list ["democratic", "republican", "equal", "python", "break", "two", "ruby"] by: a) the last 2 characters of each list item in reverse order b) create new list from list above where each item has only 3 characters and first one is capitalized. For example, the list item = "democratic" will transform into "Dem". Apply alphabetically sorting to the new list.
In: Computer Science
ABC company is expected to grow at the industry constant rate of 6% and its dividend yield is 7%. the company is as risky as the average firm in the industry, but it successfully completed some R&D work that leads to the expectation that its earnings and dividends will grow at a rate of 50% this year and 35% in the following year, after which growth return to the 6% industry average. if the last dividend was $1.00, what is the estimated value per share of ABC Company's stock?
Show all the work please.
In: Finance
Implement the CPU scheduling algorithm MLFQ in python. Have the program answer the table.
Multilevel Feedback Queue (absolute priority in higher queues)
Queue 1 uses RR scheduling with Tq = 5
Queue 2 uses RR scheduling with Tq = 10
Queue 3 uses FCFS
All processes enter first queue 1. If time quantum (Tq) expires before CPU burst is complete, the process is downgraded to next lower priority queue. Processes are not downgraded when preempted by a higher queue level process. Once a process has been downgraded, it will not be upgraded.
Simulate and evaluate with the set of eight processes below.
Assumptions:
Process Data:
process goes {CPU burst, I/O time, CPU burst, I/O time, CPU burst, I/O time,…….., last CPU burst}
P1 {5, 27, 3, 31, 5, 43, 4, 18, 6, 22, 4, 26, 3, 24, 4}
P2 {4, 48, 5, 44, 7, 42, 12, 37, 9, 76, 4, 41, 9, 31, 7, 43, 8}
P3 {8, 33, 12, 41, 18, 65, 14, 21, 4, 61, 15, 18, 14, 26, 5, 31, 6}
P4 {3, 35, 4, 41, 5, 45, 3, 51, 4, 61, 5, 54, 6, 82, 5, 77, 3}
P5 {16, 24, 17, 21, 5, 36, 16, 26, 7, 31, 13, 28, 11, 21, 6, 13, 3, 11, 4}
P6 {11, 22, 4, 8, 5, 10, 6, 12, 7, 14, 9, 18, 12, 24, 15, 30, 8}
P7 {14, 46, 17, 41, 11, 42, 15, 21, 4, 32, 7, 19, 16, 33, 10}
P8 {4, 14, 5, 33, 6, 51, 14, 73, 16, 87, 6}
|
MLFQ |
|
|
CPU utilization |
|
|
Avg Waiting time (Tw) |
|
|
Avg Turnaround time (Ttr) |
|
|
Avg Response time (Tr) |
|
MLFQ CPU utilization: |
||||
|
Tw |
Ttr |
Tr |
||
|
P1 |
||||
|
P2 |
||||
|
P3 |
||||
|
P4 |
||||
|
P5 |
||||
|
P6 |
||||
|
P7 |
||||
|
P8 |
||||
|
Avg |
||||
In: Computer Science
Project objective: To learn more about OS scheduling through a hands-on simulation programming experience
Implement the following 3 CPU scheduling algorithms
Multilevel Feedback Queue (absolute priority in higher queues)
Queue 1 uses RR scheduling with Tq = 5
Queue 2 uses RR scheduling with Tq = 10
Queue 3 uses FCFS
All processes enter first queue 1. If time quantum (Tq) expires before CPU burst is complete, the process is downgraded to next lower priority queue. Processes are not downgraded when preempted by a higher queue level process. Once a process has been downgraded, it will not be upgraded.
Assumptions:
Process Data:
process goes {CPU burst, I/O time, CPU burst, I/O time, CPU burst, I/O time,…….., last CPU burst}
P1 {5, 27, 3, 31, 5, 43, 4, 18, 6, 22, 4, 26, 3, 24, 4}
P2 {4, 48, 5, 44, 7, 42, 12, 37, 9, 76, 4, 41, 9, 31, 7, 43, 8}
P3 {8, 33, 12, 41, 18, 65, 14, 21, 4, 61, 15, 18, 14, 26, 5, 31, 6}
P4 {3, 35, 4, 41, 5, 45, 3, 51, 4, 61, 5, 54, 6, 82, 5, 77, 3}
P5 {16, 24, 17, 21, 5, 36, 16, 26, 7, 31, 13, 28, 11, 21, 6, 13, 3, 11, 4}
P6 {11, 22, 4, 8, 5, 10, 6, 12, 7, 14, 9, 18, 12, 24, 15, 30, 8}
P7 {14, 46, 17, 41, 11, 42, 15, 21, 4, 32, 7, 19, 16, 33, 10}
P8 {4, 14, 5, 33, 6, 51, 14, 73, 16, 87, 6}
PLEASE CODE IN C++ FOR ALL 3
In: Computer Science
Company XYZ decides to invest in a $25,000,000 project. The company will finance the project with 50% debt and 50% equity. The term of the loan is interest only, compounded annually, 5%, and over 5 years. The project will allow the company to produce and sell an additional 100,000 widgets at $130 a widget. The cost of producing each widget is 50% of revenue. Furthermore, the project will fully depreciate in 5 years on a straight-line basis and the project will end. The tax rate is 21%
a. What is the IRR?
b. If the company’s required rate on this project is 10%, what is the NPV?
c. Would you accept it? Yes or No? State why
(The correct answers are 17.04 for the IRR and $1,312,798 for the NPV. Please show work on how to get those answers.
In: Finance
an electronics store sends out a survey to seven new customers
to determine if they are satisfied with their purchase. Assume the
probability a customer will be satisfied is 0.7.
a. What is the mean number of customers that will be satisfied?
b. What is the standard deviation of the number of customers satisfied? 4. What is the probability of exactly five customers being satisfied?
c. What is the probability of at least one customer being satisfied? (Hint: use the compliment of “at least one”. Give the answer to seven places to the right of the decimal point
In: Statistics and Probability
Log onto website where you can observe your service bill for the last 12 months (electric bill, cell phone bill, water bill, etc.). If you do NOT feel comfortable sharing this data, you can make up values. In excel, list the values of your bill for the last 12 months on one column. Find the sample mean and sample standard deviation of your data. Pick three bills from the last 12 months and change the values into z-scores. What does the z-score tell you about that particular month? Analysis Between what two values would be considered a normal bill? Remember, being within 2 Standard Deviations is considered normal. Are any of your bills in the last 12 months unusual? Very unusual? Are there times when you would accept an "unusual" bill? Explain.
In: Statistics and Probability