Questions
--- Note: to save time, write the code directly on Moodle and make sure to save...

--- Note: to save time, write the code directly on Moodle and make sure to save your code frequently

Write a complete Java code that contain two classes. A GradeBook and a GradeBookTester.

- The GradeBook class contains the followings:

- An array of grades (integer array) declared as a field.

- A constructor that takes an integer value as parameter (len), and creates the grades array of size equals to len.

- A method called fillArray that fills the grades array with random integers. Acceptable values are between 1 and 100 (inclusive)

- A method called printStatistics that prints 4 values: the average of the grades, the minimum grade, the maximum grade, and the median grade (the middle value of the sorted array).

- The GradeBookTester contains the main and do the followings:

- Uses the input dialog to ask the user to enter an integer value (assume that the user will enter a value that is non-zero and positive / no need to check)

- creates an object of GradeBook class while passing the entered value as parameter.

- calls the functions fillArray and printStatistics for testing.

In: Computer Science

Write a program in which a ‘Student’ entity is map(structure) having the following attributes: Name EnrollmentNumber...

  1. Write a program in which a ‘Student’ entity is map(structure) having the following attributes:
  • Name
  • EnrollmentNumber
  • CGPA
  • DegreeProgram

Reserve the memory for 2 students at compile time and make a menu which should allow user to add the student data one by one.

use c++ .

In: Computer Science

In a development organization that has the quality records of the software projects it has developed...

In a development organization that has the quality records of the software projects it has developed over the past 20 years, what is/are methods that should be considered first to estimate activity effort and duration. Explain why the methods(s) should be considered first.

In: Computer Science

4. Construct regular expressions for the following languages over the alphabet {a, b}: a. Strings that...

4. Construct regular expressions for the following languages over the alphabet {a, b}: a. Strings that do not begin with an “a”.

b. Strings that contain both aa and bb as substrings.

5. Let ? = {? ?? ?? ? | ? > ? + ?}. a. List all strings of length 7. (use power notation: i.e. aabbbbaaaaaaaa is a2b 4a 8 )

b. Use the Pumping Lemma for Regular Languages to prove that L is not regular.

In: Computer Science

Rock, Paper, Scissors is a two-player game in which each player chooses one of three items....

Rock, Paper, Scissors is a two-player game in which each player chooses one of three items. If both players choose the same item, the game is tied. Otherwise, the rules that determine the winner are: (a) Rock always beats Scissors (Rock crushes Scissors) (b) Scissors always beats Paper (Scissors cut Paper) (c) Paper always beats Rock (Paper covers Rock) Implement function rps() that takes the choice ('R', 'P', or 'S') of player 1 and the choice of player 2, and returns −1 if player 1 wins, 1 if player 2 wins, or 0 if there is a tie. 1

>>> rps('R', 'P') 1

>>> rps('R', 'S') -1

>>> rps('S', 'S') 0

In: Computer Science

Discuss Exercises #1 on page 171: Anne complains that defining functions to use in her programs...

Discuss Exercises #1 on page 171: Anne complains that defining functions to use in her programs is a lot of extra work. She says she can finish her programs much more quickly if she just writes them using the basic operators and control statements. State three reasons why her view is shortsighted. Explain why functions are useful in structuring code in a program.

In: Computer Science

This is t a relational database please write SQL queries to solve the listed questions. The...

This is t a relational database please write SQL queries to solve the listed questions.

The database is a variation of the “Movie Database” . There are several differences in it, so look it over carefully before writing your SQL queries

Notes:

  • TheaterNum, MovieNum, and ActorNum are numeric primary key fields in their respective tables. Movie and actor names are not assumed to be unique unless specified otherwise in a question.
  • In the THEATER table, Capacity is the number of seats in a theater.
  • In the MOVIE table, Year is the year a movie was filmed.
  • The ACTED IN table lists all of the actors who acted in a movie. The Star field can have the values Y (yes) or N (no). Assume there is only one star in each movie.

City

State

Mayor

CITY

TheaterNum

Address

Phone

City

State

Capacity

THEATER

MovieNum

Title

Year

Length

Type

DirName

ProdName

Revenue

MOVIE

TheaterNum

MovieNum

SHOWINGS

DirName

Dir Address

Dir Cell

DIRECTOR

ProdName

Prod Addr

Proc Cell

PRODUCER

ActorNum

ActorName

CurrentAge

PlaceBirth

ACTOR

ActorNum

PreviousJob

PREVIOUSJOB

ActorNum

MovieNum

Star

ACTEDIN

NewsName

City

State

NEWSPAPER

RevName

Years Work

REVIEWER

ReviewNum

Text

Date

MovieNum

NewsName

RevName

REVIEW

Questions

Remember to follow all of the instructions listed on the first page.

1. Which theater(s) in Tennessee have the largest capacity?

2. How many reviews were written for each movie directed by John Carter that were filmed in the period 2014 to 2019

3. List the phone number of every theater in Tennessee. Order the results by theater number.

4. What was the total revenue generated by movies made in 2015 that were both directed by James Smith and produced by Mary Jones?

