subject
Mathematics, 14.09.2019 09:30 caromaybelline71

Write a code (in any programming language) that receives two sets a and b and decides whether a b or not: input: m (a positive integer), n (a positive integer), a], a2]., am] (a one dimensional array representing a), bb2], b[n] (a one dimensional array representing b) output: a string "yes" or "no" output example: > > enter m: 3 > enter n: 6 > enter elements of a: 3,6, 8 > enter elements of b: 1,3,4,6,7,8 > > "yes, a is a subset of b" another output example: > > enter m: 4 > > enter n: 5 > > enter elements of a: 3,6,8,9 > > enter elements of b: 1,2,3,6,9 > > "no, a is not a subset of b"

ansver
Answers: 2

Another question on Mathematics

question
Mathematics, 21.06.2019 15:30
Write an equation of a line in slope intercept form that is perpendicular to the line 2x -3y = 12 and passes through the point (2, 6).
Answers: 3
question
Mathematics, 21.06.2019 19:30
Each cookie sells for $0.50 sam spent $90 on baking supplies and each cookie cost $0.25 to make how many cookies does sam need to sell before making a profit formula: sales> cost
Answers: 1
question
Mathematics, 21.06.2019 19:30
Cone w has a radius of 8 cm and a height of 5 cm. square pyramid x has the same base area and height as cone w. paul and manuel disagree on how the volumes of cone w and square pyramid x are related. examine their arguments. which statement explains whose argument is correct and why? paul manuel the volume of square pyramid x is equal to the volume of cone w. this can be proven by finding the base area and volume of cone w, along with the volume of square pyramid x. the base area of cone w is ฯ€(r2) = ฯ€(82) = 200.96 cm2. the volume of cone w is one third(area of base)(h) = one third third(200.96)(5) = 334.93 cm3. the volume of square pyramid x is one third(area of base)(h) = one third(200.96)(5) = 334.93 cm3. the volume of square pyramid x is three times the volume of cone w. this can be proven by finding the base area and volume of cone w, along with the volume of square pyramid x. the base area of cone w is ฯ€(r2) = ฯ€(82) = 200.96 cm2. the volume of cone w is one third(area of base)(h) = one third(200.96)(5) = 334.93 cm3. the volume of square pyramid x is (area of base)(h) = (200.96)(5) = 1,004.8 cm3. paul's argument is correct; manuel used the incorrect formula to find the volume of square pyramid x. paul's argument is correct; manuel used the incorrect base area to find the volume of square pyramid x. manuel's argument is correct; paul used the incorrect formula to find the volume of square pyramid x. manuel's argument is correct; paul used the incorrect base area to find the volume of square pyramid x.
Answers: 3
question
Mathematics, 21.06.2019 19:30
Ariel is working at a meat packing plant for 5 nights a week. her regular wage is $11 an hour. she earns tine and a half for any overtime hours. this week she worked 9 hours of over time .how much will ariel earn for overtime this week ?
Answers: 1
You know the right answer?
Write a code (in any programming language) that receives two sets a and b and decides whether a b or...
Questions
question
Physics, 05.06.2020 04:02
question
Biology, 05.06.2020 04:02
Questions on the website: 13722367