Questions
Smart Company is preparing its financial statements for the year ended June 30, 2017. The financial...

Smart Company is preparing its financial statements for the year ended June 30, 2017. The financial statements are complete except for the statement of cash flows. You have been asked to prepare a statement of cash flows for the year ended June 30, 2017.

Download the excel spreadsheet found in the link below.

Required:

Prepare a spreadsheet to support a statement of cash flows for the year ended June 30, 2017.

In the tab named ‘Journal Entries’, show in journal entry form, the entries that would be made in preparation of the statement of cash flows.

Prepare Smart Company’s statement of cash flows for the year ended June 30, 2017. Prepare the statement of cash flows using the indirect method. Note: For full credit, you must prepare the statement of cash flow in good form with all necessary disclosures, including disclosures about noncash financing and investing activities.

Submit a well-formatted electronic file, with your last name as the file name. For example, Lastname_PortfolioProject.xls.

You are the accountant for Smart Construction Company, a large construction company in Colorado. You have been presented with the following financial information for Smart and asked to prepare the Statement of Cash Flows for the year ended June 30, 2017. You will complete all work for the project in this excel file, which includes the following tabs:

Facts - Information taken from Smart's accounting records and additional information regarding the cash flows as of June 30, 2017.

Worksheet - Worksheet template (also see Example 21.3a in text).

Cash Flows - Statement of Cash Flows template (also see Example 21.3b in text).

Account Balances

June 30, 2016

June 30, 2017

Debits

Cash

$            361,700

$            880,550

Accounts Receivable

               100,000

               125,000

Marketable Securities (at cost)

                11,700

                13,000

Allowance for Change in Value

                  1,500

                  1,800

Construction in Process

               168,750

               405,000

Prepaid Expenses

                45,000

                10,000

Investments (long-term)

                       -  

                13,500

Leased Equipment

                       -  

                20,000

Building

                30,000

                       -  

Deferred tax asset

                  5,375

                  2,200

Land

                10,500

                10,500

Discount on Bonds Payable

                       -  

                  1,305

Totals

               734,525

            1,482,855

Credits

Allowance for doubtful accounts

$               6,000

$               4,500

Accounts Payable

                87,500

               210,000

Deferred tax liability

                  1,000

                  3,300

Income Taxes Payable

                  3,500

                  9,000

Note Payable (long-term)

                  3,500

                       -  

Accumulated Depreciation on Building

                  2,500

                       -  

Accumulated Depreciation on Leased Asset

                       -  

                  3,000

Lease obligation

                       -  

                18,000

Interest payable on lease obligation

                       -  

                  1,800

Interest payable (Bonds)

                       -  

                  1,800

Bonds payable

                       -  

                45,000

Billings on contruction in process

               150,000

               325,000

Pension liability

               150,000

               400,000

Convertible preferred stock, $100 par

                  9,000

                       -  

Common Stock, $10 par

                14,000

                24,500

Additional Paid-in Capital

                  8,700

                13,700

Unrealized Increase in Value of Marketable Securities

                  1,500

                  1,800

Retained Earnings

               297,325

               421,455

Totals

               734,525

            1,482,855

Additional information:

Dividends declared and paid totaled $650.

300 shares of common stock (at par) were issued for cash.

On July 1, 2016, convertible preferred stock that had originally been issued at par value were

converted into 500 shares of common stock. The book value method was used to account for the conversion.

The long-term note payable was paid by issuing 250 shares of common stock at the beginning of the fiscal year.

Short-term marketable securities were purchased at a cost of $1,300. The portfolio was increased by $300 to a $14,800 fair value at year-end by adjusting the related allowance account.

During the year, a 30% interest in Ricochet Co. was purchased as an investment for $9,500. Ricochet reported $20,000 in net income for the year and paid dividends of $2,000 to Smart.

$5,000 of accounts receivable were written off as uncollectible during the year.

Smart’s inventory consists of Construction-in-Process in excess of the Billings on Construction-in-Process account balance.

A building was destroyed by fire during the year and insurance proceeds of $26,000 were collected.

The 12% bonds payable were issued on February 28, 2017, at 97. They mature on February 28, 2027. The company uses the straight-line method to amortize bond premiums and discounts.

Smart recorded pension expense of $350,000 for the year.

A lease agreement was signed on July 1st, 2016 for the use of equipment worth $20,000. The company determined that the transaction should be recorded as a capital lease.

Cash Flows Worksheet

For Year Ended June 30, 2017

Balances

Change

Worksheet Entries

