Make CSS code for ping flood attack of the United States
** zoom in and out of the map, background color, states listed, scrollbar, title Ping Flood attack in US Map, etc.
Design whatever you would want to
programming language can be any
In: Computer Science
For each of the following transactions, explain what happens to the merchandise trade balance, current account balance, and financial account balance in both the United States and Mexico. The exchange rate is 2 Mexican pesos per U.S. dollar.
(a) A Mexican firm spends 4 million pesos to buy radiology equipment from a U.S. firm.
(b) A U.S. firm buys 20,000 sombreros at 20 pesos each.
(c) Mexican computer firms send 200 programmers to universities in the United States, paying tuition and expenses of $3000 each.
(d) A Mexican entrepreneur gives 50,000 pesos to the United Way of San Antonio, Texas.
(e) Mexican investors buy $10 million worth of 30-year U.S. Treasury bonds.
In: Economics
To conduct an experiment, a movie theater increased movie ticket prices from $9 to $10 and measured the change in ticket sales. The theater then gathered data over the following month to determine whether the price increase was profitable. Assume total costs to the theater are the same, whether the price of a ticket is $9 or $10.
In order for the ticket price to have been profitable over the month, the elasticity of demand for movie tickets must be (INELASTIC OR ELASTIC) .
Demand curves become (MORE OR LESS) elastic in the long run. This means that the ticket price increase will likely be (MORE OR LESS) profitable in the long run.
In: Economics
5. The Gardner Theater, a community playhouse, needs to determine the lowest-cost production budget for an upcoming show. Specifically, they have to determine which set pieces to construct and which, if any, set pieces to rent from another local theater at a predetermined fee. However, the organization has only two weeks to fully construct the set before the play goes into technical rehearsals. The theater has two part-time carpenters who work up to 12 hours a week, each at $10 an hour. Additionally, the theater has a part-time scenic artist who can work 15 hours per week to paint the set and props as needed at a rate of $15 per hour. The set design requires 20 flats (walls), two hanging drops with painted scenery, and three large wooden tables (props). The number of hours required for each piece for carpentry and painting is shown below:
|
Carpentry |
Painting |
|
|---|---|---|
|
Flats |
0.5 |
2.0 |
|
Hanging drops |
2.0 |
12.0 |
|
Props |
3.0 |
4.0 |
Flats, hanging drops, and props can also be rented at a cost of $75, $500, and $350 each, respectively. How many of each unit should be built by the theater and how many should be rented to minimize total costs?
| Gardner Theater | ||
| Hours Required/Piece | Carpentry | Painting |
| Flats | 0.5 | 2.0 |
| Hanging Drops | 2.0 | 12.0 |
| Props | 3.0 | 4.0 |
| Hours Available | 48.0 | 30.0 |
| Labor Rate/hour | $10.00 | $15.00 |
In: Statistics and Probability
This program is broken down into phases for your convenience only. Please turn in only the final phase. Before turning in your program, please make sure that it does something reasonable if the user enters a negative number the first time.
Phase I: Write a program for a theater that will keep track of how many people in each of 5 age categories attended a particular movie. Use the 5 age categories listed below in the sample screen output. The user will enter a number of ages, entering a negative number when there are no more ages to enter. Your program will then report on how many people in each age group attended. Sample screen output:
Enter age of attendee (-1 to quit): 34
Enter age of attendee (-1 to quit): 16
Enter age of attendee (-1 to quit): 68
Enter age of attendee (-1 to quit): 53
Enter age of attendee (-1 to quit): 39
Enter age of attendee (-1 to quit): 23
Enter age of attendee (-1 to quit): 21
Enter age of attendee (-1 to quit): -1
age 0 to 18: 1
age 19 to 30: 2
age 31 to 40: 2
age 41 to 60: 1
over 60: 1 |
Phase II: Modify your program so that, in addition
to the report that the program currently produces, it also gives
the average age of the people in attendance, the age of the oldest
person in attendance, and the age of the youngest person in
attendance. Sample screen output:
Enter age of attendee (-1 to quit): 34
Enter age of attendee (-1 to quit): 16
Enter age of attendee (-1 to quit): 68
Enter age of attendee (-1 to quit): 53
Enter age of attendee (-1 to quit): 39
Enter age of attendee (-1 to quit): 23
Enter age of attendee (-1 to quit): 21
Enter age of attendee (-1 to quit): -1
age 0 to 18: 1
age 19 to 30: 2
age 31 to 40: 2
age 41 to 60: 1
over 60: 1
The average age was 36.
The youngest person in attendance was 16.
The oldest person in attendance was 68. |
Phase III: Modify your program so that it also asks each attendee for a theater concession stand purchase. The attendee must make a selection based on the following choices …
1 - Soft Drink (such as Coca Cola, ICCEE, Mineral Water etc...)
2 - Popcorn
3 - Nachos
4 - Soft drink & Popcorn
5 - Soft drink & Nachos
6 - Organic and Gluten-free snacks
7 – None
The program output should now also provide a theater concession stand sales summary with a count of each category purchased.
Note: Include a validation routine to ensure that a correct choice is input for each attendee.
Check the sample screen output below for the final formatted display of theater statistics.
========================== THEATER STATS PROGRAM ========================== Movie theater snacks available for purchase ========================================== 1 - Soft Drink (such as Coca Cola, ICCEE, Mineral Water etc...) 2 - Popcorn 3 - Nachos 4 - Soft drink & Popcorn 5 - Soft drink & Nachos 6 - Organic and Gluten-free snacks 7 - None ========================================== Enter age of attendee (-1 to quit): 34 Movie theater snack purchased. (Select items 1 - 7):4 -------------------------- Enter age of attendee (-1 to quit): 16 Movie theater snack purchased. (Select items 1 - 7):5 -------------------------- Enter age of attendee (-1 to quit): 68 Movie theater snack purchased. (Select items 1 - 7):12 Invalid selection, please choose from 1 - 7 Movie theater snack purchased. (Select items 1 - 7):6 -------------------------- Enter age of attendee (-1 to quit): 53 Movie theater snack purchased. (Select items 1 - 7):6 -------------------------- Enter age of attendee (-1 to quit): 39 Movie theater snack purchased. (Select items 1 - 7):1 -------------------------- Enter age of attendee (-1 to quit): 23 Movie theater snack purchased. (Select items 1 - 7):2 -------------------------- Enter age of attendee (-1 to quit): 21 Movie theater snack purchased. (Select items 1 - 7):3 -------------------------- Enter age of attendee (-1 to quit): 21 Movie theater snack purchased. (Select items 1 - 7):4 -------------------------- Enter age of attendee (-1 to quit): -1 ================================== THEATER STATS PROGRAM RESULTS ================================== age 0 to 18: 1 age 19 to 30: 3 age 31 to 40: 2 age 41 to 60: 1 over 60: 1 The average age was 34 The youngest person in attendance was 16 The oldest person in attendance was 68 Theater Concession Stand sales ================================== Soft Drink (such as Coca Cola, ICCEE, Mineral Water etc.): 1 Popcorn: 1 Nachos: 1 Soft drink & Popcorn: 2 Soft drink & Nachos: 1 Organic and Gluten-free snacks: 2 Process returned 0 (0x0) execution time : 169.589 s Press any key to continue. |
In: Computer Science
C++...This program is broken down into phases for your convenience only. Please turn in only the final phase. Before turning in your program, please make sure that it does something reasonable if the user enters a negative number the first time.
Phase I: Write a program for a theater that will keep track of how many people in each of 5 age categories attended a particular movie. Use the 5 age categories listed below in the sample screen output. The user will enter a number of ages, entering a negative number when there are no more ages to enter. Your program will then report on how many people in each age group attended. Sample screen output:
Enter age of attendee (-1 to quit): 34
Enter age of attendee (-1 to quit): 16
Enter age of attendee (-1 to quit): 68
Enter age of attendee (-1 to quit): 53
Enter age of attendee (-1 to quit): 39
Enter age of attendee (-1 to quit): 23
Enter age of attendee (-1 to quit): 21
Enter age of attendee (-1 to quit): -1
age 0 to 18: 1
age 19 to 30: 2
age 31 to 40: 2
age 41 to 60: 1
over 60: 1 |
Phase II: Modify your program so that, in addition
to the report that the program currently produces, it also gives
the average age of the people in attendance, the age of the oldest
person in attendance, and the age of the youngest person in
attendance. Sample screen output:
Enter age of attendee (-1 to quit): 34
Enter age of attendee (-1 to quit): 16
Enter age of attendee (-1 to quit): 68
Enter age of attendee (-1 to quit): 53
Enter age of attendee (-1 to quit): 39
Enter age of attendee (-1 to quit): 23
Enter age of attendee (-1 to quit): 21
Enter age of attendee (-1 to quit): -1
age 0 to 18: 1
age 19 to 30: 2
age 31 to 40: 2
age 41 to 60: 1
over 60: 1
The average age was 36.
The youngest person in attendance was 16.
The oldest person in attendance was 68. |
Phase III: Modify your program so that it also asks each attendee for a theater concession stand purchase. The attendee must make a selection based on the following choices …
1 - Soft Drink (such as Coca Cola, ICCEE, Mineral Water etc...)
2 - Popcorn
3 - Nachos
4 - Soft drink & Popcorn
5 - Soft drink & Nachos
6 - Organic and Gluten-free snacks
7 – None
The program output should now also provide a theater concession stand sales summary with a count of each category purchased.
Note: Include a validation routine to ensure that a correct choice is input for each attendee.
Check the sample screen output below for the final formatted display of theater statistics.
========================== THEATER STATS PROGRAM ========================== Movie theater snacks available for purchase ========================================== 1 - Soft Drink (such as Coca Cola, ICCEE, Mineral Water etc...) 2 - Popcorn 3 - Nachos 4 - Soft drink & Popcorn 5 - Soft drink & Nachos 6 - Organic and Gluten-free snacks 7 - None ========================================== Enter age of attendee (-1 to quit): 34 Movie theater snack purchased. (Select items 1 - 7):4 -------------------------- Enter age of attendee (-1 to quit): 16 Movie theater snack purchased. (Select items 1 - 7):5 -------------------------- Enter age of attendee (-1 to quit): 68 Movie theater snack purchased. (Select items 1 - 7):12 Invalid selection, please choose from 1 - 7 Movie theater snack purchased. (Select items 1 - 7):6 -------------------------- Enter age of attendee (-1 to quit): 53 Movie theater snack purchased. (Select items 1 - 7):6 -------------------------- Enter age of attendee (-1 to quit): 39 Movie theater snack purchased. (Select items 1 - 7):1 -------------------------- Enter age of attendee (-1 to quit): 23 Movie theater snack purchased. (Select items 1 - 7):2 -------------------------- Enter age of attendee (-1 to quit): 21 Movie theater snack purchased. (Select items 1 - 7):3 -------------------------- Enter age of attendee (-1 to quit): 21 Movie theater snack purchased. (Select items 1 - 7):4 -------------------------- Enter age of attendee (-1 to quit): -1 ================================== THEATER STATS PROGRAM RESULTS ================================== age 0 to 18: 1 age 19 to 30: 3 age 31 to 40: 2 age 41 to 60: 1 over 60: 1 The average age was 34 The youngest person in attendance was 16 The oldest person in attendance was 68 Theater Concession Stand sales ================================== Soft Drink (such as Coca Cola, ICCEE, Mineral Water etc.): 1 Popcorn: 1 Nachos: 1 Soft drink & Popcorn: 2 Soft drink & Nachos: 1 Organic and Gluten-free snacks: 2 Process returned 0 (0x0) execution time : 169.589 s Press any key to continue. |
In: Computer Science
1. Compare and contrast the organization of the healthcare systems in the United States and the United Kingdom.
2. Select one system (either U.K. or U.S.) and discuss one successful or positive aspect of the system and one negative aspect of the system.
3. Suggest a way to improve the system you selected in #2.
In: Nursing
1. What is the impact of economic sanctions? Pick one recent sanction the United States or the European Union or the United Nations imposed on a country and describe the impact in detail.
2. Is military action always necessary to back up a sanction? Why or why not? Support your position with recent examples.
In: Economics
In: Statistics and Probability
In cryptography, Caesar cipher is one of the simplest encryption techniques. The key idea of this method is to replace each plaintext letter with one fixed number of places down the alphabet. Below is an example with a shift of three:
Plain: ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
Cipher: DEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzABC
To cipher a string, ‘A’ is replaced by ‘D’, ‘B’ is substituted by ‘E’, and so on. To decode a string, ‘A’ is replaced by ‘x’, etc.
By using python with vs code:
Write a program that takes “independence.txt” file as an input, encodes the content of this file, and outputs the encoded content to an output file (independence2.txt).
Write another python script, which reads independence2.txt as an input, decodes the content of independence2.txt, and outputs the decoded content to another file, indepdence3.txt.
Please include screenshots for your outputs.
independence.txt file is:
|
We the People of the United States, in Order to form a more perfect Union, establish Justice, insure domestic Tranquility, provide for the common defence, promote the general Welfare, and secure the Blessings of Liberty to ourselves and our Posterity, do ordain and establish this Constitution for the United States of America. Article. I. Section. 2. No Person shall be a Representative who shall not have attained to the Age of twenty five Years, and been seven Years a Citizen of the United States, and who shall not, when elected, be an Inhabitant of that State in which he shall be chosen. Representatives and direct Taxes shall be apportioned among the several States which may be included within this Union, according to their respective Numbers, which shall be determined by adding to the whole Number of free Persons, including those bound to Service for a Term of Years, and excluding Indians not taxed, three fifths of all other Persons. The actual Enumeration shall be made within three Years after the first Meeting of the Congress of the United States, and within every subsequent Term of ten Years, in such Manner as they shall by Law direct. The Number of Representatives shall not exceed one for every thirty Thousand, but each State shall have at Least one Representative; and until such enumeration shall be made, the State of New Hampshire shall be entitled to chuse three, Massachusetts eight, Rhode-Island and Providence Plantations one, Connecticut five, New-York six, New Jersey four, Pennsylvania eight, Delaware one, Maryland six, Virginia ten, North Carolina five, South Carolina five, and Georgia three. When vacancies happen in the Representation from any State, the Executive Authority thereof shall issue Writs of Election to fill such Vacancies. The House of Representatives shall chuse their Speaker and other Officers; and shall have the sole Power of Impeachment. Section. 3. Immediately after they shall be assembled in Consequence of the first Election, they shall be divided as equally as may be into three Classes. The Seats of the Senators of the first Class shall be vacated at the Expiration of the second Year, of the second Class at the Expiration of the fourth Year, and of the third Class at the Expiration of the sixth Year, so that one third may be chosen every second Year; and if Vacancies happen by Resignation, or otherwise, during the Recess of the Legislature of any State, the Executive thereof may make temporary Appointments until the next Meeting of the Legislature, which shall then fill such Vacancies. No Person shall be a Senator who shall not have attained to the Age of thirty Years, and been nine Years a Citizen of the United States, and who shall not, when elected, be an Inhabitant of that State for which he shall be chosen. The Vice President of the United States shall be President of the Senate, but shall have no Vote, unless they be equally divided. The Senate shall chuse their other Officers, and also a President pro tempore, in the Absence of the Vice President, or when he shall exercise the Office of President of the United States. The Senate shall have the sole Power to try all Impeachments. When sitting for that Purpose, they shall be on Oath or Affirmation. When the President of the United States is tried, the Chief Justice shall preside: And no Person shall be convicted without the Concurrence of two thirds of the Members present. Judgment in Cases of Impeachment shall not extend further than to removal from Office, and disqualification to hold and enjoy any Office of honor, Trust or Profit under the United States: but the Party convicted shall nevertheless be liable and subject to Indictment, Trial, Judgment and Punishment, according to Law. |
In: Computer Science