Questions
23-2. December 31 2017                         2016 33,500              &nb

23-2. December 31

2017                         2016

33,500                         13,000 Cash

12,250                         10,000 Accounts Receivable

12,000                         9,000 Inventory

0                                  3,000 Long-Investments

0                                  29,750 Building

0                                  (6,000) Accumalted depreciation on building

45,000                         20,000 Equipment

(2,000)                        (4,500) Accumlated depreciation on equipment

5,000                           9,250 Patents

105,750                       83,500 Total Assets

5,000                           3,000 Accounts Payable

1,000                           5,000 Dividends Payable

4,000                           8,500 Short-term Notes Payables

32,000                         25,000 Long term notes payable

39,000                         30,000 Common stock

6,000                            3,000 Pain-in capital excess of par

18,750                         9,000 Retained Earnings

105,750                       83,500 Total

Additional data related to 2017 are as follows:

1. Long-term investments were sold at 1,700 above their cost.

2. On January 1, 2017 the building was completely destroyed by a flood. Insurance proceeds on the building were $30,000.

3. Equipment that had cost 11,000 and was 40% depreciated was sold for 2,500.

4. Common stock with a par value of 5,000 and a market value of 6,000 was issued to pay off part of the long-term note.

5. A new long-term note was issued for the acquisition of equipment.

6. Equipment was purchased for cash.

7. Dividends were of 7,000 were declared during 2017.

Prepare the statement of cash flows, including any significant non-cash transactions after the reconciliation. (SHOW ALL OF YOUR WORK PLEASE)

In: Accounting

23-2. December 31 2017                         2016 33,500              &nb

23-2. December 31

2017                         2016

33,500                         13,000 Cash

12,250                         10,000 Accounts Receivable

12,000                         9,000 Inventory

0                                  3,000 Long-Investments

0                                  29,750 Building

0                                  (6,000) Accumalted depreciation on building

45,000                         20,000 Equipment

(2,000)                        (4,500) Accumlated depreciation on equipment

5,000                           9,250 Patents

105,750                       83,500 Total Assets

5,000                           3,000 Accounts Payable

1,000                           5,000 Dividends Payable

4,000                           8,500 Short-term Notes Payables

32,000                         25,000 Long term notes payable

39,000                         30,000 Common stock

6,000                            3,000 Pain-in capital excess of par

18,750                         9,000 Retained Earnings

105,750                       83,500 Total

Additional data related to 2017 are as follows:

1. Long-term investments were sold at 1,700 above their cost.

2. On January 1, 2017 the building was completely destroyed by a flood. Insurance proceeds on the building were $30,000.

3. Equipment that had cost 11,000 and was 40% depreciated was sold for 2,500.

4. Common stock with a par value of 5,000 and a market value of 6,000 was issued to pay off part of the long-term note.

5. A new long-term note was issued for the acquisition of equipment.

6. Equipment was purchased for cash.

7. Dividends were of 7,000 were declared during 2017.

Prepare the statement of cash flows, including any significant non-cash transactions after the reconciliation. (SHOW ALL OF YOUR WORK PLEASE)

In: Accounting

23-2. December 31 2017                         2016 33,500              &nb

23-2. December 31

2017                         2016

33,500                         13,000 Cash

12,250                         10,000 Accounts Receivable

12,000                         9,000 Inventory

0                                  3,000 Long-Investments

0                                  29,750 Building

0                                  (6,000) Accumalted depreciation on building

45,000                         20,000 Equipment

(2,000)                        (4,500) Accumlated depreciation on equipment

5,000                           9,250 Patents

105,750                       83,500 Total Assets

5,000                           3,000 Accounts Payable

1,000                           5,000 Dividends Payable

4,000                           8,500 Short-term Notes Payables

32,000                         25,000 Long term notes payable

39,000                         30,000 Common stock

6,000                            3,000 Pain-in capital excess of par

18,750                         9,000 Retained Earnings

105,750                       83,500 Total

Additional data related to 2017 are as follows:

1. Long-term investments were sold at 1,700 above their cost.

2. On January 1, 2017 the building was completely destroyed by a flood. Insurance proceeds on the building were $30,000.

3. Equipment that had cost 11,000 and was 40% depreciated was sold for 2,500.

4. Common stock with a par value of 5,000 and a market value of 6,000 was issued to pay off part of the long-term note.

5. A new long-term note was issued for the acquisition of equipment.

6. Equipment was purchased for cash.

7. Dividends were of 7,000 were declared during 2017.

Prepare the statement of cash flows, including any significant non-cash transactions after the reconciliation. (SHOW ALL OF YOUR WORK PLEASE)

In: Accounting

After reviewing the data in the 2010 and 2016 “Status and Trends in the Education of...