Account Titles

6/30/2016

6/30/2017

Increase (Decrease)

Debit

Credit

Debits

Noncash Accounts:

Credits

Cash Flows from Operating Activities:

Cash Flows from Investing Activities:

Cash Flows from Financing Activities

Investing and Financing Activities Not Affecting Cash:

Net Increase in Cash

Totals

Smart Construction Company

Statement of Cash Flows

For Year Ended June 30, 2017

Operating Activities:

     Net Income

     Adjustments for noncash income items:

      Adjustments from cash flow effect from working capital items:

      Net cash provided (used) by operating activities

Investing activities:

    Net cash provided (used) by investing activities

Financing Activities:

    Net cash provided (used) by financing activities

Net increase in cash (see Schedule 1)

Cash, June 30, 2016

Cash, June 30, 2017

Schedule 1: Investing and Financing Activities Not Affecting Cash

In: Accounting

Read the case on which your Portfolio Project is based and determine all items that will...

Read the case on which your Portfolio Project is based and determine all items that will be excluded from gross income. In an MS Excel spreadsheet, list all excluded items in column A. In column B, explain why the item is excluded. You may reference the specific tax law, the text (make sure you include the page number), or a link to another trusted source. A trusted source is either supported by the IRS or academic literature (that includes textbooks) under which tax law for the year 2017 is applicable.

Brian and Sheila Williams were married in October of 2008. They live at 1000 Main Street, Atlanta, GA 33127. Brian is a postal service worker. Sheila is a teacher at Grady High School. Brian’s social security number is 555-11-1111 and Sheila’s social security number is 555-22-2222. They have a dependent daughter Jayla who is 10 years old (Born on May 12th). Jayla’s social security number is 555-33-3333. In 2016, Brian's wages was $45,860 while Sheila's was $43,590.
Included or Excluded Items
Two years ago, the taxpayer loaned a friend $2000. The friend has filed for bankruptcy this year and will not be able to repay
Earned $100 interest on county municipal bonds
Found a diamond worth $1000 on the ground
Received $500 in death benefits fron Brian's father
Received $4,000 court settlement. $1,000 was punitive damanges.
Brian paid $400/month in child support
Received a $1000 gift from his brother
Sheila won $100 playing bingo
Brian paid $200/month in alimony to his ex-wife
Sheila received a $1000 gift from her mother
Sheila spent $300 on supplies for her classroom
Portfolio Investments
Stock Acquired Sold Sales Price Cost (Basis) Qualified Dividends
Red Stock 2/1/2016 10/5/2016 $6,000 $2,500 $0
White Stock 6/11/2009 10/15/2016 $5,000 $4,000 $100
Blue Stock 10/1/2005 8/3/2016 $2,000 $10,000 $0
Black Stock 3/6/2016 12/15/2016 $3,000 $5,000 $0
Yellow Stock 4/5/2006 N/A N/A $5,000 $300
Interest Income Source Amount
Money Market Account $200
Savings Account $25
State Municipal Bonds $35
Rental Property
They own and rent two pieces of residential real estate in Miami, FL. These properties were acquired with cash (so there are no mortgages on the homes). They both have real estate broker licenses in Georgia and Florida. They dedicate enough hours (through their business) to qualify as a “real estate professional” with regard to these properties.
Property 1
The first property is located at 17750 NW 17th Ave, Miami, FL. They collect $1,000 monthly in rent. The property was purchased June 30, 2016 for $150,000. The tax records show that the value of the land is $30,000 and the value of the home was $90,000 when purchased. They actively participate in the management of the real property.
The property has the following expenditures:
Property tax $7,000/yr
Repairs $   900/yr
Insurance $1,200/yr
Washing Machine $300 (purchased 6/2/2015)
Refrigerator $700 (purchased 7/1/2016)
Furniture $2,000 (purchased 4/1/2014)
Property 2
The second property is located at 5610 NW 11th Ave, Miami, FL. They collect $1,500 monthly in rent. The property was purchased on June 12, 2016 for $100,000. The tax records show that the value of the land is $20,000 and the value of the home was $80,000 when purchased. They actively participate in the management of the real property.
The property has the following expenditures:
Property tax $6,200/yr
Repairs $3,000/yr
Insurance $1,200/yr
Legal fees $   500/yr
Advertising Expense $   500/yr

Review the Portfolio Project Milestone Rubric to understand how you will be graded.

This assignment should be delivered using the MS Excel spreadsheet that lists the excluded items and the supporting information on which your decision is based.

