In the two-level directory, if a user refers to a particular file then__________________
Select one:
a. first UFD (user file directory) is searched, then MFD (master file directory)
b. only his/her own UFD (user file directory) is searched
(WRONG)c. first MFD (master file directory) is searched, then UFD (user file directory)
d. only MFD (master file directory) is searched
When the exclusive lock is applied to a file then _____________
Select one:
a. many processes can read and write to this file concurrently
b. only one process can write to this file, but many processes can read it concurrently
c. processes can write to this file only
d. only one process can use this file
Which of these RAID levels is best for storing large volumes of data?
Select one:
a. RAID level 3
b.
RAID levels 0 + 1 and 1 + 0
c. RAID level 4
d. RAID level 5
In: Computer Science
Create a script that take a directory path from the user. What I want you to do is figure out the total size of all files in the directory. You will need to import the os module for this.
In: Computer Science
“By the early 1970s, the revolution was over in America, and San Francisco—its fall- en capital—staggered on the edge of chaos,” David Talbot writes. “The city was overrun with false prophets and savage messiahs, as well as double agents and police inform- ers. Strange creeds and mysterious leaders developed overnight followings. Inexplica- ble communiques were issued from the underground. The sacraments of blood and guns replaced peace and love.” Briefly describe some notable examples of blood and guns replacing peace and love in the 1970s.
In: Psychology
urchases, Accounts Payable Subsidiary Account, and Accounts Payable Ledger
Sterling Forest Landscaping designs and installs landscaping. The landscape designers and office staff use office supplies, while field supplies (rock, bark, etc.) are used in the actual landscaping. Purchases on account completed by Sterling Forest Landscaping during October are as follows:
Oct. 2. | Purchased office supplies on account from Meade Co., $400. | |
Oct. 5. | Purchased office equipment on account from Peach Computers Co., $3,980. | |
Oct. 9. | Purchased office supplies on account from Executive Office Supply Co., $320. | |
Oct. 13. | Purchased field supplies on account from Yamura Co., $1,420. | |
Oct. 14. | Purchased field supplies on account from Omni Co., $2,940. | |
Oct. 17. | Purchased field supplies on account from Yamura Co., $1,890. | |
Oct. 24. | Purchased field supplies on account from Omni Co., $3,880. | |
Oct. 29. | Purchased office supplies on account from Executive Office Supply Co., $310. | |
Oct. 31. | Purchased field supplies on account from Omni Co., $1,800. |
Note: Posting references have been provided.
Required:
1. Insert the following balances in the general ledger as of October 1:
14 | Field Supplies | $5,920 |
15 | Office Supplies | 750 |
18 | Office Equipment | 12,300 |
21 | Accounts Payable | 1,170 |
After completing the recording of transactions in part 3, post the purchases journal to the accounts in the general ledger. If an amount box does not require an entry, leave it blank.
GENERAL LEDGER | ||||||
---|---|---|---|---|---|---|
Balance | ||||||
Date | Item | Post. Ref. | Debit | Credit | Dr. | Cr. |
Account: Field Supplies #14 | ||||||
Oct. 1 | Balance | ✔ | ||||
P30 | ||||||
Account: Office Supplies #15 | ||||||
Oct. 1 | Balance | ✔ | ||||
P30 | ||||||
Account: Office Equipment #18 | ||||||
Oct. 1 | Balance | ✔ | ||||
P30 | ||||||
Account: Accounts Payable #21 | ||||||
Oct. 1 | Balance | ✔ | ||||
P30 |
2. Insert the following balances in the accounts payable subsidiary ledger as of October 1:
Executive Office Supply Co. | $390 |
Meade Co. | 780 |
Omni Co. | - |
Peach Computers Co. | - |
Yamura Co. | - |
After completing the recording of transactions in part 3, post to the creditor accounts in the accounts payable subsidiary ledger immediately after each entry. If an amount box does not require an entry, leave it blank.
ACCOUNTS PAYABLE SUBSIDIARY LEDGER | |||||
---|---|---|---|---|---|
Date | Item | Post. Ref. | Debit | Credit | Balance |
Account: Executive Office Supply Co. | |||||
Oct. 1 | Balance | ✔ | |||
P30 | |||||
P30 | |||||
Account: Meade Co. | |||||
Oct. 1 | Balance | ✔ | |||
P30 | |||||
Account: Omni Co. | |||||
P30 | |||||
P30 | |||||
P30 | |||||
Account: Peach Computers Co. | |||||
P30 | |||||
Account: Yamura Co. | |||||
P30 | |||||
P30 |
3. Journalize the transactions for October, using a purchases journal (p. 30) similar to the one illustrated in this chapter. Prepare the purchases journal with columns for Accounts Payable, Field Supplies, Office Supplies, and Other Accounts. Post to the creditor accounts in the accounts payable subsidiary ledger immediately after each entry.
4. Post the purchases journal to the accounts in the general ledger (in part 1). If an amount box does not require an entry, leave it blank.
If no other account is needed in the "Other Accounts Dr." column select "No Entry Required".
PURCHASES JOURNAL | PAGE 30 | |||||||
---|---|---|---|---|---|---|---|---|
Date | Account Credited | Post. Ref. | Accounts Payable Cr. | Field Supplies Dr. | Office Supplies Dr. | Other Accounts Dr. | Post. Ref. | Amount |
Oct. 2 | ✔ | |||||||
Oct. 5 | ✔ | |||||||
Oct. 9 | ✔ | |||||||
Oct. 13 | ✔ | |||||||
Oct. 14 | ✔ | |||||||
Oct. 17 | ✔ | |||||||
Oct. 24 | ✔ | |||||||
Oct. 29 | ✔ | |||||||
Oct. 31 | ✔ | |||||||
Oct. 31 | ||||||||
Oct. 31 | (✔) |
5a. What is the sum of the creditor balances in
the subsidiary ledger at October 31?
$
5b. What is the balance of the accounts payable
controlling account at October 31?
$
6. What type of e-commerce application would be
used to plan and coordinate transactions with suppliers?
In: Accounting
Purchases, Accounts Payable Subsidiary Account, and Accounts Payable Ledger
Sterling Forest Landscaping designs and installs landscaping. The landscape designers and office staff use office supplies, while field supplies (rock, bark, etc.) are used in the actual landscaping. Purchases on account completed by Sterling Forest Landscaping during October are as follows:
Oct. 2. | Purchased office supplies on account from Meade Co., $400. | |
Oct. 5. | Purchased office equipment on account from Peach Computers Co., $3,980. | |
Oct. 9. | Purchased office supplies on account from Executive Office Supply Co., $320. | |
Oct. 13. | Purchased field supplies on account from Yamura Co., $1,420. | |
Oct. 14. | Purchased field supplies on account from Omni Co., $2,940. | |
Oct. 17. | Purchased field supplies on account from Yamura Co., $1,890. | |
Oct. 24. | Purchased field supplies on account from Omni Co., $3,880. | |
Oct. 29. | Purchased office supplies on account from Executive Office Supply Co., $310. | |
Oct. 31. | Purchased field supplies on account from Omni Co., $1,800. |
Note: Posting references have been provided.
Required:
1. Insert the following balances in the general ledger as of October 1:
14 | Field Supplies | $5,920 |
15 | Office Supplies | 750 |
18 | Office Equipment | 12,300 |
21 | Accounts Payable | 1,170 |
After completing the recording of transactions in part 3, post the purchases journal to the accounts in the general ledger. If an amount box does not require an entry, leave it blank.
GENERAL LEDGER | ||||||
---|---|---|---|---|---|---|
Balance | ||||||
Date | Item | Post. Ref. | Debit | Credit | Dr. | Cr. |
Account: Field Supplies #14 | ||||||
Oct. 1 | Balance | ✔ | ||||
P30 | ||||||
Account: Office Supplies #15 | ||||||
Oct. 1 | Balance | ✔ | ||||
P30 | ||||||
Account: Office Equipment #18 | ||||||
Oct. 1 | Balance | ✔ | ||||
P30 | ||||||
Account: Accounts Payable #21 | ||||||
Oct. 1 | Balance | ✔ | ||||
P30 |
2. Insert the following balances in the accounts payable subsidiary ledger as of October 1:
Executive Office Supply Co. | $390 |
Meade Co. | 780 |
Omni Co. | - |
Peach Computers Co. | - |
Yamura Co. | - |
After completing the recording of transactions in part 3, post to the creditor accounts in the accounts payable subsidiary ledger immediately after each entry. If an amount box does not require an entry, leave it blank.
ACCOUNTS PAYABLE SUBSIDIARY LEDGER | |||||
---|---|---|---|---|---|
Date | Item | Post. Ref. | Debit | Credit | Balance |
Account: Executive Office Supply Co. | |||||
Oct. 1 | Balance | ✔ | |||
P30 | |||||
P30 | |||||
Account: Meade Co. | |||||
Oct. 1 | Balance | ✔ | |||
P30 | |||||
Account: Omni Co. | |||||
P30 | |||||
P30 | |||||
P30 | |||||
Account: Peach Computers Co. | |||||
P30 | |||||
Account: Yamura Co. | |||||
P30 | |||||
P30 |
3. Journalize the transactions for October, using a purchases journal (p. 30) similar to the one illustrated in this chapter. Prepare the purchases journal with columns for Accounts Payable, Field Supplies, Office Supplies, and Other Accounts. Post to the creditor accounts in the accounts payable subsidiary ledger immediately after each entry.
4. Post the purchases journal to the accounts in the general ledger (in part 1). If an amount box does not require an entry, leave it blank.
If no other account is needed in the "Other Accounts Dr." column select "No Entry Required".
PURCHASES JOURNAL | PAGE 30 | |||||||
---|---|---|---|---|---|---|---|---|
Date | Account Credited | Post. Ref. | Accounts Payable Cr. | Field Supplies Dr. | Office Supplies Dr. | Other Accounts Dr. | Post. Ref. | Amount |
Oct. 2 | ✔ | |||||||
Oct. 5 | ✔ | |||||||
Oct. 9 | ✔ | |||||||
Oct. 13 | ✔ | |||||||
Oct. 14 | ✔ | |||||||
Oct. 17 | ✔ | |||||||
Oct. 24 | ✔ | |||||||
Oct. 29 | ✔ | |||||||
Oct. 31 | ✔ | |||||||
Oct. 31 | ||||||||
Oct. 31 | (✔) |
5a. What is the sum of the creditor balances in
the subsidiary ledger at October 31?
$
5b. What is the balance of the accounts payable
controlling account at October 31?
$
6. What type of e-commerce application would be
used to plan and coordinate transactions with suppliers?
Check My Work2 more Check My Work uses remaining.
In: Accounting
In 2005, North Inc. acquired an 80% interest in South Co. On the date of acquisition, the book values of South’s asset and liability accounts at that time were considered to be equal to their fair values. No allocations or goodwill resulted from the combination because North’s acquisition value corresponded to the underlying book value of South The following selected account balances were from the individual financial records of these two companies as of December 31, 2019: . North South Sales $ 896,000.00 $ 504,000.00 Cost of Goods Sold 406,000 276,000 Operating Expenses 210,000 147,000 Retained Earnings, 1/1/19 1,036,000 252,000 Inventory 484,000 154,000 Buildings, net 501,000 220,000 Investment income not provided North routinely transfers inventory to South. Of the inventory transferred to South, 30% remained in inventory at the end of 2018 and was sold in the following year. 33.33% of the 2019 intra entity sales remained on hand at the end of 2019 and were sold at the beginning of 2020. More date regarding the intra entity transfers for 2018-2019 are shown below: 2018 2019 North Sales Price to South 130000 165000 North's Cost of Goods Sold to South 104000 132000 Unsold Inventory at end of year 30% 33.33% For the consolidated financial statements for 2018, determine the balances that would appear for the following accounts: a) Cost of Goods Sold; b) Inventory; and c) Net income attributable to the noncontrolling interest.
In: Accounting
In: Accounting
Using Python create a script called create_notes_drs.py. In the file, define and call a function called main that does the following:
Bonus Challenge: Add a conditional statement to abort the script if the directory CyberSecurity-Notes already exists.
In: Computer Science
Exercise 5-8 Specific identification LO P1
Hemming Co. reported the following current-year purchases and sales for its only product. |
Date | Activities | Units Acquired at Cost | Units Sold at Retail | |||||||||||||
Jan. | 1 | Beginning inventory | 200 | units | @ $10 | = | $ | 2,000 | ||||||||
Jan. | 10 | Sales | 150 | units | @ $40 | |||||||||||
Mar. | 14 | Purchase | 350 | units | @ $15 | = | 5,250 | |||||||||
Mar. | 15 | Sales | 300 | units | @ $40 | |||||||||||
July | 30 | Purchase | 450 | units | @ $20 | = | 9,000 | |||||||||
Oct. | 5 | Sales | 430 | units | @ $40 | |||||||||||
Oct. | 26 | Purchase | 100 | units | @ $25 | = | 2,500 | |||||||||
Totals | 1,100 | units | $ | 18,750 | 880 | units | ||||||||||
Required:
Hemming uses a perpetual inventory system. Assume that ending inventory is made up of 45 units from the March 14 purchase, 75 units from the July 30 purchase, and all 100 units from the October 26 purchase. Using the specific identification method, calculate the following. |
In: Accounting
The Luxury Ocean Cruise Outings company has provided Global Rain with a software specification document that details a menu-driven software application. Other developers on your software development team have already begun this project by creating the Ship, Cruise, Passenger, and Driver classes. You will modify the classes by including attributes and their proper data structures, writing methods to perform required functionality and behavior, and making sure that your program performs input validation and exception handling.
--------DRIVER.JAVA---------
import java.util.ArrayList;
import java.util.Scanner;
import static java.lang.Integer.parseInt;
public class Driver {
// class variables (add more as needed)
private static ArrayList shipList = new ArrayList();
private static ArrayList cruiseList = new ArrayList();
private static ArrayList passengerList = new ArrayList();
public static void main(String[] args) {
initializeShipList(); // initial ships
initializeCruiseList(); // initial cruises
initializePassengerList(); // initial passengers
// add loop and code here that accepts and validates user
input
// and takes the appropriate action. include appropriate
// user feedback and redisplay the menu as needed
}
// hardcoded ship data for testing
// Initialize ship list
public static void initializeShipList() {
add("Candy Cane", 20, 40, 10, 60, true);
add("Peppermint Stick", 10, 20, 5, 40, true);
add("Bon Bon", 12, 18, 2, 24, false);
add("Candy Corn", 12, 18, 2, 24, false);
}
// hardcoded cruise data for testing
// Initialize cruise list
public static void initializeCruiseList() {
Cruise newCruise = new Cruise("Southern Swirl", "Candy Cane",
"Miami", "Cuba", "Miami");
cruiseList.add(newCruise);
}
// hardcoded cruise data for testing
// Initialize passenger list
public static void initializePassengerList() {
Passenger newPassenger1 = new Passenger("Neo Anderson", "Southern
Swirl", "STE");
passengerList.add(newPassenger1);
Passenger newPassenger2 = new Passenger("Trinity", "Southern
Swirl", "STE");
passengerList.add(newPassenger2);
Passenger newPassenger3 = new Passenger("Morpheus", "Southern
Swirl", "BAL");
passengerList.add(newPassenger3);
}
// custom method to add ships to the shipList ArrayList
public static void add(String tName, int tBalcony, int
tOceanView,
int tSuite, int tInterior, boolean tInService) {
Ship newShip = new Ship(tName, tBalcony, tOceanView, tSuite,
tInterior, tInService);
shipList.add(newShip);
}
public static void printShipList(String listType) {
// printShipList() method prints list of ships from the
// shipList ArrayList. There are three different outputs
// based on the listType String parameter:
// name - prints a list of ship names only
// active - prints a list of ship names that are "in service"
// full - prints tabbed data on all ships
if (shipList.size() < 1) {
System.out.println("\nThere are no ships to print.");
return;
}
if (listType == "name") {
System.out.println("\n\nSHIP LIST - Name");
for (int i = 0; i < shipList.size(); i++) {
System.out.println(shipList.get(i));
}
} else if (listType == "active") {
System.out.println("\n\nSHIP LIST - Active");
// complete this code block
}
} else if (listType == "full") {
System.out.println("\n\nSHIP LIST - Full");
System.out.println("-----------------------------------------------");
System.out.println(" Number of Rooms In");
System.out.print("SHIP NAME Bal OV Ste Int Service");
System.out.println("\n-----------------------------------------------");
for (Ship eachShip: shipList)
eachShip.printShipData();
} else
System.out.println("\n\nError: List type not defined.");
}
public static void printCruiseList(String listType) {
if (cruiseList.size() < 1) {
System.out.println("\nThere are no cruises to print.");
return;
}
if (listType == "list") {
System.out.println("\n\nCRUISE LIST");
for (int i=0; i < cruiseList.size(); i++) {
System.out.println(cruiseList.get(i));
}
} else if (listType == "details") {
System.out.println("\n\nCRUISE LIST - Details");
System.out.println("------------------------------------------------------------------------------------------");
System.out.println("
|----------------------PORTS-----------------------|");
System.out.print("CRUISE NAME SHIP NAME DEPARTURE DESTINATION
RETURN");
System.out.println("\n-----------------------------------------------------------------------------------------");
for (Cruise eachCruise: cruiseList)
eachCruise.printCruiseDetails();
} else
System.out.println("\n\nError: List type not defined.");
}
public static void printPassengerList() {
if (passengerList.size() < 1) {
System.out.println("\nThere are no passengers to print.");
return;
}
System.out.println("\n\nPASSENGER LIST");
System.out.println("-----------------------------------------------------");
System.out.print("PASSENGER NAME CRUISE ROOM TYPE");
System.out.println("\n-----------------------------------------------------");
for (Passenger eachPassenger: passengerList)
eachPassenger.printPassenger();
}
// display text-based menu
public static void displayMenu() {
System.out.println("\n\n");
System.out.println("\t\t\tLuxury Ocean Cruise Outings");
System.out.println("\t\t\t\t\tSystem Menu\n");
System.out.println("[1] Add Ship [A] Print Ship Names");
System.out.println("[2] Edit Ship [B] Print Ship In Service
List");
System.out.println("[3] Add Cruise [C] Print Ship Full
List");
System.out.println("[4] Edit Cruise [D] Print Cruise List");
System.out.println("[5] Add Passenger [E] Print Cruise
Details");
System.out.println("[6] Edit Passenger [F] Print Passenger
List");
System.out.println("[x] Exit System");
System.out.println("\nEnter a menu selection: ");
}
// Add a New Ship
public static void addShip() {
// complete this method
}
// Edit an existing ship
public static void editShip() {
// This method does not need to be completed
System.out.println("The \"Edit Ship\" feature is not yet
implemented.");
}
// Add a New Cruise
public static void addCruise() {
// complete this method
}
// Edit an existing cruise
public static void editCruise() {
// This method does not need to be completed
System.out.println("The \"Edit Cruise\" feature is not yet
implemented.");
}
// Add a New Passenger
public static void addPassenger() {
Scanner newPassengerInput = new Scanner(System.in);
System.out.println("Enter the new passenger's name: ");
String newPassengerName = newPassengerInput.nextLine();
// ensure new passenger name does not already exist
for (Passenger eachPassenger: passengerList) {
if
(eachPassenger.getPassengerName().equalsIgnoreCase(newPassengerName))
{
System.out.println("That passenger is already in the system.
Exiting to menu...");
return; // quits addPassenger() method processing
}
}
// get cruise name for passenger
System.out.println("Enter cruise name: ");
String newCruiseName = newPassengerInput.nextLine();
// ensure cruise exists
for (Cruise eachCruise: cruiseList) {
if (eachCruise.getCruiseName().equalsIgnoreCase(newCruiseName))
{
// cruise does exist
} else {
System.out.println("That cruise does not exist in the system.
Exiting to menu...");
return; // quits addPassenger() method processing
}
}
// get room type
System.out.println("Enter Room Type (BAL, OV, STE, or INT:
");
String room = newPassengerInput.nextLine();
// validate room type
if ((room.equalsIgnoreCase("BAL")) || (room.equalsIgnoreCase("OV"))
||
(room.equalsIgnoreCase("STE")) || (room.equalsIgnoreCase("INT")))
{
// validation passed - add passenger
Passenger newPassenger = new Passenger(newPassengerName,
newCruiseName, room.toUpperCase());
passengerList.add(newPassenger);
} else {
System.out.println("Invalid input. Exiting to menu...");
return; // quits addPassenger() method processing
}
}
// Edit an existing passenger
public static void editPassenger() {
// This method does not need to be completed
System.out.println("The \"Edit Passenger\" feature is not yet
implemented.");
}
// Method to check if input is a number
public static boolean isANumber(String str) {
for (int i = 0; i < str.length(); i++) {
if (Character.isDigit(str.charAt(i)) == false)
return false;
}
return true;
}
}
-------CRUISE.JAVA--------
public class Cruise {
// Class Variables
private String cruiseName;
private String cruiseShipName;
private String departurePort;
private String destination;
private String returnPort;
// Constructor - default
Cruise() {
}
// Constructor - full
Cruise(String tCruiseName, String tShipName, String tDeparture,
String tDestination, String tReturn) {
cruiseName = tCruiseName;
cruiseShipName = tShipName;
departurePort = tDeparture;
destination = tDestination;
returnPort = tReturn;
}
// Accessors
public String getCruiseName() {
return cruiseName;
}
public String getCruiseShipName() {
return cruiseShipName;
}
public String getDeparturePort() {
return departurePort;
}
public String getDestination() {
return destination;
}
public String getReturnPort() {
return returnPort;
}
// Mutators
public void setCruiseName(String tVar) {
cruiseName = tVar;
}
public void setCruiseShipName(String tVar) {
cruiseShipName = tVar;
}
public void setDeparturePort(String tVar) {
departurePort = tVar;
}
public void setDestination(String tVar) {
destination = tVar;
}
public void setReturnPort(String tVar) {
returnPort = tVar;
}
// print cruise details
public void printCruiseDetails() {
// complete this method
}
// method added to print ship's name vice memory address
@Override
public String toString() {
return cruiseName;
}
}
In: Computer Science