For this assignment, implement and use the methods for a class called Seller that represents information about a salesperson.
The Seller class
Use the following class definition:
class Seller
{
public:
Seller();
Seller( const char [], const char[], const char [], double );
void print();
void setFirstName( const char [] );
void setLastName( const char [] );
void setID( const char [] );
void setSalesTotal( double );
double getSalesTotal();
private:
char firstName[20];
char lastName[30];
char ID[7];
double salesTotal;
};Data Members
The data members for the class are:
firstName holds the Seller's first name
lastName holds the Seller's last name
ID holds the Seller's id number
salesTotal holds the Seller's sales total
Constructors
This class has two constructors. The default constructor (the one that takes no arguments) should initialize the first and last names to "None", the seller ID to "ZZZ999", and the sales total to 0.
The other constructor for the class should initialize the data members using the passed in arguments. It takes 4 arguments: a character array with a Seller's first name, a character array with a Seller's last name, a character array with a Seller's id number, and a double that holds the Seller's sales total. The data members should be initialized by calling the various set methods.
Methods
void print()
This method displays the Seller information. It takes no arguments and returns nothing.
The information should be displayed as follows:
Giant, Andre BIG357 678.53
void setFirstName( const char [] )
This method changes a Seller's first name. It takes one argument: an array of characters that represents the Seller's first name. It returns nothing.
If the length of the passed in argument is greater than 0, it should be used to initialize the firstName data member. Otherwise, the firstName data member should be set to "None".
void setLastName( const char [] )
This method changes a Seller's last name. It takes one argument: an array of characters that represents the Seller's last name. It returns nothing.
If the length of the passed in argument is greater than 0, it should be used to initialize the lastName data member. Otherwise, the lastName data member should be set to "None".
void setID( const char [] )
This method changes a Seller's id number. It takes one argument: an array of characters that represents the Seller's id number. It returns nothing.
If the length of the passed in argument is greater than 0 and less than 7, it should be used to initialize the ID data member. Otherwise, the ID data member should be set to "ZZZ999".
void setSalesTotal( double )
This method changes a Seller's sales total. It takes one argument: a double that represents the Seller's sales total. It returns nothing.
If the passed in argument is greater than or equal to 0, it should be used to initialize the salesTotal data member. Otherwise, the salesTotal data member should be set to 0.
double getSalesTotal()
This method returns a Seller's sales total data member. It takes no arguments.
main()
In main(), create 5 Seller objects. They should contain the values:
The first Seller should have your name, an id of "CSI240", and a sales total of 1234.56. Note: if you're pair programming, set the first name to the first name of both you and your partner: "Jane/John" and the last name to the last name of both you and your partner: "Doe/Doe".
The second Seller should be created using the default constructor (the one that doesn't take any arguments)
The third Seller should have the first name of an empty string (""), a last name of "Robinson", an id of "TOOBIG999", and a sales total of -876.34.
The fourth Seller should have the name "Tarik Cohen", an id of "RUN29", and a sales total of 13579.11
The fifth Seller should have the name "Kyle Long", an id of "TACK75", and a sales total of 24680.24
The rest of main() will include using the various methods on each of the 5 Seller objects. Display a label similar to "The first Seller" before anything is outputted for each of the objects.
For the first Seller, display the Seller information.
For the second Seller, display the Seller information, set the Seller name to "Mitchell Trubisky", set the id number to "QB10", set the sales total to 246.80, and then display the Seller information once again.
For the third Seller, display the Seller's information, set the Seller's first name to "Allen", set the id number to "WIDE12", set the sales total to 9900000.99, and then display the Seller information once again.
For the fourth Seller, display only the Seller's sales total.
For the fifth Seller, display the Seller's information, set the first name to an empty string (""), set the last name to an empty string, set the id number to an empty string, set the sales total to -52.96, and then display the Seller information once again.
Programming Notes
Each method must have a documentation box like a function.
Hand in a copy of the source code using Blackboard.
Output
Note: The information for the first Seller object will have your name.
The First Seller Da Bear, Staley CSI240 1234.56 The Second Seller None, None ZZZ999 0.00 Trubisky, Mitchell QB10 246.80 The Third Seller Robinson, None ZZZ999 0.00 Robinson, Allen WIDE12 9900000.99 The Fourth Seller The sales total is $13579.11 The Fifth Seller Long, Kyle TACK75 24680.24 None, None ZZZ999 0.00
In: Computer Science
Overview
For this assignment, implement and use the methods for a class called Seller that represents information about a salesperson.
The Seller class
Use the following class definition:
class Seller
{
public:
Seller();
Seller( const char [], const char[], const char [], double );
void print();
void setFirstName( const char [] );
void setLastName( const char [] );
void setID( const char [] );
void setSalesTotal( double );
double getSalesTotal();
private:
char firstName[20];
char lastName[30];
char ID[7];
double salesTotal;
};
Data Members
The data members for the class are:
firstName holds the Seller's first name
lastName holds the Seller's last name
ID holds the Seller's id number
salesTotal holds the Seller's sales total
Constructors
This class has two constructors. The default constructor (the one that takes no arguments) should initialize the first and last names to "None", the seller ID to "ZZZ999", and the sales total to 0.
The other constructor for the class should initialize the data members using the passed in arguments. It takes 4 arguments: a character array with a Seller's first name, a character array with a Seller's last name, a character array with a Seller's id number, and a double that holds the Seller's sales total. The data members should be initialized by calling the various set methods.
Methods
void print()
This method displays the Seller information. It takes no arguments and returns nothing.
The information should be displayed as follows:
Giant, Andre BIG357 678.53
void setFirstName( const char [] )
This method changes a Seller's first name. It takes one argument: an array of characters that represents the Seller's first name. It returns nothing.
If the length of the passed in argument is greater than 0, it should be used to initialize the firstName data member. Otherwise, the firstName data member should be set to "None".
void setLastName( const char [] )
This method changes a Seller's last name. It takes one argument: an array of characters that represents the Seller's last name. It returns nothing.
If the length of the passed in argument is greater than 0, it should be used to initialize the lastName data member. Otherwise, the lastName data member should be set to "None".
void setID( const char [] )
This method changes a Seller's id number. It takes one argument: an array of characters that represents the Seller's id number. It returns nothing.
If the length of the passed in argument is greater than 0 and less than 7, it should be used to initialize the ID data member. Otherwise, the ID data member should be set to "ZZZ999".
void setSalesTotal( double )
This method changes a Seller's sales total. It takes one argument: a double that represents the Seller's sales total. It returns nothing.
If the passed in argument is greater than or equal to 0, it should be used to initialize the salesTotal data member. Otherwise, the salesTotal data member should be set to 0.
double getSalesTotal()
This method returns a Seller's sales total data member. It takes no arguments.
main()
In main(), create 5 Seller objects. They should contain the values:
The first Seller should have your name, an id of "CSI240", and a sales total of 1234.56. Note: if you're pair programming, set the first name to the first name of both you and your partner: "Jane/John" and the last name to the last name of both you and your partner: "Doe/Doe".
The second Seller should be created using the default constructor (the one that doesn't take any arguments)
The third Seller should have the first name of an empty string (""), a last name of "Robinson", an id of "TOOBIG999", and a sales total of -876.34.
The fourth Seller should have the name "Tarik Cohen", an id of "RUN29", and a sales total of 13579.11
The fifth Seller should have the name "Kyle Long", an id of "TACK75", and a sales total of 24680.24
The rest of main() will include using the various methods on each of the 5 Seller objects. Display a label similar to "The first Seller" before anything is outputted for each of the objects.
For the first Seller, display the Seller information.
For the second Seller, display the Seller information, set the Seller name to "Mitchell Trubisky", set the id number to "QB10", set the sales total to 246.80, and then display the Seller information once again.
For the third Seller, display the Seller's information, set the Seller's first name to "Allen", set the id number to "WIDE12", set the sales total to 9900000.99, and then display the Seller information once again.
For the fourth Seller, display only the Seller's sales total.
For the fifth Seller, display the Seller's information, set the first name to an empty string (""), set the last name to an empty string, set the id number to an empty string, set the sales total to -52.96, and then display the Seller information once again.
Programming Notes
Each method must have a documentation box like a function.
Hand in a copy of the source code using Blackboard.
Output
Note: The information for the first Seller object will have your name.
The First Seller Da Bear, Staley CSI240 1234.56 The Second Seller None, None ZZZ999 0.00 Trubisky, Mitchell QB10 246.80 The Third Seller Robinson, None ZZZ999 0.00 Robinson, Allen WIDE12 9900000.99 The Fourth Seller The sales total is $13579.11 The Fifth Seller Long, Kyle TACK75 24680.24 None, None ZZZ999 0.00
In: Computer Science
In: Computer Science
Individual Case Study Assignment Part A
BLC Ltd. is a medium-sized UK manufacturing company based in Liverpool.
The company is seeking to expand its operations with the establishment of an office block to house the marketing and human resources staff in Manchester. The company has narrowed the choice to two alternatives with the following net cash flow information being available:
| Year | Property 1 | Property 2 |
| £000s | £000s | |
| 0 | (2,500) | (2,750) |
| 1 | 1,000 | 900 |
| 2 | 500 | 700 |
| 3 | 600 | 800 |
| 4 | 1,000 | 600 |
| 5 | 900 | 700 |
Items to keep in mind:
Required
As the company accountant is currently on holiday, you are required to:
Individual Case Study Assignment Part B
BLC Ltd. has revenue of £500 million and sells all of its goods on credit to a variety of different wholesale customers. At the moment the company offers a standard credit period of 30 days. However, 70% of its customers (by revenue) take an average of 70 days to pay, while the other 30% of customers (by revenue) pay within 30 days. The company is considering offering a 2% discount for payment within 30 days and estimates that 80% of customers (by revenue) will take up this offer (including those that already pay within 30 days).
The Managing Director has asked the credit controller if the cost of this new policy would be worth offering. The company has a £80 million overdraft facility that it regularly uses to the full limit due to the lateness of payment and the cost of this overdraft facility is 15% per annum.
The credit controller also estimates that bad debt level of 2% of revenue would be halved to 1% of revenue as a result of this new policy.
Required
In: Accounting
You have been named the network administrator for a large insurance firm. Your responsibility is to come up with a plan for the network infrastructure, which includes number of servers, network security devices, desktops, laptops and handheld devices. The plan should be carefully crafted to show all the necessary details in deploying the infrastructure (LANs, firewalls, routers, switches, IDS and sensors, servers, database servers, and addressing scheme) including specifics about the configurations. An understanding of the security issues the company is facing in order to conduct its business has to be reflected in the security aspects of the infrastructure (you should justify why a security measure is taken and how it will affect the enterprise business). The insurance firm has ten offices (satellite sites) located in ten different cities around United States. There is the headquarters which is located close to two of the other offices. The enterprise network consists of a main site, a backup site and ten satellite sites. All the satellite sites are connected to the main site as individual networks. The satellite sites are dealing with different specialized type of insurances such as house insurance (3 sites), auto insurance (4 sites) and commercial insurance (3 sites). The sites need to have access to the central database of the firm besides their own databases. Each of the sites has roughly one hundred employees except for the headquarters which has 350. Ten percent of the employees are agents who are actively going out in the field for claims or client recruitment. Given the nature of the business, all the employees require internet access. Email services are required as well. The company uses customized software to interface to the databases and has a web interface for the customer to interact with the company. Each side of the business has its own database, however, the management, which is located at the headquarters, must have access to all the information. The Human Resources department has its own database and so does the payroll department. Each of these departments has a staff of 15 people. Your plans should contain diagrams that describe the networks at the satelite sites, at the headquarters and how they are interconnected, including the backup site. The CTO of the firm has also decided to use virtualization and asked you to look into it. You are supposed to give a detailed plan regarding which portions of the network have to be targeted for virtualization and why. You are also supposed to lay off a plan on how to proceed with this technology and show how it would affect the infrastructure that you have previously designed without using virtualization.
In: Computer Science
The Treadway Commission was concerned about the fraudulent financial reporting that was occurring in the United States. Yet, numerous significant instances of fraudulent financial reporting occurred after publication of the COSO report.
Question: In the context of the five components of internal control cited by the COSO report, discuss what appears to have gone wrong in own words.(Please Note: Position and exceptions, if any, are clearly stated. Organization of the argument is completely and clearly outlined and implemented. Research selected is highly relevant to the argument, is presented accurately and completely – the method, results, and implications are all presented accurately; Theory is relevant, accurately described and all relevant components are included; relationship between research and theory is clearly articulated and accurate. Conclusion is clearly stated and connections to the research and position are clear and relevant. The underlying logic is explicit. Paper is coherently organized and the logic is easy to follow. There are no spelling or grammatical errors and terminology is clearly defined. Writing is clear and concise and persuasive.)
a) Think about the five components of control - control environment, risk assessment, control activities, information & communication, and monitoring.
Limitations on Internal Control
Monitoring the effectiveness of an internal control system should
be a continuous process on the
part of both management and performance auditors. This regular
scrutiny acknowledges that
an internal control system is not fail safe. Too many factors can
impinge on the adequacy of the
controls. For example:
● Controls can quickly become outdated because of changing
organizational conditions.
● Control activities may be strong, but the control environment or
work setting may become
weak.
● Inappropriate controls may be in place. For example, an entity
may be using detection
controls, designed to identify – after the fact – that errors or
irregularities have occurred,
where it would have been better to adopt a prevention control
designed to deter the
possibility of errors or irregularities occurring.
● Too many or too few controls may affect the ability of an agency
to effectively fulfill its
mission.
● Intentional or unintentional staff deviation from prescribed
controls can render a system
useless. Human factors such as boredom, personal problems, or other
distractions can
result in errors.
● Inadequately trained or incompetent employees can reduce the
effectiveness of controls.
● Collusion among employees or managers may nullify the internal
control system.
● No internal control system can provide an absolute guarantee that
errors or irregularities
will not occur. It can only provide reasonable assurance that
management objectives will
be achieved. This assurance can be maintained if (a) management
continuously monitors
the effectiveness of the controls in place, taking into
consideration the costs and benefits
associated with those controls and (b) auditors provide independent
assessments that the
control system is working.
In: Economics
ECO 202 Assessment Problem: In this essay you will be asked to reflect the following issues using the supply and demand model.
1. There are two important inputs in the production of lattes: coffee beans and labor from workers at the coffee shop. a. Workers need to make a decision about how much time to spend working and how much time to spend doing other things. What factors affect the decision of a worker and how do these things affect the price of lattes? Rubric item 1. Demonstrate the knowledge of basic elements and concepts of microeconomics How does the following concepts affect price of lattes Microeconomic factors
1. Opportunity Cost
2. PPF with graph
3. Marginal cost and marginal benefit
4. Comparative advantage and absolute advantage
5. Price controls- price floor,
6. Explain with graph surplus in labor market if minimum wages is above equilibrium wages
7. Benefits, tuition and retirement plans
8. Consumer preferences Rubric item
2. Identify economic resources and their use
a. Natural resources
b. Human resources labor, education, skills
c. Technology
d. Entrepreneurship
b. Suppose a drought strikes the major coffee growing regions of Brazil. Describe the effect of the drought on the price and quantity of lattes in the context of the supply and demand model.
Explain with graph 1. Demand and supply, equilibrium price and output 2. Increase and decrease in demand 3. Increase and decrease in Quantity demanded 4. Increase and decrease in Supply 5. Increase and decrease in Quantity supplied 6. Explain Increase /decrease in supply of coffee beans due to drought with a graph 7. Effect on price and quantity demanded and supplied of coffee beans 8. Are coffee beans and latte complementary goods or substitutes 9. Cross price elasticity definition 10. Effect on price and quantity demanded and supplied of lattes
2. Now consider the local coffee market more broadly. Explain how the output decision made by a particular coffee shop differs under each of the four market structures: competition, monopoly, oligopoly, and monopolistic competition.
3 Differentiate production under pure competition, monopoly, oligopoly and monopolistic competition
1. Draw a graph. Label it and explain all types of costs i. Explain Law of diminishing marginal returns ii. Economies of scale iii. Short run and long run curves 2. In context of local coffee market, explain the features of pure competition, monopoly, oligopoly and monopolistic competition 3. Draw graphs of pure competition, monopoly, oligopoly and monopolistic competition and label it. 4. Discuss the output and price decision under pure competition, monopoly, oligopoly and monopolistic competition and label it.
In: Economics
The Gilster Company, a machine tooling firm, has several plants. One plant, located in St. Falls, Minnesota, uses a job order costing system for its batch production processes. The St. Falls plant has two departments through which most jobs pass. Plantwide overhead, which includes the plant manager’s salary, accounting personnel, cafeteria, and human resources, is budgeted at $300,000. During the past year, actual plantwide overhead was $280,000. Each department’s overhead consists primarily of depreciation and other machine-related expenses. Selected budgeted and actual data from the St. Falls plant for the past year are as follows.
| Department A | Department B | ||||||
| Budgeted department overhead | |||||||
| (excludes plantwide overhead) | $ | 120,000 | $ | 566,500 | |||
| Actual department overhead | 144,000 | 584,500 | |||||
| Expected total activity: | |||||||
| Direct labor hours | 60,000 | 20,000 | |||||
| Machine-hours | 15,000 | 55,000 | |||||
| Actual activity: | |||||||
| Direct labor hours | 61,000 | 19,000 | |||||
| Machine-hours | 15,700 | 57,000 | |||||
For the coming year, the accountants at St. Falls are in the process of helping the sales force create bids for several jobs. Projected data pertaining only to job no. 110 are as follows.
| Direct materials | $ | 22,500 | |
| Direct labor cost: | |||
| Department A (2,600 hr) | 39,000 | ||
| Department B (800 hr) | 10,000 | ||
| Machine-hours projected: | |||
| Department A | 120 | ||
| Department B | 1,200 | ||
| Units produced | 14,000 | ||
a-1. Assume the St. Falls plant uses a single plantwide overhead rate to assign all overhead (plantwide and department) costs to jobs. Find the overhead rate by using expected direct labor hours.
a-2. Determine the projected amount of total manufacturing costs per unit for the units in job no. 110.
b-1. Find the plant wide overhead rate by using expected machine hours.
b-2. Find the department overhead rate using expected machine hours for Department A and Department B.
b-3. Calculate the projected manufacturing costs for job 110 using the three separate rates computed in b-1 and b-2.
c-1. The sales policy at St. Falls dictates that job bids be calculated by adding 25 percent to total manufacturing costs. What would be the bid for job no. 110 using the overhead rate from part a?
c-2. The sales policy at St. Falls dictates that job bids be calculated by adding 25 percent to total manufacturing costs. What would be the bid for job no. 110 using the overhead rate from part b?
c-3. Which of the overhead allocation methods would you recommend?
In: Accounting
In: Economics
38. What is the ploidy of the zygote during the life cycle of toxoplasma gondii?
a)1n
b)3n
c)4n
d)2n
39. The haploid genome of toxoplasma gondii has 14 chromosomes. When an oocyst changes into a sporozoite, its nucleaus contains
a) 7 chromosomes
b) 28 chromosomes
c) 42 chromosomes
d) 14 chromosomes
33. The giant panda has a diploid number of 42, which includes a pair of sex chromosomes that is analogous to human sex chromosomes (X and Y).
The kayrotype of a male panda of the giant panda species would show_____pairs of homologous autosomes and one pair of ___________sex chromosomes.
34. Why is parthenogenesis in bees considered to be a form of asexual reproduction?
a)the formation of the original haploid cell was achieved using binary fission
b)the haploid male bees were made through the process of meiosis, so they are identical to the parent egg cell.
c)although genetic material is transferred from one cell to another using conjunction, the resulting cells will be identical to each othe.
d)the male drone is made from a haploid egg. Fertilization is not part of the process to make drone.
36. Since the seedless bananas are triploid (3n), and do not produce viable seeds for reproduction. To grow more seedless banana plants, farmers take a side shoot and replant it.
This type of asexual reproduction is called
a)binary fission
b)parthenogenesis
c)fragmentation
d)budding
22. The diploid chromosome number of a cat, Felis catus, is 38.
Which of the following rows correctly identifies the number of cells and chromosomes in each cell after the process of oogenesis has completed?
a)
| Number of cells | Number of chromosomes |
| 1 | 19 |
b)
| Number of cells | Number of chromosomes |
| 3 | 114 |
c)
| Number of cells | Number of chromosomes |
| 4 | 19 |
d)
| Number of cells | Number of chromosomes |
| 2 | 38 |
23. The diploid chromosomes number of a dog, Canis familiaris, is 78.
Which of the following rows correctly identifies thenumber of cells and chromosomes in each cellafter the process of spermatogenesis has completed?
a)
| Number of cells | Number of chromosomes |
| 1 | 39 |
b)
| Number of cells | Number of chromosomes |
| 2 | 78 |
c)
| Number of cells | Number of chromosomes |
| 4 | 39 |
d)
| Number of cells | Number of chromosomes |
| 3 | 26 |
24. In humans, how many functional gametes are produced by spermatogenesis and oogenesis?
a)
| Spermatogenesis | Oogenesis |
| one | one |
b)
| Spermatogenesis | Oogenesis |
| four | one |
c)
| Spermatogenesis | Oogenesis |
| one | four |
d)
| Spermatogenesis | Oogenesis |
| four | four |
In: Biology