according to a study conducted by the grade 12 student, php 175 is the average monthly expenses for cell phone loads of high school students in their province.aA statistics students claim that this amount has increased since January of this year .do you think his claim is acceptable if a random sample of 50 students has an average monthly expense of php164 for cellphone loads ? using 5% level of significance , assume that a population standard deviation is 53
A theatre sells seats for shows and needs a system to keep track of the seats they have sold tickets for. Define a class for a type called ShowTicket. The class should contain private member variables for the row, seat number and whether a ticket has been sold or not. Your class should include the following member functions: • a default constructor that initialises the row and seat number to 0 and the sold status to false • an overloaded constructor which accepts as arguments the row and seat number and sets the sold status to false • a member function to check if the ticket has been sold • a member function to update the ticket status to sold • a member function to print the row, seat number and sold status • a destructor. Embed your class definition in a test program which creates some ShowTicket objects, set some tickets as sold, and prints each of them out.
Explain the term ‘opportunity cost’.
8. Let A be a ring #= 0. Show that the set of prime ideals of A has minimal ele-
ments with respect to inclusion.
7. Let A be a ring in which every element x satisfies xn = x for some n > 1
(depending on x). Show that every prime ideal in A is maximal.
6. A ring A is such that every ideal not contained in the nilradical contains a non-
zero idempotent (that is, an element e such that e2 = e #= 0). Prove that the
nilradical and Jacobson radical of A are equal.
4. In the ring A[x], the Jacobson radical is equal to the nilradical.
1. Let x be a nilpotent element of a ring A. Show that 1 + x is a unit of A. Deduce
that the sum of a nilpotent element and a unit is a unit.
Write a program to remove unnecessary blanks from a text file. Your program should read the text file and copy it to another text file, but whenever more than one blank occurs consecutively, only one blank should be copied to the second file. The second file should be identical to the first file, except that all consecutive blanks have been replaced by a single blank.
Write a program that initialises a vector with the following string values: “what” “book” “is” “that” “you” “are” “reading”. Display the contents of the vector on the screen to the user as a question and read in the name of the book the user is reading (you can decide what it will be). Have the program add the name of the book to the vector, word by word. For example, if I am reading “How to learn C++”, the program should add the words, “How” “to” “learn” “C++”, one by one to the vector. Display the new vector.