A structure combining information from songs

Assignment Help Mathematics
Reference no: EM13285337

Question 9

A structure combining information from songs and plays can be defined using the following definition:

SongsAndPlaysList == seq SongDetails 

We assume the existence of the following abbreviation:

SongDetails ==  Id × SongName × Artist × AlbumTitle ×  Length × Time × Time × N 

Here, the details of each song consists of: an identifier; a song name; an artist; an album title; the song length; the date it was added; the last time it was played; and the number of times it has been played.

(a) A valid element of SongsAndPlaysList will: ensure that there are no duplicate identifiers and ensure that any 'last played' time is later than

any 'date added' time. Define such a ValidSongsAndPlaysList structure. (b) Define a specific ValidSongsAndPlaysList, songs_and_plays, the values of which are defined by the values of songs and plays of Question 6.

(c) Show how the set comprehensions of Question 7 might be recast as set comprehensions on the sequence of part (b).

(d) Show how the recursive function of Question 8 might be recast as a function that takes a sequence of type seq SongDetails as input.

 

Question 10

You have been informed that the following statements are true:

  • "If the team wins all of its league matches, then the team will win the league."
  • "The team wins the cup if, and only if, the team wins all of its cup matches."

 

Assume that: AC represents "wins all cup matches"; AL represents "wins all league matches"; WC represents "wins the cup"; and WL represents "wins the league".

By using the above, prove each of the following via a proof tree.

(a) AC  Ù AL  => WC Ù WL  ( where AND = Ù)

(b) AC V AL => WC V WL (where V = or)

Each step in your tree should be labelled and justified by a basic introduction or elimination rule from our system.

Reference no: EM13285337

Questions Cloud

What frequency of is heard by the driver of the other car : Two cars are each traveling at 27.0 m/s, and they are approaching each other. What frequency of is heard by the driver of the other car
Explain what volume of na3po4 is required to precipitate : What volume of 0.250 M Na3PO4 is required to precipitate all the lead(II) ions from 180.0 mL of 0.550 M Pb(NO3)2
Calculate the power intercepted by the microphone : A certain loudspeaker (assumed to be a point source ) emits 30.0 W of sound power. Calculate the power intercepted by the microphone
Schedule of interest revenue and bond discount amortization : On January 1, 2013, Phantom Company acquires $312,100 of Spiderman Products, Inc., 9% bonds at a price of $296,847. The interest is payable each December 31, and the bonds mature December 31, 2015. The investment will provide Phantom Company a ..
A structure combining information from songs : A structure combining information from songs and plays can be defined using the following definition: (a) A valid element of SongsAndPlaysList will: ensure that there are no duplicate identifiers and ensure that any 'last played' time is later than
Explain the n2o3 undergoes complete : A sample of N2O3 (g) has a pressure of 0.017 atm. The temperature of (in K) is then doubled and the N2O3 undergoes complete
What was the change in the direction of the velocity : A plane is flying in the horizontal plane. At time t1 = 0 s with the components of its velocity are vx = 100 m/s and vy = 120 m/s. What was the change in the direction of the velocity
Calculate sending and voltage-current and voltage regulation : The line transfer parameters are : A=D=0.9; B=j200 & C=j0.002. a0. Calculate the sending and voltage , current and voltage regulation. using the line loadability equation, calculate the line surge impedance loading ' SIL" and the normal operating ..
Explain aluminum when the reaction proceeds with yield : How many grams of alum can be obtained from 20.0 g of aluminum when the reaction proceeds with 100% yield? How many grams of alum would be obtained if the reaction were to proceed with 80.0% yield

Reviews

Write a Review

Mathematics Questions & Answers

  How many milliliters of compound a are needed

ompounds only: compound A and compound B. To make this drug, parts of compound A are used for every parts of compound B. If a chemist wants to make milliliters of this drug, how many milliliters of compound A are needed?

  Linear systems of equations with matrices

From the following augmented matrix, first write the system of equations that represents the augmented matrix and then create a real-world word problem that would represent these equations and their unknowns.

  Find an equation of a rational function f that satisfies

Find an equation of a rational function f that satisfies the given conditions.

  Statement in symbolic form

Write the statement in symbolic form (Let p: The tent is pitched. q: The bonfire is burning. #40, The bonfire is not burning, however the tent is pitched.

  A fast food outlet has an average of cars

A fast food outlet has an average of 8 cars at the drivethrough during "lunch rush" 11am-1pm. On average, 2 cars per min. arrive at the resaurant parking lot, and consider the drivethrough

  How your solutions for a and b be modified

Determine the domain and range of the variables and how your solutions for a and b be modified if y=ax²+bx+c is a revenue function

  What was the average monthly rent in 2005

In spring 2006 the average monthly rent was $1,355, an increase of 3.6percent from 2005. What was the average monthly rent in 2005.

  Calculate the increased odds of chd

Calculate the increased odds of CHD in females who have a family history of CHD & exercise three times per week compared to males who do not exercise & have not family history of CHD.

  Second order differential equation

Convert the nonlinear, second order differential equation to the first order system and solve the differential equation

  What should the overall length and width be

Carl wants to construct three rectangular dog-trainig arenas side-by-side, as shown, using a total of 340 feet of fencing. What should the overall length and width be in order to maximize the area of the three combined arenas?

  Formulate the initial-value problem

Formulate the initial-value problem describing the motion of the object under each of the following sets of conditions. Set x equal to the downward displacement from equilbrium.

  Find modelling the rules of a game

Modelling the Rules of a Game. Alex and Mark are playing a game. The goal is to get to 100. The first player picks a whole number from 1 to 10, inclusive, and then the second player picks a whole number from 1 to 10 and adds it to the score so far..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd