IN C++ PLEASE
Given a Student class, create a class with following characteristics
Input
Jack
1
Jones
2
Marry
3
where,
Output
1 - Jack
2 - Jones
3 - Marry
Assume that,
Given Code:
#include<iostream>
#include<cstring>
#include <algorithm>
using namespace std;
class Student{
public:
string name;
int rollNo;
};
//write your code here
int main()
{
string name;
char temp[20];
int rollNo, N, i;
Student * students;
ClassRoom classRoom;
i=0;
while(getline(cin, name) && cin.getline(temp,20)){
rollNo = atoi(temp);
classRoom.addStudent(name, rollNo);
i++;
}
N = i;
students = classRoom.getAllStudents();
for(int i=0 ; i < N; i++){
cout << (students+i)->rollNo << " - " <<
(students+i)->name;
if(i<N-1)
cout<<endl;
}
return 0;
}
In: Computer Science
Walton Company is a retail company that specializes in selling outdoor camping equipment. The company is considering opening a new store on October 1, 2019. The company president formed a planning committee to prepare a master budget for the first three months of operation. As budget coordinator, you have been assigned the following tasks:
Problem 14-23 Part 1
Required
October sales are estimated to be $390,000, of which 40 percent will be cash and 60 percent will be credit. The company expects sales to increase at the rate of 20 percent per month. Prepare a sales budget.
The company expects to collect 100 percent of the accounts receivable generated by credit sales in the month following the sale. Prepare a schedule of cash receipts.
The cost of goods sold is 70 percent of sales. The company desires to maintain a minimum ending inventory equal to 20 percent of the next month’s cost of goods sold. However, ending inventory of December is expected to be $13,700. Assume that all purchases are made on account. Prepare an inventory purchases budget.
The company pays 60 percent of accounts payable in the month of purchase and the remaining 40 percent in the following month. Prepare a cash payments budget for inventory purchases.
Budgeted selling and administrative expenses per month follow:
| Salary expense (fixed) | $ | 19,700 | |
| Sales commissions | 4 | % of Sales | |
| Supplies expense | 2 | % of Sales | |
| Utilities (fixed) | $ | 3,100 | |
| Depreciation on store fixtures (fixed)* | $ | 5,700 | |
| Rent (fixed) | $ | 6,500 | |
| Miscellaneous (fixed) | $ | 2,900 | |
Use this information to prepare a selling and administrative expenses budget.
Utilities and sales commissions are paid the month after they are incurred; all other expenses are paid in the month in which they are incurred. Prepare a cash payments budget for selling and administrative expenses.
Walton borrows funds, in increments of $1,000, and repays them on the last day of the month. Repayments may be made in any amount available. The company also pays its vendors on the last day of the month. It pays interest of 2 percent per month in cash on the last day of the month. To be prudent, the company desires to maintain a $29,000 cash cushion. Prepare a cash budget.
In: Accounting
1.Why is it important for an accountant to understand their business and industry as well as managements informational needs in addition to knowing how to generate financial statements?
Note: You may use S&S as the context while answering this question. However, please present your own examples.
2.You are likely using various forms of social media (e.g., Twitter, Facebook). Please explore the idea of how would this non-financial information external to the company be of use? What other nonfinancial information would be useful? Could you think of financial information that is external to the organization that might be useful to management as well?
In: Accounting
Suppose market demand for a good is MB = 100-2Q and the marginal cost of supplying the good is MC = 40 + 8Q.
a) i) What is the MB of the 5th unit? ii) What is the TB from 5 units? iii) What is the MC of the 5th unit? iv) What is the TC of 5 units? v) What is the NB of 10 units? vi) Which unit has MB of $40? Of $60? (vii) Which unit has MC Of $40? Of $60? viii) How much benefits would a 6th unit add to total benefits? (ix) How much cost would a 6th unit add to total cost?
b) Calculate the following assuming the market acts competitively: market Q, market P, consumer surplus, producer surplus, net benefits.
c) Repeat part b assuming the market is a monopoly.
In: Economics
When σ is unknown and the sample is of size n ≥ 30, there are two methods for computing confidence intervals for μ. Method 1: Use the Student's t distribution with d.f. = n − 1. This is the method used in the text. It is widely employed in statistical studies. Also, most statistical software packages use this method. Method 2: When n ≥ 30, use the sample standard deviation s as an estimate for σ, and then use the standard normal distribution. This method is based on the fact that for large samples, s is a fairly good approximation for σ. Also, for large n, the critical values for the Student's t distribution approach those of the standard normal distribution. Consider a random sample of size n = 41, with sample mean x = 44.6 and sample standard deviation s = 5.7. (a) Compute 90%, 95%, and 99% confidence intervals for μ using Method 1 with a Student's t distribution. Round endpoints to two digits after the decimal. 90% 95% 99% lower limit upper limit (b) Compute 90%, 95%, and 99% confidence intervals for μ using Method 2 with the standard normal distribution. Use s as an estimate for σ. Round endpoints to two digits after the decimal. 90% 95% 99% lower limit upper limit (c) Compare intervals for the two methods. Would you say that confidence intervals using a Student's t distribution are more conservative in the sense that they tend to be longer than intervals based on the standard normal distribution? Yes. The respective intervals based on the t distribution are shorter. Yes. The respective intervals based on the t distribution are longer. No. The respective intervals based on the t distribution are shorter. No. The respective intervals based on the t distribution are longer. Correct: Your answer is correct. (d) Now consider a sample size of 71. Compute 90%, 95%, and 99% confidence intervals for μ using Method 1 with a Student's t distribution. Round endpoints to two digits after the decimal. 90% 95% 99% lower limit upper limit (e) Compute 90%, 95%, and 99% confidence intervals for μ using Method 2 with the standard normal distribution. Use s as an estimate for σ. Round endpoints to two digits after the decimal. 90% 95% 99% lower limit Incorrect: Your answer is incorrect. upper limit (f) Compare intervals for the two methods. Would you say that confidence intervals using a Student's t distribution are more conservative in the sense that they tend to be longer than intervals based on the standard normal distribution? Yes. The respective intervals based on the t distribution are shorter. Yes. The respective intervals based on the t distribution are longer. No. The respective intervals based on the t distribution are longer. No. The respective intervals based on the t distribution are shorter. Correct: Your answer is correct. With increased sample size, do the two methods give respective confidence intervals that are more similar?
In: Math
Write a function in Matlab that will compute the approximation for ln(x) given the inputs to the function are x and n. This function requires a running sum using a for-loop. ln (?) = lim?→∞∑ (−1)^(?−1)*(? − 1)^?/k
In: Computer Science
In what ways has the 2008 global financial crisis affected the world, U.S. and WI?
In: Finance
What defines a “rat race”? What makes consumption into a “rat race”?
In: Economics
Diversity Does the growing diversity in the United States pose special challenges for law enforcement and criminal justice professionals? If so, what are these challenges and what are some of your thoughts on possible solutions? What steps can be taken by individuals, CJ professionals, and by entire communities to undertake stronger human relationships and knowledge of race, gender, culture, religion, bias, stereotypes, and sexual orientation?
In: Psychology
A football player kicks the ball so that it will have a "hang time" (time of flight) of 5.0 sec and land 50m away. If the ball leaves the player's foot 0.5 m above the ground,
(a) find the initial velocity of the ball
(b) find the velocity of the ball when it lands on the ground
In: Physics
The purpose of this exercise is to provide the Marketing
department with a method to sort a predefined data list by zip
code, last name, first name so they can take advantage of bulk
mailing rates.
Assignment: 1. Create a table with the following fields called
"Homework1Data" with (4 fields), then run the inserts below into
the table (Figure 1-1). 2. Write a single SQL Query that has the
following fields (6 fields so they can easily be moved around using
a Mail Merge) using these names (alias); Firstname, Lastname,
Address, City, State, Zip be sure to sort by zip code, last name,
first name 3. Turn in a copy of your SQL Query (single statement -
not a procedure)
Hint: The magic exist in the string manipulation functions (LENGTH,
INSTR, SUBSTR, etc.)
Figure 1-1:
CREATE TABLE homework1data ( name VARCHAR2(30), address
VARCHAR2(30), location VARCHAR2(30), zip VARCHAR2(10));
----------------------------------------- INSERT INTO Homework1Data
(Name, Address, Location, Zip) VALUES ('Ferguson, Shawn M.', '1940
Fountainview Court', 'Reynoldsburg, Ohio', '43068'); INSERT INTO
Homework1Data (Name, Address, Location, Zip) VALUES ('Phillips,
George', '19 Pleasant St.', 'Columbus, OH', '43231'); INSERT INTO
Homework1Data (Name, Address, Location, Zip) VALUES ('Thompson,
Mary', '200 E. Main St.', 'Columbus, Oh', '43215'); INSERT INTO
Homework1Data (Name, Address, Location, Zip) VALUES ('Swatson,
Robert', '584 Yellowstone Dr.', 'Westerville, OH', '43081'); INSERT
INTO Homework1Data (Name, Address, Location, Zip) VALUES ('Banks,
Heather T.', '19 Pleasant St.', 'Columbus, Ohio', '43231');
In: Computer Science
A student has two lenses, one of focal length 5.5 cm and the other with focal length 15 cm.
Find the maximum magnification produced by each of these lenses.
M1, M2?
In: Physics
Show and explain each step (neatly in complete sentences), indicate units, and specify the correct number of significant figures. A friend wants to sell you a catalyst that allows benzene to be formed by passing H2 (g) over graphite at 25 ˚C and 1 atm. Should you buy? Explain.
In: Chemistry
In: Computer Science
Terminology: 1.Thickness of internal coating of an analytical column (meaning, the purpose and the range of them (in um) 2.Carrier gas in GC and Eluent in LC ( general purpose, what is the general carrier media, gas or eluent, for GC amd LC 3. Isocratic and gradient program of HPLC 4. FID detector (full name, flow of the gases for flame, best use for what compounds)
In: Chemistry