Questions
Explain equalization,neutralization,proportioning and volume reduction with examples and in details.(50marks) Need own answer and no internet...

Explain equalization,neutralization,proportioning and volume reduction with examples and in details.(50marks)

Need own answer and no internet answers r else i il downvote nd report to chegg.Even a single is wrong i il downvote.its 50marks question so no short answer minimum 10page answer required and own answer r else i il downvote.

Note:Minimum 10page answer and no plagarism r else i il downvote and report to chegg.Minimum 10 to 15page answer required r else dnt attempt.strictly no internet answer n no plagarism.

its 50marks question so i il stricly review nd report

In: Computer Science

With respect to a general multitasking system What mechanism allows operating system routines to get more...

With respect to a general multitasking system

What mechanism allows operating system routines to get more control of the CPU than user tasks?

What are the two states a task can be in while waiting for control of the CPU?

In: Computer Science

Exercise3 Given the following classes: The Holiday class has: Properties of destination (String), duration (int days)...

Exercise3

Given the following classes:

The Holiday class has:

  • Properties of destination (String), duration (int days) and cost (int $).
  • All expected getters and setters.
  • A default constructor
  • A fully parameterised constructor (which takes all properties)
  • A toString method which returns a String showing all the properties.

The TravelAgent class has:

  • Properties of name (String), postcode (String) and holidays (an ArrayList of Holidays) – complete with getters and setters.
  • A parameterised constructor (name and postcode only) which also initialises the holidays ArrayList.
  • A method (addHoliday) which adds a holiday to the Travel Agents list.
  • A toString method which returns a String showing all the properties including details of the Holidays.

(RunTravelAgent.java

public class RunTravelAgent 
{
    public static void main(String[] args)
    {
        Holiday h1 = new Holiday("Bermuda", 2, 800);
        Holiday h2 = new Holiday("Hull", 14, 8);
        Holiday h3 = new Holiday("Los Angeles", 12, 2100);

        TravelAgent t1 = new TravelAgent("CheapAsChips", "MA99 1CU");
        t1.addHoliday(h1);
        t1.addHoliday(h2);
        t1.addHoliday(h3);
        
        TravelAgent t2 = new TravelAgent("Shoe String Tours", "CO33 2DX");
        
        System.out.println(t1);
        
        System.out.printf("h3 Duration=%s days & Cost=$%s\n", h3.getDuration(), h3.getCost());
        System.out.printf("t2 %s %s\n", t2.getName(), t2.getPostcode());
    }
}       

)

Implement these two classes. You are supplied with a test file called RunTravelAgent.java which should produce this output:

CheapAsChips at MA99 1CU

Holiday{destination=Bermuda, duration=2 days, cost=$800}

Holiday{destination=Hull, duration=14 days, cost=$8}

Holiday{destination=Los Angeles, duration=12 days, cost=$2100}

h3 Duration=$12 & Cost =$2100

t2 Shoe String Tours CO33 2DX

In: Computer Science

Two players find themselves in a legal battle over a patent. The patent is worth 20...

Two players find themselves in a legal battle over a patent. The patent is worth 20 for each player, so the winner would receive 20 and the loser 0. Given the norms of the country they are in, it is common to bribe the judge of a case. Each player can secretly oer a bribe of 0, 9 or 20, and the one whose bribe is the largest is awarded the patent. If both choose not to bribe, or if the bribes are the same amount, then each has an equal chance of being awarded the patent. (If a player decides to bribe then the judge pockets it regardless of who gets the patent).

(a) Derive the game matrix.

(b) Is the game dominance solvable? If so, findnd the strategy prole surviving IDSDS.

(c) Now consider the case in which the allowed bribe amounts are instead 0, 9 and 15. Is the game dominance solvable? Find the best responses of each player to each of the pure strategies of the opponent.

In: Computer Science