In: Accounting

Genuine Spice Inc. began operations on January 1, 2016. The company produces a hand and body...

Genuine Spice Inc. began operations on January 1, 2016. The company produces a hand and body lotion in an eight-ounce bottle called Eternal Beauty. The lotion is sold wholesale in 12-bottle cases for $100 per case. There is a selling commission of $20 per case. The January direct materials, direct labor, and factory overhead costs are as follows:

DIRECT MATERIALS
Cost
Behavior
Units
per Case
Cost
per Unit
Direct Materials
Cost per Case
Cream base Variable 100 ozs. $0.02 $2.00
Natural oils Variable 30 ozs. 0.30 9.00
Bottle (8-oz.) Variable 12 bottles 0.50 6.00
$17.00
DIRECT LABOR
Department Cost
Behavior
Time
per Case
Labor Rate
per Hour
Direct Labor
Cost per Case
Mixing Variable 20 min. $18.00 $6.00
Filling Variable 5 14.40 1.20
25 min. $7.20
FACTORY OVERHEAD
Cost Behavior Total Cost
Utilities Mixed $600
Facility lease Fixed 14,000
Equipment depreciation Fixed 4,300
Supplies Fixed 660
$19,560

Part B—August Budgets

During July of the current year, the management of Genuine Spice Inc. asked the controller to prepare August manufacturing and income statement budgets. Demand was expected to be 1,500 cases at $100 per case for August. Inventory planning information is provided as follows:

Finished Goods Inventory:

Case Cost
Estimated finished goods inventory, August 1, 2016 300 $12,000
Desired finished goods inventory, August 31, 2016 175 7,000

Materials Inventory:

Cream Base
(ozs.)
Oils
(ozs.)
Bottles
(bottles)
Estimated materials inventory, August 1, 2016 250 290 600
Desired materials inventory, August 31, 2016 1,000 360 240

There was negligible work in process inventory assumed for either the beginning or end of the month; thus, none was assumed. In addition, there was no change in the cost per unit or estimated units per case operating data from January.

Required:

5. Prepare the August production budget. Enter all amounts as positive numbers.

Genuine Spice Inc.
Production Budget
For the Month Ended August 31, 2016
Cases
Expected cases to be sold
Plus desired ending inventory
Total
Less estimated beginning inventory
Total units to be produced

6. Prepare the August direct materials purchases budget. Enter the unit price to the nearest cent. Enter all amounts as positive numbers.

Genuine Spice Inc.
Direct Materials Purchases Budget
For the Month Ended August 31, 2016
Cream Base (ozs.) Natural Oils (ozs.) Bottles (bottles) Total
Units required for production
Plus desired ending inventory
Less estimated beginning inventory
Direct materials to be purchased
Unit price $ $ $
Total direct materials to be purchased $ $ $ $

7. Prepare the August direct labor budget. For hours required, round to nearest whole hour. For hourly rate, enter to the nearest cent, if required.

Genuine Spice Inc.
Direct Labor Budget
For the Month Ended August 31, 2016
Hours required for production of: Mixing Filling Total
Hand and body lotion
Hourly rate $ $
Total direct labor cost $ $ $

8. Prepare the August factory overhead budget. If an amount box does not require an entry, leave it blank.

Genuine Spice Inc.
Factory Overhead Budget
For the Month Ended August 31, 2016
Factory overhead: Fixed Variable Total
Utilities $ $ $
Facility lease
Equipment depreciation
Supplies
Total $ $ $

9. Prepare the August budgeted income statement, including selling expenses. Enter all amounts as positive numbers.

Genuine Spice Inc.
Budgeted Income Statement
For the Month Ended August 31, 2016
Sales $
Finished goods inventory, August 1 $
Direct materials inventory, August 1 $
Direct materials purchases
Less direct materials inventory, August 31
Cost of direct materials for production $
Direct labor
Factory overhead
Less finished goods inventory, August 31
Cost of goods sold
Gross profit $
Selling expenses
Income before income tax $

In: Finance

Roberta Santos, age 41, is single and lives at 120 Sanborne Avenue, Springfield, IL 60781. Her...

Roberta Santos, age 41, is single and lives at 120 Sanborne Avenue, Springfield, IL 60781. Her Social Security number is 123-45-6789. Roberta has been divorced from her former husband, Wayne, for three years. She has a son, Jason, who is 17, and a daughter, June, who is 18. Jason's Social Security number is 111-11-1112, and June's is 123-45-6788. Roberta does not want to contribute $3 to the Presidential Election Campaign Fund.

