A cinema knows near a university knows that there are two types of consumers: regular people and students. Ordinary people have an aggregate demand curveof? = 10−p/3 while students have an aggregate demand curve of? = 10–2p/3. The marginal cost of the cinema is zero.
a) Suppose students can be separated from other people by their student id, and the cinema charges each group of consumers a different price. What prices would the cinema charge?
b) Suppose the cinema cannot price discriminate. What would be the market price and quantity sold to each group of customers?
c) How much does the cinema gain from price discrimination?
Please show the process to the solution
In: Economics
A student group believes that less than 50% of students find their college experience extremely rewarding. They decide to test this hypothesis using a significance level of .05. They conduct a random sample of 100 students and 34 say they find their college experience extremely rewarding.
Based on the type of test this is (right, left, or two-tailed); determine the following for this problem.
4. Critical Value(s): _______________________
5. P-value Table A.3 _______________________ P-value Calculator:________________
P-value Table A.2 _______________
6: Can you reject? _______________________
7. Conclusion: Can we conclude or can we not conclude less than 50% of students find their college experience extremely rewarding? (write the conclusion in a sentence)
In: Math
Randomly selected students participated in an experiment to test their ability to determine when one minute (or sixty seconds) has passed. Forty students yielded a sample mean of 61.6 seconds. Assuming that sigma equals8.7 seconds, construct and interpret a 90 % confidence interval estimate of the population mean of all students. Click here to view a t distribution table. LOADING... Click here to view page 1 of the standard normal distribution table. LOADING... Click here to view page 2 of the standard normal distribution table. LOADING... What is the 90 % confidence interval for the population mean mu ? nothing less thanmuless thannothing (Type integers or decimals rounded to one decimal place as needed.)
In: Math
Regents of a large state university proposed a plan to increase student fees in order to build new parking facilities. A news channel claims that over 70% of the students are opposed to the plan. We wish to test this claim. A random sample of 18 students is taken and 17 of them are opposed to the plan.
A- state the null and alternative hypothesis?
B- estimate the population proportions of students that are opposed to the plan?
C- finding the corresponding standard error for the estimate in part to B and use this standard error to provide an interval estimate for the population proportion with 95% confidence?
D-Calculate the test stastic and provide the p-value for testing the hypothesis. show all work?
E- give a one sentence conclusion in the contexet of this problem?
In: Math
Program Requirements:
This assignment requires you to create one program in
Java to simulate a Point-of-Sale (POS) system. The
solution must be in JAVA language.
You create the main program called POSmain.java and two classes:
ShoppingCart and CashRegister.
Your POSmain program should take three file names from command line
arguments. The first file contains a list of products and their
prices; the second and third files are lists of items in two
shopping carts of two customers. The POSmain program should first
read the price file, then read each of the cart files to load a
list of items in a shopping cart and store them in a ShoppingCart
objects. The price file may contain a variable number of products
and the cart files may contain a variable number of items.
POSmain then will create a CashRegister object by passing the price
list to it. The POSmain program then will use the CashRegister
object to scan items in a cart and print a receipt for each
shopping cart one by one. At last, POSmain will use the
CashRegister object to print a report for the day.
The students will the report for the day, which requires design of
your CashRegister class.
cart1.txt:
TV
Table
Table
Bed
Bed
Chair
Chair
Chair
Chair
cart2.txt:
Milk
Butter
Tomato
Tomato
Tomato
Tomato
Tomato
Onion
Onion
Onion
Lettuce
Milk
Ham
Bread
Bread
price.txt:
TV
999.99
Table 199
Bed 499.99
Chair 45.49
Milk 3.00
Butter 2.84
Tomato 0.76
Onion 0.54
Lettuce 1.00
Ham 2.50
Bread 1.75
Program Output:
One customer is checking out ...
========================================
Product Price Qty Subtotal
----------------------------------------
Bed $499.99 2 $999.98
Char $45.49 4 $181.96
TV $999.99 1 $999.99
Table $199.0 2 $398.0
-------------------------
Total $2579.93
========================================
One customer is checking out ...
========================================
Product Price Qty Subtotal
----------------------------------------
Bread $1.75 2 $3.5
Butter $2.84 1 $2.84
Ham $2.5 1 $2.5
Lettuce $1.0 1 $1.0
Milk $3.0 2 $6.0
Onions $0.54 3 $1.62
Tomato $0.76 5 $3.8
-------------------------
Total $21.26
========================================
Report for the day
========================================
Number of customers: 2
Total sale: $2601.19
List of products sold:
----------------------------------------
Product Qty
----------------------------------------
Bed 2
Bread 2
Butter 1
Char 4
Ham 1
Lettuce 1
Milk 2
Onions 3
TV 1
Table 2
Tomato 5
In: Computer Science
Write a Python program with correct indentation using functions and mainline logic which prompts the user to enter a number, then generates that number of random integers and stores them in a list. It should then display the following data to back to the user:
In: Computer Science
One way to implement a queue is to use a circular linked list. In a circular linked list, the last node’s next pointer points at the first node. Assume the list does not contain a header and that we can maintain, at most, one iterator corresponding to a node in the list. For which of the following representations can all basic queue operations be performed in constant worst time? Justify your answers. Maintain an iterator that corresponds to the first item in the list. Maintain an iterator that corresponds to the last item in the list.
In: Computer Science
Java Generic 2D Linked List Problem
How to convert a 1D linked List into multiple linked lists with sequential values together?
//Example 1: [1,1,2,3,3] becomes [[1,1],[2],[3,3]]
//Example 1: [1,1,2,1,1,2,2,2,2] becomes
[[1,1],[2],[1,1],[2,2,2,2]]
//Example 3: [1,2,3,4,5] becomes [[1],[2],[3],[4],[5]]
public <T> List<List<T>> convert2D(List<T> list) {
// Given a 1D, need to combine sequential values together.
}
In: Computer Science
Please use the Scheme programming language with Dr. Racket to solve a and b below. (Use Scheme and not Python)
Write before–in–list?, which takes a list and two elements of the list. It should return #t if the second argument appears in the list argument before the third argument:
> (before–in–list? '(back in the ussr) 'in 'ussr) #T
> (before–in–list? '(back in the ussr) 'the 'back) #F
The procedure should also return #f if either of the supposed elements doesn't appear at all.
In: Computer Science
Could you please write "linkedlist.cpp" using recursive approach to manage a linked list for the given files below as well as an updated makefile.
// app.cpp
#include <iostream>
#include "linkedlist.h"
using namespace std;
void find(LinkedList& list, char ch)
{
if (list.find(ch))
cout << "found ";
else
cout << "did not find ";
cout << ch << endl;
}
int main()
{
LinkedList list;
list.add('x');
list.add('y');
list.add('z');
cout << list;
find(list, 'y');
list.del('y');
cout << list;
find(list, 'y');
list.del('x');
cout << list;
find(list, 'y');
list.del('z');
cout << list;
find(list, 'y');
return 0;
}
//-------------------
//linkedlist.h
#ifndef _LINKED_LIST_
#define _LINKED_LIST_
#include <ostream>
class LinkedList
{
public:
LinkedList();
~LinkedList();
void add(char ch);
bool find(char ch);
bool del(char ch);
friend std::ostream& operator<<(std::ostream& out,
LinkedList& list);
};
#endif // _LINKED_LIST_
//-------------------------
//makefile
CC = g++
CPPFLAGS = -Wall -g -std=c++11
app: app.o linkedlist.o
app.o: linkedlist.h
linkedlist.o: linkedlist.h
.PHONY: clean
clean: # clean the directory
$(info -- cleaning the directory --)
rm -f *.o
rm -f app
//-----------------------
In: Computer Science