(Can you answer my question by explaining, I mean that step by step. I don't want...

(Can you answer my question by explaining, I mean that step by step. I don't want a short answer. Be sure to I like it if you write step by step

For Design and Analysis of the Algorithme lecture)

Peak Finding

Implement the 2-D peak finder mentioned and explain the asymptotic complexity of the algorithm.

In: Computer Science

Write a java program to read a string from the keyboard, and count number of digits,...

Write a java program to read a string from the keyboard, and count number of digits, letters, and whitespaces on the entered string. You should name this project as Lab5B.

  • This program asks user to enter string which contains following characters: letters or digits, or whitespaces. The length of the string should be more than 8. You should use nextLine() method to read string from keyboard.

  • You need to extract each character, and check whether the character is a letter or digit or whitespace.

  • You can access character at a specific index using charAt() method. Once you have extracted the character, you can test the extracted character using character test methods.

  • You can look at google/web search to check the methods (isDigit, isLetter, and isSpaceChar) available to test a character. Use the syntax properly in your code.

  • Once you found a match, simply increase the value of the counter by 1. You need 3

    separate counters to count letters, digits, and spaces.

  • In this program, you do not need to worry about uppercase or lowercase letter.

       Sample Output 1
    
       Enter the string: EEEEEEE RRR LLLLLL UUUUUUUUUU
       Number of spaces: 3
       Number of letters: 26
       Number of digits: 0
    

In: Computer Science

# Finds and returns only the even elements in the list u. # find_evens([1, 2, 3,...

# Finds and returns only the even elements in the list u.
# find_evens([1, 2, 3, 4] returns [2, 4]
# find_evens([1, 2, 3, 4, 5, 6, 7, 8, 9, 10] returns [2, 4, 6, 8, 10]
#
u = [1, 2, 3, 4] 
v = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

def find_evens(u):
    return None  # Replace this with your implementation
 
print('Testing find_evens')
print(' find_evens(u): ' + str(find_evens(u)))
print(' find_evens(v): ' + str(find_evens(v)))
print()

Making code using recursion function

In Python

In: Computer Science

explain industrial wastewater treatment,strength reduction,suggested treatment methods and with diagram.(50marks) Need own answer and no internet...

explain industrial wastewater treatment,strength reduction,suggested treatment methods and with diagram.(50marks)

Need own answer and no internet answers r else i il downvote nd report to chegg.Even a single is wrong i il downvote.its 50marks question so no short answer minimum 10page answer required and own answer r else i il downvote.

Note:Minimum 10page answer and no plagarism r else i il downvote and report to chegg.Minimum 10 to 15page answer required r else dnt attempt.strictly no internet answer n no plagarism.

its 50marks question so i il stricly review nd report

In: Computer Science

Paula and Danny want to plant evergreen trees along the back side of their yard. They...

Paula and Danny want to plant evergreen trees along the back side of their yard. They do not want to have an excessive number of trees. Write a program that prompts the user to input the following:

The length of the yard.

The radius of a fully grown tree.

The required space between fully grown trees.

The program outputs the number of trees that can be planted in the yard and the total space that will be occupied by the fully grown trees.

In: Computer Science

1.What are the THREE (3) types of CSS? a) Internal, External and Online Style Sheets b)...

1.What are the THREE (3) types of CSS?

a) Internal, External and Online Style Sheets

b) Embedded, Outsider and Inline Style Sheets

c) Embedded, Linking and Inline Style Sheets

2. The width, src and border are examples of an ______. *

a) entity

b) element

c) attribute

d) operation

d) Internal, External and Inline Style Sheets

3. Which of the following codes best represents inserting image from folder named images?

a) <p>Image:</p> <img src="/chrome/images.gif" alt="Google Chrome" width="33" height="32" />

b) <p>Image:</p><img src="file://images/chrome.gif" alt="Google Chrome" width="33" height="32" />

c) <p>Image:</p><img src="/images/chrome.gif" alt="Google Chrome" width="33" height="32" />

d) <p>Image:</p><img src="folder: images image file name: chrome.gif" alt="Google Chrome" width="33" height="32" />

4.Which of the following is the CORRECT HTML tag to start JavaScript?

a) <script>

b) <js>

c) <javascript>

d) <scripting>

5. How can you add a comment in JavaScript? *

a) <!--This is a comment-->

b) //This is a comment

c) "This is a comment"

d) <--! This is a comment -->

6. Select the correct HTML statement in referring to an external style sheet.

a) <link rel="stylesheet" type="text/css" href="mystyle.css">

b) <stylesheet>mystyle.css</stylesheet>

c) <style src="mystyle.css">

d) <link rel=”style" type="text/css" href="mystyle.css">

In: Computer Science

Make pesodocode of this code. void loadData() { char line[MAX_LENGTH]; const char * delimiter = ",\n";...

Make pesodocode of this code.

void loadData()
{
char line[MAX_LENGTH];
const char * delimiter = ",\n";
FILE * fp;
fp = fopen("patients.txt", "r");
char c;
if (fp == NULL)
{
printf("file not found");
return;
}
while (fp != NULL)
{
if (fgets(line, MAX_LENGTH - 1, fp) == NULL)
break;
if (line[1] == '\0')
break;
patients[patientCount].id = atoi(strtok(line, delimiter));
strcpy(patients[patientCount].name, strtok(NULL, delimiter));
patients[patientCount].age = atoi(strtok(NULL, delimiter));
patients[patientCount].annualClaim = strtok(NULL, delimiter);
patients[patientCount].plan = atoi(strtok(NULL, delimiter));
strcpy(patients[patientCount].contactNum, strtok(NULL, delimiter));
strcpy(patients[patientCount].address, strtok(NULL, delimiter));
strcpy(line, "\0");
patientCount++;
}
fclose(fp);
fp = fopen("claims.txt", "r");
int claimCount = 0;
while (fp != NULL)
{
if (fgets(line, MAX_LENGTH - 1, fp) == NULL)
break;
if (line == "\n")
break;
claims[claimCount].id = atoi(strtok(line, delimiter));
claims[claimCount].claimedYear = atoi(strtok(NULL, delimiter));
claims[claimCount].amountClaimed = atoi(strtok(NULL, delimiter));
claims[claimCount].remaininigAmount = atoi(strtok(NULL, delimiter));
strcpy(line, "\0");
claimCount++;
}
fclose(fp);
}
int menu()
int ch;
do {
system("cls");
printf("Select one of the below option to continue\n");
printf("1-Insurence Plan Subscription\n");
printf("2-Claim Processing\n");
printf("3-Accounts Information\n");
printf("4-Searching Functionalities\n");
printf("5-Exit\n");
scanf("%d", & ch);
} while (ch > 5 || ch < 1);
return ch;
}
int main()
{
int ch;
loadData();
do {
ch = menu();
if (ch == 1)
subscribe();
else if (ch == 2)
claimProcess();
else if (ch == 3)
accountInfo();
else if (ch == 4)
searchingFunctionalities();
else
break;
} while (ch != 5);
system("pause");
return 0;
}