After reviewing the data in the 2010 and 2016 “Status and Trends in the Education of Racial and Ethnic Groups” reports, describe one trend about these racial/ethnic groups that stood out to you. Explain if this trend surprises you or not. Compare and contrast the trend data in the “Student Behaviors” section of the reports: What data categories were similar? Which categories were different or additional between the reports? How can this data be used to alleviate social problems in this population?

In: Psychology

1. The Item class includes two fields: a String for the name and a double for the price of an item that will be added to the inventory.

 

1. The Item class includes two fields: a String for the name and a double for the price of an item that will be added to the inventory.

2. The Item class will require one constructor that takes a name and price to initialize the fields. Since the name and price will be provided through TextFields, the parameters can be two Strings (be sure to convert the price to a double before storing this into the field).

3. Write getters and setters for the name and price. Try to be consistent with the behaviors of the setters compared to the constructor.

4. Write an equals method that returns true if two Item objects have the same name.

5. Write a toString method that returns the following String (replacing and with the fields of the object): “The item has a price of $.” Make sure the price is formatted to always round to two decimal places.

6. Study the code provided in the Inventory class. The addButton will add an Item to the ArrayList if that Item is new. This means the name of the Item must be different than any name already in the ArrayList.

7. In the Inventory class, you must implement the lambda expression for the addButton. Start by declaring a boolean to keep track of whether or not an item being added to the inventory (the ArrayList of Items) is actually new. This boolean is initialized to true.

8. Construct a new Item using the text from nameTextField for the name and the text from priceTextField for the price. If the constructor does not already handle the conversion, make sure the text for the price is converted to a double.

9. Write a for-each loop to iterate over the items in the ArrayList. Compare each item already in the ArrayList to the new item. If the name of any item in the ArrayList is the same as the name of the new item, set the boolean to false.

10. After the for-each loop completes, if the item is new, add the item to the ArrayList and display the following in the outputLabel: “Successfully added new item. The item has a price of $.” Keep in mind that the second sentence is the result of calling the object’s toString method. If the item is not new, display the following in the outputLabel: “Failed to add existing item.”

package inventory;

import javafx.application.Application;
import javafx.scene.Scene;
import javafx.stage.Stage;

import javafx.scene.layout.VBox;
import javafx.scene.layout.HBox;

import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.control.TextField;

import javafx.geometry.Insets;
import javafx.geometry.Pos;

import java.util.ArrayList;

public class Inventory extends Application
{ 
    public static void main(String[] args)
    {
        launch(args);
    }
    
    @Override
    public void start(Stage primaryStage)
    {
        ArrayList itemsList = new ArrayList<>();
        
        Label nameLabel = new Label("Name: ");
        TextField nameTextField = new TextField();
        HBox nameHBox = new HBox(nameLabel, nameTextField);
        nameHBox.setAlignment(Pos.CENTER);
        nameHBox.setPadding(new Insets(10, 0, 0, 0));
        
        Label priceLabel = new Label("Price: ");
        TextField priceTextField = new TextField();
        HBox priceHBox = new HBox(priceLabel, priceTextField);
        priceHBox.setAlignment(Pos.CENTER);
        
        Button addButton = new Button("Add Item");
        Label outputLabel = new Label();
        
        addButton.setOnAction(event -> {
            // IMPLEMENT LAMBDA EXPRESSION FOR ADDBUTTON
        });
        
        VBox root = new VBox(10, nameHBox, priceHBox, addButton, outputLabel);
        root.setAlignment(Pos.TOP_CENTER);
        
        Scene scene = new Scene(root, 500, 500);
        
        primaryStage.setTitle("Inventory");
        primaryStage.setScene(scene);
        primaryStage.show();
    }
}

In: Computer Science

BankAccount: You will create 3 files: The .h (specification file), .cpp (implementation file) and main file....

BankAccount:
You will create 3 files: The .h (specification file), .cpp (implementation file) and main file. You will practice writing class constants, using data files. You will add methods public and private to your BankAccount class, as well as helper methods in your main class. You will create an array of objects and practice passing objects to and return objects from functions. String functions practice has also been included.

  1. Extend the BankAccount class. The member fields of the class are: Account Name, Account Id, Account Number and Account Balance. The field Account Id (is like a private social security number of type int) Convert the variables MIN_BALANCE=9.99, REWARDS_AMOUNT=1000.00, REWARDS_RATE=0.04 to static class constants Here is the UML for the class:

                                                        BankAccount

-string accountName // First and Last name of Account holder

-int accountId // secret social security number

-int accountNumber // integer

-double accountBalance // current balance amount

+ BankAccount()                     //default constructor that sets name to “”, account number to 0 and balance to 0

+BankAccount(string accountName,int id, int accountNumber, double accountBalance)   // regular constructor

