Code an application program that keeps tracks of
srudent information at your college:names, identification numbers,
and grade point averages in a fully encapsulated (homogenous)
sorted array-based data structure. When launched, the user will be
asked to input the maximum size of data set, the initial number of
students, and the initial data set. once this is complete, the user
will be presented with the following menu:
Enter:1 to insert a new student's info
2 to fetch and out put a student's info
3 to delete student info
4 to update student info
5 to output all the student info in sorted order
6 to exit program
note: please use Java language to create this program and please
write comments for each statement that what is happening. i know
there are same questions solution posted in chegg, but i want some
unique from others
In: Computer Science
import java.util.Scanner;
import java.text.value;
public class Rectangle
{
public static void main(String[]args){
System.out.println("Find the area of a rectangle");
System.out.println("Find the perimeter of a rectangle");
System.out.println("Enter a number of choice");
}
public static void main(String[]args){
int choice = //the user choice
double value :0 // the value returned from the method
double length; // the length of rectangle
double width;// the width of rectangle
Scanner scan = new Scanner(System.in);
System.out.println("Enter length: ");
double length = scan.nextDouble(); //the length of rectangle
System.out.println("Enter width :");
double width = scan.nextDouble(); //the width of rectangle
double area = length*width; //calculating area
double perimeter = 2*(length+width); //calculating perimeter
System.out.println("Area of rectangle is:" + value);
System.out.println("Perimeter of rectangle is:"+value);
}
}
Please fix this Java program to get output and update it
In: Computer Science
Acme Company Balance Sheet As of January 5, 2019 (amounts in thousands)
Cash 9,100 Accounts Payable 1,900
Accounts Receivable 4,400 Debt 2,400
Inventory 4,800 Other Liabilities 600
Property Plant & Equipment 15,600 Total Liabilities 4,900
Other Assets 2,600 Paid-In Capital 6,900
Retained Earnings 24,700
Total Equity 31,600
Total Assets 36,500 Total Liabilities & Equity 36,500
Update the balance sheet above to reflect the transactions below, which occur on January 6, 2019
1. Sell product for $25,000 with historical cost of $20,000
2. Sell product for $30,000 with historical cost of $24,000
3. Sell product for $40,000 with historical cost of $32,000
What is the final amount in Retained Earnings?
Please specify your answer in the same units as the balance sheet.
In: Accounting
In this quiz, use the following touchdown data for Tom Brady:
| Year | Passing yards, y | Touchdowns, t |
| 2000 | 6 | 0 |
| 2001 | 2843 | 18 |
| 2002 | 3764 | 28 |
| 2003 | 3620 | 23 |
| 2004 | 3692 | 28 |
| 2005 | 4110 | 26 |
| 2006 | 3529 | 24 |
| 2007 | 4806 | 50 |
| 2008 | 76 | 0 |
| 2009 | 4398 | 28 |
| 2010 | 3900 | 36 |
| 2011 | 5235 | 39 |
| 2012 | 4827 | 34 |
| 2013 | 4343 | 25 |
| 2014 | 4109 | 33 |
| 2015 | 4770 | 36 |
| 2016 | 3554 | 28 |
| 2017 | 4577 | 32 |
| 2018 | 2748 | 17 |
2 (a) Find the correlation coefficient, accurate to four significant figures, between the number of touchdowns, t, and the number of passing yards, y.
(b) Find the equation of the regression line, y = n*t + k, giving the line of best fit for the number of passing yards, y, as a function of the number of touchdowns, t. What is the slope, n, of this line, accurate to two decimal places?
(c) Find the equation of the regression line, y = n*t + k, giving the line of best fit for the number of passing yards, y, as a function of the number of touchdowns, t. What is the value of k for this line, accurate to two decimal places?
(d) Use the regression line you found in 2 (b) and 2 (c) to find the number of touchdowns expected if Brady passes for 4000 yards.Use the values stored in your calculator or spreadsheet, without rounding them, and give an answer with four significant figures.
(e) Use the regression line you found in 2 (b) and 2 (c) to find the number of passing yards expected if Brady throws 45 touchdowns.Use the values stored in your calculator or spreadsheet, without rounding them, and give an answer with two decimal places.
In: Advanced Math
Worksheet complete through the Trial Balance.
|
March Journal Entries |
|||
|
1-Mar |
Accounts Receivable |
3450 |
|
|
Sales Revenue |
3,450 |
||
|
Cost of Goods Sold |
1450 |
||
|
Inventory |
1,450 |
||
|
3-Mar |
Inventory |
2800 |
|
|
Accounts Payable |
2,800 |
||
|
15-Mar |
Accounts Receivable |
3750 |
|
|
Sales Revenue |
3,750 |
||
|
Cost of Goods Sold |
1950 |
||
|
Inventory |
1,950 |
||
|
20-Mar |
Inventory |
2000 |
|
|
Accounts Payable |
2,000 |
||
|
24-Mar |
Accounts Receivable |
4900 |
|
|
Sales Revenue |
4,900 |
||
|
Cost of Goods Sold |
2600 |
||
|
Inventory |
2,600 |
||
|
#NAME? |
|||||||
|
PARTIALLY ADJUSTED TRIAL BALANCE |
|||||||
|
March 31 2018 |
|||||||
|
Part Adj T/B |
March Jes |
Trial |
Balance |
||||
|
DR |
CR |
DR |
CR |
DR |
CR |
||
|
Cash |
$253,560 |
||||||
|
Accounts Receivable |
146,800 |
12,100 |
|||||
|
Allowance for Uncollectible Accounts |
$2,569 |
||||||
|
Supplies |
85,650 |
||||||
|
Inventory |
2,600 |
3,000 |
|||||
|
Prepaid Insurance |
16,800 |
||||||
|
Land |
50,000 |
||||||
|
Building |
125,500 |
||||||
|
Accumulated Depr – Building |
5,670 |
||||||
|
Computer equipment |
52,950 |
||||||
|
Accumulated Depr – Comp Equip |
1,750 |
||||||
|
Office Furniture |
85,960 |
||||||
|
Accumulated Depr - Office Furniture |
890 |
||||||
|
Accounts Payable |
48,526 |
||||||
|
Interest Payable |
3,200 |
||||||
|
Utilities Payable |
8,952 |
||||||
|
Wages Payable |
98,505 |
||||||
|
Long term Note Payable |
90,000 |
||||||
|
Mortgage Payable |
60,000 |
||||||
|
Common Stock |
400,000 |
||||||
|
Retained Earnings |
106,468 |
||||||
|
Dividends |
4,000 |
||||||
|
Service Revenue |
345,650 |
||||||
|
Tablet Sales Revenue |
210,250 |
||||||
|
Cost of Goods Sold |
165,850 |
6,000 |
|||||
|
Bad Debt Expense |
|||||||
|
Depreciation Expense – Building |
1,350 |
||||||
|
Depreciation Expense - Computer Equip |
890 |
||||||
|
Depreciation Expense - Office Furn |
650 |
||||||
|
Interest Expense |
3560 |
||||||
|
Insurance Expense |
38,950 |
||||||
|
Supplies expense |
72,860 |
||||||
|
Bank fee (expense) |
|||||||
|
Utilities Expense |
75,900 |
||||||
|
Wage Expense |
198,600 |
||||||
In: Accounting
In this quiz, use the following touchdown data for Tom Brady:
| Year | Passing yards, y | Touchdowns, t |
| 2000 | 6 | 0 |
| 2001 | 2843 | 18 |
| 2002 | 3764 | 28 |
| 2003 | 3620 | 23 |
| 2004 | 3692 | 28 |
| 2005 | 4110 | 26 |
| 2006 | 3529 | 24 |
| 2007 | 4806 | 50 |
| 2008 | 76 | 0 |
| 2009 | 4398 | 28 |
| 2010 | 3900 | 36 |
| 2011 | 5235 | 39 |
| 2012 | 4827 | 34 |
| 2013 | 4343 | 25 |
| 2014 | 4109 | 33 |
| 2015 | 4770 | 36 |
| 2016 | 3554 | 28 |
| 2017 | 4577 | 32 |
| 2018 | 2748 | 17 |
2 (a) Find the correlation coefficient, accurate to four significant figures, between the number of touchdowns, t, and the number of passing yards, y.
(b) Find the equation of the regression line, y = n*t + k, giving the line of best fit for the number of passing yards, y, as a function of the number of touchdowns, t. What is the slope, n, of this line, accurate to two decimal places?
(c) Find the equation of the regression line, y = n*t + k, giving the line of best fit for the number of passing yards, y, as a function of the number of touchdowns, t. What is the value of k for this line, accurate to two decimal places?
(d) Use the regression line you found in 2 (b) and 2 (c) to find the number of touchdowns expected if Brady passes for 4000 yards.Use the values stored in your calculator or spreadsheet, without rounding them, and give an answer with four significant figures.
(e) Use the regression line you found in 2 (b) and 2 (c) to find the number of passing yards expected if Brady throws 45 touchdowns.Use the values stored in your calculator or spreadsheet, without rounding them, and give an answer with two decimal places.
In: Statistics and Probability
The ledger of Articulation Systems Inc. showed the following balances after adjustment, but before closing, on December 31, 2018, the end of the current year (all accounts have normal balances):
Insurance expense 11000
Sales returns and allowances 22500
Bad debt expense 6000
Accounts payable 81000
Accounts receivable 108590
Allowance for doubtful accounts (also known as the allowance for
bad debt) 8500
Accumulated depreciation – equipment 27740
Depreciation expense 1200
Interest revenue 2100
Cash 80470
Common stock (10,000 shares outstanding) 100000
Cost of goods sold 598550
Dividends declared (not yet paid) 18000
Equipment 139450
General expenses 113250
Dividends payable 2000
Sales discounts 23000
Interest expense 5600
Paid-in capital in excess of par 110000
Marketable Securities 12000
Merchandise inventory 154250
Prepaid insurance 11225
Salaries expense 42100
Retained earnings ?
Dividend Revenue 10000
Salaries Payable 12350
Sales 974500
Selling expenses 129210
The president of Articulation Systems Inc., has asked you to
develop a flexible financial statement package, using Excel that
includes:
• a data entry sheet
• an adjusted trial balance,
• a single-step income statement,
• a multi-step income statement,
• a statement of retained earnings,
• a classified balance sheet, and
• a post-close trial balance
Additional Instructions: You can ignore taxes in this project. Each statement must be on one sheet in the file and this file should allow the financial statements to be prepared quickly by entering account balances in the appropriate cells on the first sheet of the file (book) – data entry sheet. Include percentages in the Multi-step Income Statement (vertical analysis) i.e. gross profit percentage, % of selling expenses to sales, etc
In: Accounting
The ledger of Articulation Systems Inc. showed the following balances after adjustment, but before closing, on December 31, 2018, the end of the current year (all accounts have normal balances):
Insurance expense 11000
Sales returns and allowances 22500
Bad debt expense 6000
Accounts payable 81000
Accounts receivable 108590
Allowance for doubtful accounts (also known as the allowance for
bad debt) 8500
Accumulated depreciation – equipment 27740
Depreciation expense 1200
Interest revenue 2100
Cash 80470
Common stock (10,000 shares outstanding) 100000
Cost of goods sold 598550
Dividends declared (not yet paid) 18000
Equipment 139450
General expenses 113250
Dividends payable 2000
Sales discounts 23000
Interest expense 5600
Paid-in capital in excess of par 110000
Marketable Securities 12000
Merchandise inventory 154250
Prepaid insurance 11225
Salaries expense 42100
Retained earnings ?
Dividend Revenue 10000
Salaries Payable 12350
Sales 974500
Selling expenses 129210
The president of Articulation Systems Inc., has asked you to
develop a flexible financial statement package, using Excel that
includes:
• a data entry sheet
• an adjusted trial balance,
• a single-step income statement,
• a multi-step income statement,
• a statement of retained earnings,
• a classified balance sheet, and
• a post-close trial balance
Additional Instructions: You can ignore taxes in this project. Each
statement must be on one sheet in the file and this file should
allow the financial statements to be prepared quickly by entering
account balances in the appropriate cells on the first sheet of the
file (book) – data entry sheet. Include percentages in the
Multi-step Income Statement (vertical analysis) i.e. gross profit
percentage, % of selling expenses to sales, etc.
In: Accounting
Build a Date class and a main function to test it
Specifications
Below is the interface for the Date class: it is our "contract"
with you: you have to implement everything it describes, and show
us that it works with a test harness that puts it through its
paces. The comments in the interface below should be sufficient for
you to understand the project (use these comments in your Date
declaration), without the need of any further documentation.
class Date
{
private:
unsigned day;
unsigned month;
string monthName;
unsigned year;
public:
// creates the date January 1st, 2000.
Date();
/* parameterized constructor: month number, day, year
- e.g. (3, 1, 2010) will construct the date March 1st, 2010
If any of the arguments are invalid (e.g. 15 for month or 32 for day)
then the constructor will construct instead a valid Date as close
as possible to the arguments provided - e.g. in above example,
Date(15, 32, 2010), the Date would be corrected to Dec 31st, 2010.
In case of such invalid input, the constructor will issue a console error message:
Invalid date values: Date corrected to 12/31/2010.
(with a newline at the end).
*/
Date(unsigned m, unsigned d, unsigned y);
/* parameterized constructor: month name, day, year
- e.g. (December, 15, 2012) will construct the date December 15th, 2012
If the constructor is unable to recognize the string argument as a valid month name,
then it will issue a console error message:
Invalid month name: the Date was set to 1/1/2000.
(with a newline at the end).
If the day argument is invalid for the given month (but the month name was valid),
then the constructor will handle this error in the same manner as the other
parameterized constructor.
This constructor will recognize both "december" and "December"
as month name.
*/
Date(const string &mn, unsigned d, unsigned y);
/* Outputs to the console (cout) a Date exactly in the format "3/1/2012".
Does not output a newline at the end.
*/
void printNumeric() const;
/* Outputs to the console (cout) a Date exactly in the format "March 1, 2012".
The first letter of the month name is upper case, and the month name is
printed in full - January, not Jan, jan, or january.
Does not output a newline at the end.
*/
void printAlpha() const;
private:
/* Returns true if the year passed in is a leap year, otherwise returns false.
*/
bool isLeap(unsigned y) const;
/* Returns number of days allowed in a given month
- e.g. daysPerMonth(9, 2000) returns 30.
Calculates February's days for leap and non-leap years,
thus, the reason year is also a parameter.
*/
unsigned daysPerMonth(unsigned m, unsigned y) const;
/* Returns the name of a given month
- e.g. name(12) returns the string "December"
*/
string name(unsigned m) const;
/* Returns the number of a given named month
- e.g. number("March") returns 3
*/
unsigned number(const string &mn) const;
};
Private Member Functions
The functions declared private above, isLeap, daysPerMonth, name, number, are helper functions - member functions that will never be needed by a user of the class, and so do not belong to the public interface (which is why they are "private"). They are, however, needed by the interface functions (public member functions), which use them to test the validity of arguments and construct valid dates. For example, the constructor that passes in the month as a string will call the number function to assign a value to the unsigned member variable month.
isLeap: The rule for whether a year is a leap year is:
(year % 4 == 0) implies leap year
except (year % 100 == 0) implies NOT leap year
except (year % 400 == 0) implies leap year
So, for instance, year 2000 is a leap year, but 1900 is NOT a leap year. Years 2004, 2008, 2012, 2016, etc. are all leap years. Years 2005, 2006, 2007, 2009, 2010, etc. are NOT leap years.
Output Specifications
Read the specifications for the print function carefully. The only cout statements within your Date member functions should be:
1. the "Invalid Date" warnings in the constructors
2. in your two print functions
Required main function to be used:
Date getDate();
int main() {
Date testDate;
testDate = getDate();
cout << endl;
cout << "Numeric: ";
testDate.printNumeric();
cout << endl;
cout << "Alpha: ";
testDate.printAlpha();
cout << endl;
return 0;
}
Date getDate() {
int choice;
unsigned monthNumber, day, year;
string monthName;
cout << "Which Date constructor? (Enter 1, 2, or 3)" << endl
<< "1 - Month Number" << endl
<< "2 - Month Name" << endl
<< "3 - default" << endl;
cin >> choice;
cout << endl;
if (choice == 1) {
cout << "month number? ";
cin >> monthNumber;
cout << endl;
cout << "day? ";
cin >> day;
cout << endl;
cout << "year? ";
cin >> year;
cout << endl;
return Date(monthNumber, day, year);
} else if (choice == 2) {
cout << "month name? ";
cin >> monthName;
cout << endl;
cout << "day? ";
cin >> day;
cout << endl;
cout << "year? ";
cin >> year;
cout << endl;
return Date(monthName, day, year);
} else {
return Date();
}
}
In: Computer Science
Identify 5 differences and 5 similarities of non-profit Financial statement in comparison with a Federal Government Financial statement?
In: Accounting