Roberta, an advertising executive, earned a salary from ABC Advertising of $80,000 in 2016. Her employer withheld $9,000 in Federal income tax and $3,100 in state income tax.

Roberta has legal custody of Jason and June. The divorce decree provides that Roberta is to receive the dependency deductions for the children. Jason lives with his father during summer vacation. Wayne indicates that his expenses for Jason are $10,500. Roberta can document that she spent $6,500 for Jason's support during 2016. In prior years, Roberta gave a signed Form 8332 to Wayne regarding Jason. For 2016, she has decided not to do so. Roberta provides all of June's support.

Roberta's mother died on January 7, 2016. Roberta inherited assets worth $625,000 from her mother. As the sole beneficiary of her mother's life insurance policy, Roberta received insurance proceeds of $300,000. Her mother's cost basis for the life insurance policy was $120,000. Roberta's favorite aunt gave her $13,000 for her birthday in October.

On November 8, 2016, Roberta sells for $22,000 Amber stock that she had purchased for $24,000 from her first cousin, Walt, on December 5, 2011. Walt's cost basis for the stock was $26,000, and the stock was worth $23,000 on December 5, 2011. On December 1, 2016, Roberta sold Falcon stock for $13,500. She had acquired the stock on July 2, 2013, for $8,000.

An examination of Roberta's records reveals that she received the following:

Interest income of $2,500 from First Savings Bank.

Groceries valued at $750 from Kroger Groceries for being the 100,000th customer.

Qualified dividend income of $1,800 from Amber.

Interest income of $3,750 on City of Springfield school bonds.

Alimony of $16,000 from Wayne.

Distribution of $4,800 from ST Partnership. Her distributive share of the partnership passive taxable income was $5,300. She had no prior passive activity losses during 2016.

From her checkbook records, she determines that she made the following payments during 2016:

Charitable contributions of $4,500 to First Presbyterian Church and $1,500 to the American Red Cross (proper receipts obtained).

Paid $5,000 to ECM Hospital for the medical expenses of a friend from work.

Mortgage interest on her residence of $7,800 to Peoples Bank.

Property taxes of $3,200 on her residence and $1,100 (ad valorem) on her car. $800 for landscaping expenses for residence.

Estimated Federal income taxes of $3,800 and estimated state income taxes of $1,000.

Medical expenses of $5,000 for her and $800 for Jason. In December, her medical insurance policy reimbursed $1,500 of her medical expenses.

A $1,000 ticket for parking in a handicapped space.

Attorney’s fees of $500 associated with unsuccessfully contesting the parking ticket.

Contribution of $250 to the campaign of a candidate for governor.

Because she did not maintain records of the sales tax she paid, she calculates the amount from the sales tax table to be $994.

Required:

Calculate Roberta's net tax payable or refund due for 2016.

Enter all amounts as positive numbers. However, use the minus sign to indicate a loss.

If an amount box does not require an entry or the answer is zero, enter "0".

Make realistic assumptions about any missing data.

It may be necessary to complete the tax schedules before completing Form 1040.

When computing the tax liability, do not round your immediate calculations. If required round your final answers to the nearest dollar.

Use the 2016 Tax Rate Schedule provided. Do not use the Tax Tables.

In: Accounting

Some recent financial statements for Smolira Golf, Inc., follow. SMOLIRA GOLF, INC. Balance Sheets as of...

Some recent financial statements for Smolira Golf, Inc., follow.

SMOLIRA GOLF, INC.
Balance Sheets as of December 31, 2015 and 2016
2015 2016 2015 2016
Assets Liabilities and Owners’ Equity
Current assets Current liabilities
Cash $ 3,091 $ 3,107 Accounts payable $ 2,173 $ 2,640
Accounts receivable 4,747 5,741 Notes payable 1,770 2,156
Inventory 12,558 13,742 Other 94 111
Total $ 20,396 $ 22,590 Total $ 4,037 $ 4,907
Long-term debt $ 13,000 $ 15,760
Owners’ equity
Common stock and paid-in surplus $ 40,000 $ 40,000
Fixed assets Accumulated retained earnings 15,674 39,404
Net plant and equipment $ 52,315 $ 77,481 Total $ 55,674 $ 79,404
Total assets $ 72,711 $ 100,071 Total liabilities and owners’ equity $ 72,711 $ 100,071
SMOLIRA GOLF, INC.
2016 Income Statement
Sales $ 188,170
Cost of goods sold 126,603
Depreciation 5,293
EBIT $ 56,274
Interest paid 1,390
Taxable income $ 54,884
Taxes 19,209
Net income $ 35,675
Dividends $ 11,945
Retained earnings 23,730