+getAccountBalance(): double // returns the balance

+getAccountName: string // returns name

+getAccountNumber: int

+setAccountBalance(double amount) : void

+equals(BankAccount other) : BankAccount // returns BankAccount object **

-getId():int **

+withdraw(double amount) : bool //deducts from balance and returns true if resulting balance is less than minimum balance

+deposit(double amount): void //adds amount to balance. If amount is greater than rewards amount, calls

// addReward method

-addReward(double amount) void // adds rewards rate * amount to balance

+toString(): String   // return the account information as a string with three lines. “Account Name: “ name

                                                                                                                                                   “Account Number:” number

                                                                                                                                                    “Account Balance:” balance

  1. Create a file called BankAccount.cpp which implements the BankAccount class as given in the UML diagram above. The class will have member variables( attributes/data) and instance methods(behaviours/functions that initialize, access and process data)
  2. Create a driver class to do the following:
    1. Read data from the given file BankData.data and create and array of BankAccount Objects

The order in the file is first name, last name, id, account number, balance. Note that account name consists of both first and last name

  1. Print the array (without secret id) similar to Homeowork2 EXCEPT the account balance must show only 2 decimal digits. You will need to do some string processing.
  2. Find the account with largest balance and print it
  3. Find the account with the smallest balance and print it.
  4. Determine if there are duplicate accounts in the array. If there are then set the duplicate account name to XXXX XXXX and rest of the fields to 0. Note it’s hard to “delete” elements from an array. Or add new accounts if there is no room in the array. If duplicate(s) are found, print the array.


    BankData.dat
    Matilda Patel 453456 1232 -4.00
    Fernando Diaz 323468 1234 250.0
    Vai vu 432657 1240 987.56
    Howard Chen 234129 1236 194.56
    Vai vu 432657 1240 -888987.56
    Sugata Misra 987654 1238 10004.8
    Fernando Diaz 323468 1234 8474.0
    Lily Zhaou 786534 1242 001.98

In: Computer Science

You have been assigned to a development team that is building software that will be used...

You have been assigned to a development team that is building software that will be used to control the operations of a bicycle rental store. A rental store has a limited number of vehicles that can be managed. A bicycle rental store must maintain information about how many vehicles are available for rental. The bicycle rental store must provide publicly available methods to allow vehicles to be added and removed from it. The rental store should also provide publicly available methods that reports its capacity. An attempt to add or remove the vehicle other than it’s capacity should print the message letting user know that he/she can’t add or delete the vehicle (Hint: use “if” condition to check the number of vehicles. They shouldn’t be more that 5/5 each to add and less than 1 to delete). At the moment there are two distinct types of vehicles: bicycle and quadricycle (four-wheel bicycle). Every vehicle has a company code, a fun name, number of wheels and a rental price. The bicycle has two wheels whereas quadricycle has four. Define the Java classes that are required to implement the functionality that is described above. Be sure to use object-oriented principles in your Java code. Hints • Vehicle class, Bicycle class, Quadricycle class, RentalStore class. • Bicycle class and Quadricycle class inherits extends from Vehicle class • RentalStore class will have methods to show the total number of vehicles, add/delete Bicycle and add/delete Quadricycle • Rental class should have ArrayList • In general every class should have attributes, constructor and it’s methods. • Besides RentalStore class, all other classes should have toString() method . • Create TestClass that have Main() method. Bicycles: company code 0001, a fun name ( your choice), number of wheels : 2 and a rental price 150 company code 0002, a fun name ( your choice), number of wheels : 2 and a rental price 110 company code 0003, a fun name ( your choice), number of wheels : 2 and a rental price 50 company code 0004, a fun name ( your choice), number of wheels : 2 and a rental price 250 company code 0005, a fun name ( your choice), number of wheels : 2 and a rental price 90 quadricycle : company code 0011, a fun name ( your choice), number of wheels : 4 and a rental price 250 company code 0012, a fun name ( your choice), number of wheels : 4 and a rental price 110 company code 0013, a fun name ( your choice), number of wheels : 4 and a rental price 210 company code 0014, a fun name ( your choice), number of wheels : 4 and a rental price 210 company code 0015, a fun name ( your choice), number of wheels : 4 and a rental price 190 For this scenario, we will have 5 bicycles and 5 quadricycles (total of 10 vehicles). Add all those vehicles to an ArrayList. Find bicycles with price less than $100 and delete all of them. Find quadricycles with price less than $200 and delete all of them. At last, show to total number of remaining vehicles with their details.

In: Computer Science

Verify Login Page that either gives error when not meeting the requirement or directing it to...

Verify Login Page that either gives error when not meeting the requirement or directing it to "blogs.php" when it's a successful log in..