In: Computer Science

NoSQL databases can store relationship data—they just store it differently than relational databases do. How would...

NoSQL databases can store relationship data—they just store it differently than relational databases do. How would you describe the differences between a relational database and a NoSQL database? What do you see as the business advantages that a NoSQL database has over a relational database?

In: Computer Science

Describe an aspect of your everyday life that has been touched by Big Data and/or Business...

Describe an aspect of your everyday life that has been touched by Big Data and/or Business Intelligence Systems. Be sure to include your thoughts on the advantages or challenges you feel Big Data poses for modern data driven businesses.

In: Computer Science

bifurcation diagram for 1000 iterations code with graf in pythone

bifurcation diagram for 1000 iterations code with graf in pythone

In: Computer Science

Question 1: Car Dealership Scenario. Complete parts A – D based on the database specifications listed...

Question 1: Car Dealership Scenario. Complete parts A – D based on the database specifications listed below.

Database Specification

  • Car Dealerships have a unique business id number, dealership name, city, state, and a unique website URL. The business id is a number in the range from 1000-9999.
  • Salespersons have a first name, last name, age, gender, and a unique employee id number. The employee number is in the range 100-999.
  • Customers have a first name, last name, city, state, gender, age, and a unique taxpayer id number. The taxpayer id number is 9 digits.
  • Cars have a make, model, year, suggested price, and a unique vehicle id number. A car can have (possibly multiple) colors that should be modeled as an attribute. Note: the make of a car is the manufacturer (e.g., Ford, Honda, BMW) and the model is the name of the model (e.g. Civic, Accord, CRX).
  • Salespersons work for dealerships. In order to be in the database, a salesperson must work for a dealership. However, a dealership may exist in the database without any salespersons. Dealerships have many salespersons who work for them, and a salesperson may work for many different dealerships. The database should record the start date when a salesperson began working for a dealership.
  • Dealerships own cars. A dealership may own many cars, or they may be completely out of inventory and own zero cars. A car can only be owned by one dealership, and must be owned by a dealership in order to be in the database. The database should record the date that the dealership acquired the car and the price that the dealership paid for the car.
  • Salespersons sell cars to customers. Even if a salesperson has not sold any cars to customers they should still be stored in the database. However, the database should only store information about customers who have purchased a car from a salesperson. Information about cars owned by dealerships should be stored in the database regardless of whether they have been sold or not. A salesperson may sell a particular car to only one customer. Similarly, a customer may purchase a particular car from only one salesperson. However, a customer may purchase more than one car from the same salesperson. When a salesperson sells a car to a customer, the sales price and date should be recorded in the database.

Parts A - D

  1. Based on the database specification given above, draw an ER diagram for the database. Include entities, attributes, relationships, cardinality, and participation constraints. The ER diagram should accurately reflect the specifications.  Clearly state any assumptions.

  1. Map your ER diagram to relations. Make sure to represent the relations, attributes, primary keys, and foreign keys.

  1. Implement your database. Based on your ER and relation diagrams, create tables, specify primary and foreign keys, and include any other necessary integrity constraints such as checks. Turn in a list of the SQL DDL commands (e.g., create table commands) that you used to create your database.
  1. Populate your database with data. You may do this either by writing SQL insert statements to load data, or by using the data entry or import features of MySQL Workbench. You need to create enough and appropriate data to illustrate that your database works for the queries below. At a minimum, load at least three records for each table. However, you may need to load more records to illustrate that particular queries work correctly.

  1. Write and run SQL queries in MySQL Workbench for each of the queries listed below using your database with the data loaded. In your report, for each query, restate the query in English, then list the SQL query you wrote for it, and finally, list the output from the database in response to the query.

Queries: Write and run SQL queries for the following questions. Use the minimum number of tables required for each query.

  1. List the first and last names of customers over 40 years old who purchased a Ford car.
  2. List the first and last names of salespersons who have NEVER sold a Ford car.
  3. List the total value (suggested price) of all cars owned by the dealership named ‘SILS Car Deals’.
  4. Find the average sales price (actual sales price, not suggested price) of a 2008 Honda Civic.
  5. List the dealership name and the total number of cars that each dealership owns.
  6. List the average age of customers who have purchased a car from salesperson ‘Homer Simpson’.
  7. List the last name, employee id number, and the overall number of cars sold by each salesperson who has sold at least one Honda Civic.
  8. List the names of salespersons who have worked for all the car dealerships.

In: Computer Science