Find the following financial ratios for Smolira Golf (use year-end figures rather than average values where appropriate): (Do not round intermediate calculations and round your answers to 2 decimal places, e.g., 32.16. Enter the profitability ratios as a percent.)

2015 2016
Short-term solvency ratios
a. Current ratio times times
b. Quick ratio times times
c. Cash ratio times times
Asset utilization ratios
d. Total asset turnover times
e. Inventory turnover times
f. Receivables turnover times
Long-term solvency ratios
g. Total debt ratio times times
h. Debt−equity ratio times times
i. Equity multiplier times times
j. Times interest earned ratio times
k. Cash coverage ratio times
Profitability ratios
l. Profit margin %
m. Return on assets %
n. Return on equity %

Some recent financial statements for Smolira Golf, Inc., follow.

SMOLIRA GOLF, INC.
Balance Sheets as of December 31, 2015 and 2016
2015 2016 2015 2016
Assets Liabilities and Owners’ Equity
Current assets Current liabilities
Cash $ 3,091 $ 3,107 Accounts payable $ 2,173 $ 2,640
Accounts receivable 4,747 5,741 Notes payable 1,770 2,156
Inventory 12,558 13,742 Other 94 111
Total $ 20,396 $ 22,590 Total $ 4,037 $ 4,907
Long-term debt $ 13,000 $ 15,760
Owners’ equity
Common stock and paid-in surplus $ 40,000 $ 40,000
Fixed assets Accumulated retained earnings 15,674 39,404
Net plant and equipment $ 52,315 $ 77,481 Total $ 55,674 $ 79,404
Total assets $ 72,711 $ 100,071 Total liabilities and owners’ equity $ 72,711 $ 100,071
SMOLIRA GOLF, INC.
2016 Income Statement
Sales $ 188,170
Cost of goods sold 126,603
Depreciation 5,293
EBIT $ 56,274
Interest paid 1,390
Taxable income $ 54,884
Taxes 19,209
Net income $ 35,675
Dividends $ 11,945
Retained earnings 23,730

Find the following financial ratios for Smolira Golf (use year-end figures rather than average values where appropriate): (Do not round intermediate calculations and round your answers to 2 decimal places, e.g., 32.16. Enter the profitability ratios as a percent.)

2015 2016
Short-term solvency ratios
a. Current ratio times times
b. Quick ratio times times
c. Cash ratio times times
Asset utilization ratios
d. Total asset turnover times
e. Inventory turnover times
f. Receivables turnover times
Long-term solvency ratios
g. Total debt ratio times times
h. Debt−equity ratio times times
i. Equity multiplier times times
j. Times interest earned ratio times
k. Cash coverage ratio times
Profitability ratios
l. Profit margin %
m. Return on assets %
n. Return on equity %

In: Finance

write the code based on this pseudocode //Create Class any name (ex: aQ) //Declaring private integer...

write the code based on this pseudocode

//Create Class any name (ex: aQ)
//Declaring private integer array empty one ex: name arrQ[]
//Declare private integers front, rear, size and len (example, but you call any other names)

//Write constructors
Called public and same name of the class (parameters integer n)
Inside Declare where:
size is equal to n
len is equal to zero
arrQ is equal to new integer[size]
front is equal minus 1
rear is equal minus 1

//Declare function to check if Queue is empty
In this public you should declare boolean (any name you want)
Which return front is equal minus 1

//Declare function to check if queue is full
Called public boolean (any name you want)
which
return front is equal to zero and rear is equal to size minus 1

// Declare function to get the size of the queue
Should be public integer (any name to get size)
which
return len

//Declare function to check the front element of the queue

Should be public integer peek
then
condition
if (call method that you created above to check if is empty)
//then you can write:
throw new NoSuchElementException("Underflow Exception");
then
return name of your array that you declared in first line [front]


//Declare function to insert an element to the queue
Create public void insert or enque with parameters integer i
then condition
if rear is equal minus 1
front is equal to zero
rear is equal to zero
name of array[rear] is equal to i

//else if rear plus 1 is greater equal to size
//you can write:
throw new IndexOutOfBoundsException("Overflow Exception");
else if rear plus 1 is less then size
name of array[increment rear] is equal to i
increment len

