In: Computer Science
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 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 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. 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 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 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:
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. 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 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
In: Computer Science
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
In: Computer Science
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 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
In: Computer Science