Hi, so this is actually my html code for the log in and sign up page and I just needed help creating a verify log in/ sign up page with exception handling. Username has to be at least 6 character long. Password has to be 6 characters long and end with a number.

Blogs.com

"

"index.html"

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Blogs.com</title>
</head>

<body>
<h2>Sign in </h2>

<p> Enter your username and password to sign in!</p>
<form method="POST" action ="blogs.php">
<p> User Name <input type ="text" name="username"/></p>
<p> Password <input type="text" name ="passwordname" /></p>

<input type="submit" value= "Sign in"/></p>
</form>


<p> Sign up if you're a first time user!</p>


<form method="POST" action ="UserRegistration.php">
<input type="submit" value= "Sign up!"/></p>


<br /><br />
<script>
var date =new Date();
document.write("Today " ,date);
</br>
</script>
</body>
</html>

"UserRegistration"

<?php
   session_start();
   $_SESSION = array();
   session_destroy();
  
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
   <html xmlns="http://www.w3.org/1999/xhtml">
       <head>
           <title>User Registration</title>
           <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
       </head>
       <body>
           <h1>User Registration</h1>
           <h2>Register / Log In</h2>
           <p>New user's, please complete the top form to register as a new user. Returning user's, please complete
               the second form to log in.</p>
           <hr />
           <h3>User Registration</h3>
           <form method="post" action="Register.php?<?php echo SID; ?>">
               <p>Enter your Name:
                   First <input type="text" name="first" />
                   Last <input type="text" name="last" />
               </p>
               <p>Enter your e-mail address:
                   <input type="text" name="email" />
               </p>
               <p>Enter your password:
                   <input type="password" name="password" />
               </p>
               <p>Confirm your password:
                   <input type="password" name="password2" />
               </p>
               <p>
                   <em>(Passwords are case-sensitive and must be at least 6 characters long)</em>
               </p>
               <input type="reset" name="reset" value="Reset Registration Form" />
               <input type="submit" name="register" value="Register" />
           </form>
           <hr />
           <?php
               $nag_counter = 0;
               if(isset($_COOKIE['userVisit']))
                   $UserVisit = "<p>Your visit number is $nag_counter was on " . $_COOKIE['userVisit'];
                  
               else
                   $UserVisit = "<p>This is your first visit!</p>\n";
              
               ++$nag_counter;
               setcookie("userVisit", date("F j, Y, g:i a"), time()+60*60*24*365);
           ?>
           <?php
               echo $UserVisit;
           ?>
       </body>
   </html>

"

In: Computer Science

IV              Suppose the U.S. government began 2016 with no debt. The expenditures listed below do not...

IV              Suppose the U.S. government began 2016 with no debt. The expenditures listed below do not include interest on debt.

                 

                  2016: Spending on goods & services and transfers         $4.5 trillion

                              tax receipts                                                                                      $4 trillion

                  What is the budget deficit? How much must the Treasury borrow?

                  2017:   Expenditures and tax receipts both increase by 1% from the year before.

                               In addition, the debt incurred in 2016 has a 2% interest rate, which must be paid this year.

                  What is the budget deficit? How much must the Treasury borrow? What is its total debt?

                 

                  2018:   Spending and tax are same as 2017. Bonds issued in 2017 carry the same interest rate.

                  What is the budget deficit? How much must the Treasury borrow? What is its total debt?

                 

                  2019:   Spending is the same as 2018. But taxes increase 10% due to major expansion in macroeconomy. Bonds issued in 2018 carry the same interest rate. In addition, half of the                                         (cumulative) Treasury bonds mature this year.

                 

                  What is the budget deficit? How much must the Treasury borrow? How much in bonds must it issue?

In: Finance

The Fitzgerald Company maintains a checking account at the Bank of the North. The bank provides...

The Fitzgerald Company maintains a checking account at the Bank of the North.
The bank provides a bank statement along with canceled checks on the last day of each month. T
he October 31, 2016, bank statement included the following information:



Balance, October 1, 2016 $ 32,690
   Deposits 86,000
   Checks processed -75,200
   Service charges -350
   NSF checks -1,600
   Monthly loan payment deducted
      directly by bank from account
      (includes $400 in interest)    (3,400)
Balance, October 31, 2016 $38,140

The company's general ledger cash (checking) account had a balance of $42,544 at the end of October.
Deposits outstanding totaled $4,224, and all checks written by the company were processed by the bank
except for those totaling $5,620. In addition, a check for $500 for the purchase of office furniture was
incorrectly recorded by the company as a $50 disbursement. The bank correctly processed the check
during October.



Required:

1. Prepare a bank reconciliation for the month of October.
2. Prepare the necessary journal entries at the end of October to adjust the general ledger cash account.
Use the Excel file template provided.

In: Accounting