//Declare function to remove front element from the queue
Create public integer remove or deque
then condition
if to call method that you created above to check if is empty
//then you can write:
throw new IndexOutOfBoundsException("Overflow Exception");

// condition else
decrement len
declare variable integer (any name, ex: element) which is equal to name of array[front]
condition if front is equal to rear
front equal minus 1
rear equal minus 1
condition else
increment front
and
return element
//Declare function to display the queue
Should be public void display
then
sys.out.print Queue:
condition if len is equal to zero
sys.out.print no values



//then just:
return
then create for loop where i equal to front and i is less equal rear and increment i
then:
sys.out.print name of array[i] + " "


//Scanner scan = new Scanner(System.in);

System.out.println("Enter the Size of Queue ");
int n = scan.nextInt();
/* creating object of class aQ */
aQ q = new aQ(n);

char ch;
do{
System.out.println("\n Queue Menu");
System.out.println("1. Insert Value”);
System.out.println("2. Remove Value”);
System.out.println("3. Peek");
System.out.println("4. Check if is empty");
System.out.println("5. Check if is full");
System.out.println("6. Check the size of Queue”);
int choice = scan.nextInt();
switch (choice)

for java

for java. create code from this pseudo

step 1. reate Class any name (ex: aQ)

step 2. Declaring private integer array empty one ex: name arrQ

step 3. Declare private integers front, rear, size and len (example, but you call any other names)

step 4Write constructors
   Called public and same name of the class (parameters integer n)
   Inside Declare where:
   size is equal to n
   len is equal to zero
   arrQ is equal to new integer[size]
   front is equal minus 1
   rear is equal minus 1
  
step 5. Declare function to check if Queue is empty
   In this public you should declare boolean (any name you want)
   Which return front is equal minus 1
  
step 6. Declare function to check if queue is full
   Called public boolean (any name you want)
   which
   return front is equal to zero and rear is equal to size minus 1
  
step 7. Declare function to get the size of the queue
   Should be public integer (any name to get size)
   which
   return len
  
step 8. Declare function to check the front element of the queue
  
   Should be public integer peek
   then
   condition
   if (call method that you created above to check if is empty)
   //then you can write:
   throw new NoSuchElementException("Underflow Exception");
   then
   return name of your array that you declared in first line [front]
  

step 9. Declare function to insert an element to the queue
Create public void insert or enque with parameters integer i
then condition
if rear is equal minus 1
front is equal to zero
rear is equal to zero
name of array[rear] is equal to i

step 10. else if rear plus 1 is greater equal to size
you can write:
throw new IndexOutOfBoundsException("Overflow Exception");
else if rear plus 1 is less then size
name of array[increment rear] is equal to i
increment len

step 11. Declare function to remove front element from the queue
    Create public integer remove or deque
   then condition
   if to call method that you created above to check if is empty
   then you can write:
   throw new IndexOutOfBoundsException("Overflow Exception");
  
step 12. condition else
    decrement len
    declare variable integer (any name, ex: element) which is equal to name of         array[front]
    condition if front is equal to rear
    front equal minus 1
    rear equal minus 1
    condition else
    increment front
    and
    return element

step 13. Declare function to display the queue
Should be public void display
then
sys.out.print Queue:
condition if len is equal to zero
sys.out.print no values



step 14. then just:
return
then create for loop where i equal to front and i is less equal rear and increment i
then:
sys.out.print name of array[i] + " "


step 15. Scanner scan = new Scanner(System.in);

System.out.println("Enter the Size of Queue ");
            int n = scan.nextInt();
            /* creating object of class aQ */
            aQ q = new aQ(n);       
                   
            char ch;
            do{
                System.out.println("\n Queue Menu");
                System.out.println("1. Insert Value”);
                System.out.println("2. Remove Value”);
                System.out.println("3. Peek");
                System.out.println("4. Check if is empty");
                System.out.println("5. Check if is full");
                System.out.println("6. Check the size of Queue”);
                int choice = scan.nextInt();
                switch (choice)

In: Computer Science

Having Questions with my Java program. We consider a school is the user of this application....

Having Questions with my Java program.

We consider a school is the user of this application. A courseApp personnel can use the application do complete the following tasks,

1. Add courses. The courseApp can create courses, i.e., a user can add more than one courses for the courseApp in the application.

2. Add students. The courseApp can enroll students, i.e., a user can add a list of students for the courseApp in the application.

3. Register classes. A user can act as a student (e.g., select a student) and enroll in a list of courses not exceeding 18 credit hours in total.

4. Add instructors. The courseApp can hire instructors, i.e., a user can add instructors in the application.

5. Assign instructors to courses. A course can have one to three instructors who teach or co-teach the course. A user can assign instructors to a course.

6. Display students. The application can display the student list. 7. Display course information. The application can display the course information including minimally course name, credit hours, instructors, and the enrollment of the course.

This is my code for now and I don't know how to add instructors into the program:

===========

CourseApp.java

import java.util.Scanner;
import java.util.ArrayList;

public class CourseApp{

public static void main(String[] args){
//vars
ArrayList<Student> studentList = new ArrayList();
ArrayList<Instructor> instructorList = new ArrayList();
ArrayList<Course> courseList = new arrayList();

System.out.println("Add courses");
addCourses(courseList);
System.out.println("Add students");
addStudents(studentList);
System.out.println("Add instructors");
addInstructors(instructorList);
System.out.println("register for courses");
registerClasses(courseList,studentList);
System.out.println("\nShowing all student data");
for(Student s : student) {
System.out.println(s);
System.out.println("====================");
}
System.out.println("Showing all course details:");
for(Courses c : subjects) {
System.out.println(c);
System.out.println("====================");
}
}

//methods
//adds a course to the courseList
void addCourse(Scanner sc){ //you can change this parameter if you'd like
Scanner sc = new Scanner(System.in);
System.out.println("Enter the number of course: ");
int num = sc.nextInt();
sc.nextLine();
System.out.println("Enter course name and credit hours:");
for(int i=0; i<num;i++) {
String line = sc.nextLine();
String[] data = line.split(" ");
String name = data[0];
double hours = Double.parseDouble(data[1]);
classC.add(new Courses(name, hours));
}
}

//adds a student to the total student roster (studentList)
void addStudent(Scanner sc){ //you can change this paramter if you'd like, as well
Scanner sc = new Scanner(System.in);
System.out.println("Enter the number of student: ");
int num = sc.nextInt();sc.nextLine();
System.out.println("Enter name and id:");
for(int i=0; i<num;i++){
String line = sc.nextLine();
String[] data = line.split(" ");
String name = data[0].trim();
int id = Integer.parseInt(data[1]);
classS.add(new Student(name,id));

}
}

//adds an instructor to the total instructors roster (instructorList)
void addInstructor(Scanner sc){ //you can change this paramter if you'd like, as well

}

//adds a student in the student roster to a course
void registerStudentToCourse(Student student, Course course){
Scanner sc = new Scanner(System.in);
double hrs = 0.0;
ArrayList<Courses> temp = new ArrayList<>();
System.out.println("Enter the student's name: ");
String name = sc.nextLine().trim();
Student p = findStudent( s,name);

if(p!=null) {
System.out.println("Enter number of courses you want to add student: ");
int count = sc.nextInt();
sc.nextLine();
System.out.println("Enter course names: ");
ArrayList<Courses> t = studentOptedCourses(c,count);
p.setRegCourses(t);
}
else {
System.out.println("No student named"+name);
}
}

//attempts to set an instructor in the instructor roster to a course
void setInstructorToCourse(Instructor instructor, Course course){

}

//prints out the names and ID numbers of all the students in the student roster
void listAllStudent(){
for(Student s : student) {
if(s.getStudentName().equals(name)) {
return s;
}
}
return null;
}

//prints out the names of all of the hired instructors in the instructor roster
void listAllInstructors(){

}

//prints out the course name, its credit hours, the names of the students
//enrolled in the input course, and the names of the instructors enrolled
//in the input course.
String getCourseInfo(Course course){
for(Courses c: classC) {
if(c.getCourseName().equals(cname)) {
return c;
}
}
return null;
}
}

=================

Course.java

import java.util.ArrayList;
public class Course{
//vars
String name;
int creditHours;
ArrayList<Student> studentList = new ArrayList();
//The size of the Instructor array is set to three because there can only be a max of 3 instructors per course
Instructor[] instructor = new Instructor[3];
  
Courses(String name, double hrs) {
this.courseName = name;
this.creditHours = hrs;
}
Courses(String name, double hrs, ArrayList<String> teachers) { //what if more than one prof
this(name, hrs);
instructors = new ArrayList<>(teachers);
}
//constructor
public Course(String inputName, int creditHours){
}
//methods
//returns the name of the course
public String getName(){
}
//returns the value of addCreditHours
public int getCreditHours(){
}
//returns a list of students in this form (not set in stone): Adam Sandler, Jacob Righdon, Stephen Greene, and Jacob Nate.
//I wasn't too sure about how I would do this so, if you want to change it, feel free to do so
public String getStudents(){
}
//same as the getStudents class. Feel free to change this
public String getInstructors(){
}
//adds a student to studentList. Should this also add a student's ID to another linked list in this class, in the same index location?
void addStudent(Student student){
}
//adds an instructor to the instructor array. Returns true if there is space for a new instructor, and returns false if not.
boolean addInstructor(Instructor instructor){
}
//the overridden equals method
public boolean equals(Object object){
}
//the overriden hashCode method
public int hashCode(){
}
}

==============

Student.java

public class Student{
//vars
String name;
String studentID;
//totalCreditHours is set to 0 because it can only be added to as of now
int totalCreditHours = 0;
//constructor
public Student(String inputName, int studentID){
}

//methods
//returns the value of the name variable
public String getName(){
}

//returns the value of the studentID variable
public int getStudentID(){
}

//returns the value of the totalCreditHours variable
public int getTotalCreditHours(){
}
//if totalCreditHours will not be greater than 18 if the inputCreditHours was added to totalCreditHours,
//then return true and add inputCreditHours to totalCreditHours. Otherwise, do not add to totalCreditHours, and return false.
public boolean addCreditHours(int inputCreditHours){
}
//the overridden equals method
public boolean equals(Object object){
}
//the overriden hashCode method
public int hashCode(){
}
}

===============

Instructor.java

public class Instructor{
//vars
String name;
//constructor
public Instructor(String name){
}
//methods
//returns the value of name
public String getName(){
}
//the overridden equals method
public boolean equals(Object object){
}
//the overriden hashCode method
public int hashCode(){
}
}

In: Computer Science

For each of the actions depicted below, a magnet and/or metal loop moves with velocity v?

For each of the actions depicted below, a magnet and/or metal loop moves with velocity v? (v? is constant and has the same magnitude in all parts). Determine whether a current is induced in the metal loop. If so, indicate the direction of the current in the loop, either clockwise or counterclockwise when seen from the right of the loop. The axis of the magnet is lined up with the center of the loop.

Part A

For the action depicted in the figure, (Figure 1) indicate the direction of the induced current in the loop (clockwise, counterclockwise or zero, when seen from the right of the loop).

  • a.) clockwise
  • b.) counterclockwise
  • c.) zero

 

Part B

For the action depicted in the figure, (Figure 2) indicate the direction of the induced current in the loop (clockwise, counterclockwise or zero, when seen from the right of the loop).

  • a.) clockwise
  • b.) counterclockwise
  • c.) zero

Part C

For the action depicted in the figure, (Figure 3) indicate the direction of the induced current in the loop (clockwise, counterclockwise or zero, when seen from the right of the loop).

  • a.) clockwise
  • b.) counterclockwise
  • c.) zero

 