5. Assume there is only one movie titled, “The Matrix.” Who reviewed it?

6. List the cities in Tennessee that have theaters with capacities of at least 200 seats. List the cities in alphabetic order.

7. Which movies have generated more revenue than the movie directed by John Carter in 2010 that generated the most revenue of the movies he directed that year?

8. Which theaters in Tennessee, Arkansas, or Mississippi (you may use 2-letter abbreviations) showed movies whose titles began with any of the letters R, S, or T? List the theaters in numeric order.

9. Who is the oldest actor who starred in a movie made between 1995 and 2005 that was both directed by James Smith and produced by Mary Jones?

10. What was the total revenue generated by movies produced by each producer from 2010 to 2018 that starred an actor who is currently under 40 years of age? Only include producers whose movies generated more than a total of $75,000,000.

In: Computer Science

Write a program in Cthat asks for an integer y ≥ 0, which represents a year....

Write a program in Cthat asks for an integer y ≥ 0, which represents a year. The program should output “YES” if the y is leap (and “NO” if it is not). A leap year is a year that has 366 days (or February 29), that is a year which is divisible by 4 but, not by 100; in exception if it is divisible by 400.

In: Computer Science

Q3. Convert the conceptual database into a relational database schema. Identify the primary key and foreign...

Q3. Convert the conceptual database into a relational database schema. Identify the primary key and foreign key constraints.

Q4. Show all the functional dependencies that should hold among the attributes.

Q5. Design relation schemas for the database that are each in 3NF. Specify the primary and foreign key attributes of each relation.

Hi expert!

Can you help me with the above questions? I'm not asking you to solve my questions but want to find what each questions actually requires me to show or answer.

In: Computer Science

Suppose that your company has a software system, which was developed based on SOA (Service-Oriented Architectures)...

Suppose that your company has a software system, which was developed based on SOA (Service-Oriented Architectures) Web Services. Later, the system was transformed to REST (Resource-Oriented Architecture) Web-Services based architecture. Assuming no other major architectural element has changed, explain how the following software quality attributes would be affected in details. Discuss whether these quality attributes are positively, neutral or negatively impacted and why

Note: State your assumptions and describe your reasoning in 50-100 words for each answer. The credit can only be granted if your explanation is clear and correct

Testability:
Security:
Performance:
Scalability:
Maintainability:

In: Computer Science

d- What is the purpose of a feasibility study (or feasibility analysis)? e- What is one...

d- What is the purpose of a feasibility study (or feasibility analysis)?

e- What is one advantage and one disadvantage of a centralized database compared to a distributed database?

f- What is the deletion anomaly problem that databases try to avoid?

g- One problem that good database designs try to solve is the "data insertion problem." What is the data insertion problem?

In: Computer Science

Briefly explain logic gates and various gates used in digital logic design.

  1. Briefly explain logic gates and various gates used in digital logic design.

In: Computer Science

You are the senior system administrator in your company and are known for your Active Directory...

You are the senior system administrator in your company and are known for your Active Directory expertise. Your specialty is Group Policy Objects (GPO) and tracking changes. Your boss tells everyone about a tool developed by Microsoft called “Policy Analyzer” for tracking changes and troubleshooting GPO. He would like you to conduct a “lunch and learn” about Policy Analyzer for your Windows Administration Team. You realize that the product’s name has been changed to “Microsoft Security Configuration Toolkit”. Diplomatically conduct the lunch and learn and discuss the history of the tool, the name change, the features of the product and the benefits to your Windows Administration team in managing GPO.

A minimum of two references is required one of which can be your textbook.

<Insert your 1-2 page Lunch and Learn document with references cited in APA format>

Textbook info

Windows Server 2016 Administration Fundamentals

ISBN: 9781788626569

please provide a full new answer

In: Computer Science

Create a PL/SQL block to retrieve and display data for all pledges made in a specified...


Create a PL/SQL block to retrieve and display data for all pledges made in a specified month. One row of output
should be displayed for each pledge. Include the following in each row of output:
  
- Pledge ID, donor ID, and Pledge Amount
- If the pledge is being paid in a lump sum, display "LUMP SUM".
- If the pledge is being paid in monthly payments, display "Monthly - #" (With the # representing the number
of months for payment).

In: Computer Science

Shapes2D Write the following four classes to practice using an abstract class and polymorphism. Submit all...

Shapes2D
Write the following four classes to practice using an abstract class and polymorphism. Submit all four classes.

Shape2D class
For this class, include just an abstract method name get2DArea() that returns a double.

Rectangle2D class
Make this class inherit from the Shape2D class. Have it store a length and a width as fields. Provide a constructor that takes two double arguments and uses them to set the fields. Note, the area of a rectangle is the length times the width.

Circle2D class
Also make this class inherit from the Shape2D class. Have it store a radius as a field. Provide a constructor that takes a double argument and uses it to set the field. Note, the area of a circle is PI times it's radius times it's radius.

Shape2DDriver class
Have this class provide a method named displayName() that takes an object from just any of the above three classes (you can't use an Object type parameter). Have the method display the area of the object, rounded to one decimal place.

In: Computer Science