Short Verilog Answers: a) (1 pt) What is the purpose of using “reg”? How different is it from “wire”? b) (1 pt) What do you mean by blocking and non-blocking statements in Verilog? How are assignments done in blocking and non-blocking statements? c) (2 pts) Given the logic circuit as follows, use Data Flow Modelling to design this circuit using Verilog.
In: Computer Science
class A
{
public:
//constructors //
other members private:
int a;
int b;
};
Give declatations of operator functions for each of the following ways to overload operator + You must state where the declatation goes, whether within the class in the public or private section or outside the class. The operator + may be overloaded. a) as friend function b) as member function c) as non-friend, non-member function
In: Computer Science
How many grams of glucose, C6H12O6, must be dissolved into 394.7 g of water at 100°C to reduce the pressure of water above the solution to 686.4 mm Hg? The solute is a non-volatile compound.How many grams of glucose, C6H12O6, must be dissolved into 394.7 g of water at 100°C to reduce the pressure of water above the solution to 686.4 mm Hg? The solute is a non-volatile compound.
In: Chemistry
Draw the class diagram of University; University (name and location etc) is maintaining the student affairs, faculty or non-faculty record, student record, hostel management, route management etc. University has a chancellor and different departments. Faculty and non-faculty members are the part of each department. Minimum 2 or 3 attributes and operations of each class. Show the cardinality or multiplicity constraints as well.
In: Computer Science
Project Outcomes:
Develop a python program that uses:
decision constructs
looping constructs
basic operations on an list of objects (find, change, access all
elements)
more than one class and has multiple objects
Project Requirements:
1. Develop a simple Hotel program. We will have two classes, a
Hotel class
representing an individual hotel and a Room class. The Hotel class
will contain several
Room objects and will have several operations. We will also have a
driver program to test
the Hotel class.
2. Build a Hotel class that will store information about a Hotel.
It will include a name and
location. It should also include a list of class Room to hold
information about each
room. It will also have a int called occupiedCnt that keeps track
of how many rooms in
the hotel are occupied.
Specific Requirements for the Hotel Class:
1. The Hotel class has two constructors
1. __init__ function, will read in the hotel name and location from
hard-coded
values in the tester class, such as Beach Marriot Pensacola, it
will also assign
numOfRooms to zero. numOfRooms indicates how many rooms
are in the hotel.
It will create a 10 element array.
2. The Hotel will have an addRoom method that will create each
room with the required
information: room number, bed type, smoking/non-smoking, and the
room rate. Create at
least 5 rooms with different characteristics. Each room will also
have a boolean field
called occupied attribute that will be set to false when the room
is created. Don't forget
to increment the numOfRooms instance variable. Example
values for the rooms are:
101 queen s 100
102 king n 110
103 king n 88
104 twin s 100
105 queen n 99
3. The UML class diagram for the Hotel class will look like
this:
Hotel
theRooms: Array Room[]
name: String
location: String
occupiedCnt: int
numOfRooms: int
def __init(self)__(String,String)
def isFull(self) : boolean
def isEmpty(self) : boolean
def addRoom(self ,roomnumber,bedtype,smoking,price)
def addReservation(self,occupantName ,smoking,
bedtype)
def cancelReservation(self,occupantName)
def findReservation(self,occupantName):
def printReservationList(self)
def getDailySales(self) :
def occupancyPercentage(self) :
Setters and getters methods for name and location.
4. isFull() – returns a boolean that is true if all the rooms in
the hotel are occupied.
5. isEmpty() – returns a boolean that is true if all the rooms in
the hotel are unoccupied.
6. The addReservation() method takes three parameters: the
occupant’s name
(String), smoking or non-smoking request (char), and the requested
bed type (String).
When this method is called, the hotel will search the list of its
rooms for one that matches
the bed type and smoking/non-smoking attributes. If an unoccupied
room with the correct
attributes is found, the renter's name will be set and the
occupied attribute will be set
to true. In either case a message will be printed that will state
whether or not the
reservation was made.
7. When the cancelReservation() method executes, the hotel will
search for the
name of the visitor in each room. If it is found, the occupied
attribute will be set to false.
In either case a message will state whether or not the reservation
was cancelled. This
method calls the private utility method findReservation()to scan
the list of rooms
looking for a guest by name. It will return the index of the room
in the Array of rooms
or NOT_FOUND if the room is not found, which will be declared
as:
NOT_FOUND = -1;
8. findReservation() will take in a String representing the
occupant’s name and
search the occupied rooms for a reservation with that person’s
name. It will return the
index of the room or NOT_FOUND if not found.
9. printReservationList() will scan through all the rooms and
display all details
for only those rooms that are occupied. For example:
Room Number: 102
Occupant name: Pinto
Smoking room: n
Bed Type: king
Rate: 110.0
Room Number: 103
Occupant name: Wilson
Smoking room: n
Bed Type: king
Rate: 88.0
10. getDailySales() will scan the room list, adding up the dollar
amounts of the room
rates of all occupied rooms only.
11. occupancyPercentage() will divide occupiedCnt by the total
number of rooms to
provide an occupancy percentage.
12. __str__ – returns a nicely formatted string giving hotel and
room details (by calling
the __str__ in the Room class) for all the rooms in the hotel. For
example:
Hotel Name : Beach Marriot
Number of Rooms : 5
Number of Occupied Rooms : 1
Room Details are:
Room Number: 101
Occupant name: Not Occupied
Smoking room: s
Bed Type: queen
Rate: 100.0
Room Number: 102
Occupant name: Coffey
Smoking room: n
Bed Type: king
Rate: 110.0
Room Number: 103
Occupant name: Wilson
Smoking room: n
Bed Type: king
Rate: 88.0
Room Number: 104
Occupant name: Not Occupied
Smoking room: s
Bed Type: twin
Rate: 100.0
Room Number: 105
Occupant name: Not Occupied
Smoking room: n
Bed Type: queen
Rate: 99.0
13. The Room class diagram will look like this:
Room
roomNum: int
bedType: String
rate: double
occupantName: String
smoking: char
occupied: boolean
def __init__(int,String,char,double)
def getBedType(): String
def getSmoking():
char
def getRoomNum(): int
def getRoomRate(): double
def getOccupant(): String
def setOccupied(boolean)
def setOccupant(String)
def setRoomNum(int)
def setBedType(String)
def setRate(double)
def setSmoking(char)
def isOccupied(): boolean
1. The __init__() for a Room takes an int (room number), String
(bed type), char (s or n for
smoking or non-smoking)), and a double (room rate).
2. isOccupied() method returns true if the room is occupied, false
otherwise.
3. __str__() provides all the details of a room - room number,
name of guest(if
occupied) , bed type, smoking/non-smoking, rental rate. This should
all be formatted
nicely with one attribute on each line using the
'\n' escape character. See example above.
4. Several accessor and mutator methods for the Room class.
# Use list to store the room details.
You have to store required data in the list/database. You can store
hotel name, address, and
all rooms. Customer data in database tables.
In: Computer Science
We want to provide home-delivery service to our customers.
Select one:
a. Business Requirement
b. User/Stakeholder Requirement
c. Functional Requirement
d. Non-Functional Requirement
Clear my choice
Question 6
Not yet answered
Marked out of 0.50
Flag question
Question text
The system must use 128-bit encryption techniques to store data.
Select one:
a. Business Requirement
b. User/Stakeholder Requirement
c. Functional Requirement
d. Non-Functional Requirement
Clear my choice
Question 7
Not yet answered
Marked out of 0.50
Flag question
Question text
The Chief Financial Officer needs to know when overdue payments are reaching unsustainable levels.
Select one:
a. Business Requirement
b. User/Stakeholder Requirement
c. Functional Requirement
d. Non-Functional Requirement
Clear my choice
Question 8
Not yet answered
Marked out of 0.50
Flag question
Question text
The system needs to record the date and time when the order is paid-for.
Select one:
a. Business Requirement
b. User/Stakeholder Requirement
c. Functional Requirement
d. Non-Functional Requirement
Clear my choice
Question 9
Not yet answered
Marked out of 0.50
Flag question
Question text
We want to know when there is an increase in the number of customers coming from particular towns where we don’t have a physical shop in the town.
Select one:
a. Business Requirement
b. User/Stakeholder Requirement
c. Functional Requirement
d. Non-Functional Requirement
Clear my choice
Question 10
Not yet answered
Marked out of 0.50
Flag question
Question text
The Deliveries Supervisor will be able to see the number of orders that are waiting to be sent in a delivery truck, on their main screen at all times.
Select one:
a. Business Requirement
b. User/Stakeholder Requirement
c. Functional Requirement
d. Non-Functional Requirement
Clear my choice
Question 11
Not yet answered
Marked out of 0.50
Flag question
Question text
The on-screen font size and default font face should be adjustable to suit each user's personal preference.
Select one:
a. Business Requirement
b. User/Stakeholder Requirement
c. Functional Requirement
d. Non-Functional Requirement
Clear my choice
Question 12
Not yet answered
Marked out of 0.50
Flag question
Question text
When the 'pay now' button is clicked, the customer’s credit card must be charged the full amount.
Select one:
a. Business Requirement
b. User/Stakeholder Requirement
c. Functional Requirement
d. Non-Functional Requirement
In: Computer Science
Kako Ltd is considering introducing a new product unto
the market. This will require the injection of capital to the tune
of GH¢20,000 for the purchase of the equipment for production. The
cost of the building that Kako Ltd intends to use for the project
is GH¢30,000. The Production and Marketing department has presented
the information in the table below:
2019
Variable cost per unit of the product
GH¢2
Selling price per unit
GH¢6
Quantity
4000 units per annum
Again the following information should be taken not
of:
Feasibility studies cost the company GH¢2000
Test marketing expenses amounts to GH¢3000
Variable cost will increase by 5% per annum
Selling price will increase by 10% per annum
Marketing expense will be 5% of sales revenue per
year
An initial working capital investment of GH¢2000 will
be made. Subsequently, net working capital at the end of each year
will be equal to 10 percent of sales for that year. In the final
year of the project, net working capital will decline to zero as
the project is wound down. In other words, the investment in
working capital is to be completely recovered by the end of the
project’s life
As a result of the introduction of the new product,
sales of existing products will drop by 1000 units per annum. The
selling price per unit of existing products is GH¢5 while the
variable cost is GH¢ 4.
Overhead cost will be fixed at GH¢6000 per
year
The project will last for five years (2019-2023) and
the machines will be sold for a scrap value of GH¢2000
Charge depreciation using the straight line
method
CPC falls within the 25% tax bracket
The project cost of capital is 15%
Required:
Evaluate the project
using NPV and advise the Management of Kako Ltd whether or not it
should introduce the new product
In: Accounting
Assume that the regression line for the New York City murder rate per 100,000 residents between 2000 and 2010 is given by y=−0.24x+488.7, where x is the year and y is the murder rate. Interpolate to get an approximate value for the rate in 2006. Round your answer to one decimal place.
Interpolated rate
The table below shows the murder rate per 100,000 residents for a large American city over a twelve-year period.
|
Year |
2000 |
2001 |
2002 |
2003 |
2004 |
2005 |
2006 |
2007 |
2008 |
2009 |
2010 |
2011 |
|
Rate |
8.8 |
7.1 |
7.2 |
6.8 |
6.4 |
7.1 |
5.8 |
6.1 |
5.4 |
6.2 |
6.1 |
4.9 |
|
Enter the coefficients of the regression line for this data, rounding each to two decimal places: |
||||
|
Slope: |
Intercept: |
|||
|
Use your regression line (with rounded coefficients) to estimate this city’s murder rate in 2012. Round your answer to the nearest tenth. |
||||
|
Estimate: |
||||
The table below shows per capita cheese consumption, in pounds, for several years for one American state.
|
Year |
2000 |
2001 |
2002 |
2003 |
2004 |
2006 |
2007 |
2008 |
2009 |
|
Cheese Consumed |
26.1 |
26.8 |
28.2 |
28.8 |
29.8 |
29.6 |
31 |
30.8 |
32.1 |
Which of the following is the equation of the regression line
for this data?
A. y=−0.595x+1163.4
B. y=1163.4x−0.595
C. y=0.595x−1163.4
D. y=0.595x+1163.4
E. y=1163.4x+0.595
F. y=−0.595x−1163.4
|
Using the regression line, estimate the per-capita consumption in 2005 to the nearest tenth of a pound. |
||||
|
Estimate: |
||||
|
Did you just perform interpolation or extrapolation? |
||||
Would you expect the regression line for the price of a camera
vs. the number sold to slope up or down, or would it be
pretty much horizontal?
A. up
B. down
C. horizontal
In: Statistics and Probability
1.A study was done to determine whether there is a relationship between snoring and the risk of heart disease. Among 1,105 snorers in the study, 86 had heart disease, while only 29 of 1,379 nonsnorers had heart disease.
(a)Determine a 95% confidence interval that estimates p1 − p2 = difference in proportions of snorers and nonsnorers who have heart disease. (Let p1 be the proportion of snorers and p2be the proportion of nonsnorers. Round your answers to three decimal places.)
2.In a certain survey, a question asked is whether a respondent favors or opposes capital punishment (the death penalty) for persons convicted of murder. The output for this exercise compares the proportions who said that they were opposed to the death penalty in the year 2000 and the year 1993.
| Sample | X | N | Sample p |
| 2000 | 701 | 2685 | 0.261 |
| 1993 | 337 | 1488 | 0.226 |
Estimate for p(1) - p(2): 0.035
(a) Find the value of s.e.(p̂1 -
p̂2) = standard error of the difference between
the two sample proportions. (Round the answer to four decimal
places.)
s.e.(p̂1 - p̂2) =
Also, find a 90% confidence interval for the difference between the
population proportions opposed to the death penalty in the years
2000 and 1993. (Round the answers to three decimal places.)
3. In a survey, 95% of n = 348 randomly sampled married men said that they would marry their spouses again if they had it to do all over again. In the same survey, 85% of n = 525 married women said that they would marry their spouses if they had it to do all over again.
Calculate a 95% confidence interval that estimates the difference in proportions of married women and men who would marry their spouse again if they had it to do all over again.(Round your answers to three decimal places.)
In: Statistics and Probability
Can anyone explain all the answer?
1. Horizontal force needed to keep a sled moving along dry (it means not wet) horizontal surface is 10 N. You increase this force up to 20 N. Neglect air resistance. What can you say about character of motion of a sled now?
a. Sled will continue to move with the same speed.
b. Sled will accelerate for a while up to higher speed and then move with constant, higher speed.
c. Sled will accelerate indefinitely.
d. Sled will move with constant speed two times greater than initial.
2. You try to move a refrigerator of weight 2000 N applying force of 500 N. Refrigerator does not move. The force of friction acting of refrigerator is:
a. 2000 N
b. More than 500 N but less than 2000 N
c. Slightly less than 500 N
d. 500 N
e. Zero.
3. A person rides an elevator standing of a bathroom scale (people are doing strange things). Elevator moves up with constant velocity. What will be the reading of a bathroom scale?
a. more than mg
b. mg
c. less than mg
d. zero
4. Some force acts on an object sitting on the horizontal surface and it accelerates. We increase force twice and perform experiment again. If surface is frictionless, the acceleration of an object will increase:
a. Less than two times
b. Exactly twice
c. More than twice
d. Stays the same.
5. An object is sitting at rest on a horizontal table. Which one of Newton’s laws predicts that normal force acting on this object is equal in magnitude and opposite in direction to the force of gravity (weight) acting on this object?
a. First
b. Second
c. Third
d. Law of gravitation.
In: Physics