Part D

For the action depicted in the figure, (Figure 4) indicate the direction of the induced current in the loop (clockwise, counterclockwise or zero, when seen from the right of the loop).

  • a.) clockwise
  • b.) counterclockwise
  • c.) zero

 

Part E

For the action depicted in the figure, (Figure 5) indicate the direction of the induced current in the loop (clockwise, counterclockwise or zero, when seen from the right of the loop).

  • a.) clockwise
  • b.) counterclockwise
  • c.) zero

In: Physics

An electric eel (Electrophorus electricus) can produce a shock of up to 600 V and a...

An electric eel (Electrophorus electricus) can produce a shock of up to 600 V and a current of 1 A for a duration of 2 ms, which is used for hunting and self-defense. To perform this feat, approximately 80% of its body is filled with organs made up by electrocytes. These electrocytes act as self-charging capacitors and are lined up so that a current of ions can easily flow through them.

a) How much charge flows through the electrocytes in that amount of time?
b) If each electrocyte can maintain a potential of 100 mV, how many electrocytes must be in series to produce the maximum shock?
c) How much energy is released when the electric eel delivers a shock?
d) With the given information, estimate the equivalent capacitance of all the electrocyte cells in the electric eel.

In: Physics

A 10.0 v battery, a 5.00 ohm resistor, and a 10.0 H inductor are connected in...

A 10.0 v battery, a 5.00 ohm resistor, and a 10.0 H inductor are connected in series. After the current in the circuit has reached its maximum value, calculate (a) the power being supplied by the battery, (b) the power being delivered to the resistor, (c)the power being delivered to the inductor, and (d) the energy stored in the magnetic field of the inductor.

In: Physics