Questions
A point charge with a mass of 1.81 ng and a charge of +1.22 uC moves...

A point charge with a mass of 1.81 ng and a charge of +1.22 uC moves in the x-y plane with a velocity of 3.00 x 104 m/s in a direction 15° above the +x-axis. At time t=0, the point charge enters a uniform magnetic field of strength 1.25 T that points in the +x-direction. Assume that the point charge remains immersed in the uniform magnetic field after time t=0.

a. (5 points) What is the magnitude and direction of the magnetic force that the magnetic field exerts on the point charge at time t=0?

b. (5 points) How does the x-component of the charge’s initial velocity effect the motion of this point charge as it moves through the uniform magnetic field? Does its magnitude change? Does its direction change? Explain your reasoning.

c. (5 points) How does the y-component of the charge’s initial velocity effect the motion of this point charge as it moves through the uniform magnetic field? Does its magnitude change? Does its direction change? Explain your reasoning.

d. (5 points) Use your answers from parts 1b & 1c to explain why the path of this point charge is helical (corkscrew-shaped). Explain your reasoning.

e. (2.5 points) Determine the radius of the circular part of the point charge’s helical path.

In: Physics

Consider an economy with three people and two goods, one public (g) and one private (x)....

Consider an economy with three people and two goods, one public (g) and one private (x). The utility functions for the three people are UA = xA +20lng, UB = xB +30lng, and UC = xC +10lng. The marginal cost of g is constant at 10. According to the Samuelson condition, what is the socially efficient amount of the public good in this economy? Explain why the Samuelson condition picks out the efficient amount of a public good.

In: Economics

(Based on Alton Bridge Video Clip) Large construction projects, like buildings and bridges, are some of...

(Based on Alton Bridge Video Clip) Large construction projects, like buildings and bridges, are some of the most complex projects to manage. The construction of the bridge from

Alton, Ill. to St. Louis provides an excellent example of a complex project. Describe three challenges the Alton Bridge project had faced and how they were resolved?

In: Operations Management

Explain in one paragraph each how the following changes in the business environment described are likely...

Explain in one paragraph each how the following changes in the business environment described are likely to impact on the organisation’s human resources requirements;

Your organisation builds roads and bridges. It relies on civil engineers to carry out the work. Having reviewed the external business environment you find that there is a shortage of qualified civil engineers in Australia.

In: Civil Engineering

This program extends the earlier "Online shopping cart" program. (Consider first saving your earlier program). (1)...

This program extends the earlier "Online shopping cart" program. (Consider first saving your earlier program).

(1) Extend the ItemToPurchase class to contain a new attribute. (2 pts)

  • item_description (string) - Set to "none" in default constructor

Implement the following method for the ItemToPurchase class.

  • print_item_description() - Prints item_description attribute for an ItemToPurchase object. Has an ItemToPurchase parameter.


Ex. of print_item_description() output:

Bottled Water: Deer Park, 12 oz.

(2) Build the ShoppingCart class with the following data attributes and related methods. Note: Some can be method stubs (empty methods) initially, to be completed in later steps.

  • Parameterized constructor which takes the customer name and date as parameters (2 pts)
  • Attributes
  • customer_name (string) - Initialized in default constructor to "none"
  • current_date (string) - Initialized in default constructor to "January 1, 2016"
  • cart_items (list)
  • Methods
  • add_item()
    • Adds an item to cart_items list. Has parameter ItemToPurchase. Does not return anything.
  • remove_item()
    • Removes item from cart_items list. Has a string (an item's name) parameter. Does not return anything.
    • If item name cannot be found, output this message: Item not found in cart. Nothing removed.
  • modify_item()
    • Modifies an item's description, price, and/or quantity. Has parameter ItemToPurchase. Does not return anything.
    • If item can be found (by name) in cart, check if parameter has default values for description, price, and quantity. If not, modify item in cart.
    • If item cannot be found (by name) in cart, output this message: Item not found in cart. Nothing modified.
  • get_num_items_in_cart() (2 pts)
    • Returns quantity of all items in cart. Has no parameters.
  • get_cost_of_cart() (2 pts)
    • Determines and returns the total cost of items in cart. Has no parameters.
  • print_total()
    • Outputs total of objects in cart.
    • If cart is empty, output this message: SHOPPING CART IS EMPTY
  • print_descriptions()
    • Outputs each item's description.

Ex. of print_total() output:

John Doe's Shopping Cart - February 1, 2016
Number of Items: 8

Nike Romaleos 2 @ $189 = $378
Chocolate Chips 5 @ $3 = $15
Powerbeats 2 Headphones 1 @ $128 = $128

Total: $521


Ex. of print_descriptions() output:

John Doe's Shopping Cart - February 1, 2016

Item Descriptions
Nike Romaleos: Volt color, Weightlifting shoes
Chocolate Chips: Semi-sweet
Powerbeats 2 Headphones: Bluetooth headphones


(3) In main section of your code, prompt the user for a customer's name and today's date. Output the name and date. Create an object of type ShoppingCart. (1 pt)

Ex.

Enter customer's name:
John Doe
Enter today's date:
February 1, 2016

Customer name: John Doe
Today's date: February 1, 2016


(4) Implement the print_menu() function. print_menu() has a ShoppingCart parameter, and outputs a menu of options to manipulate the shopping cart. Each option is represented by a single character. Build and output the menu within the function.

If the an invalid character is entered, continue to prompt for a valid choice. Hint: Implement Quit before implementing other options. Call print_menu() in the main() function. Continue to execute the menu until the user enters q to Quit. (3 pts)

Ex:

MENU
a - Add item to cart
r - Remove item from cart
c - Change item quantity
i - Output items' descriptions
o - Output shopping cart
q - Quit

Choose an option:


(5) Implement Output shopping cart menu option. (3 pts)

Ex:

OUTPUT SHOPPING CART
John Doe's Shopping Cart - February 1, 2016
Number of Items: 8

Nike Romaleos 2 @ $189 = $378
Chocolate Chips 5 @ $3 = $15
Powerbeats 2 Headphones 1 @ $128 = $128

Total: $521


(6) Implement Output item's description menu option. (2 pts)

Ex.

OUTPUT ITEMS' DESCRIPTIONS
John Doe's Shopping Cart - February 1, 2016

Item Descriptions
Nike Romaleos: Volt color, Weightlifting shoes
Chocolate Chips: Semi-sweet
Powerbeats 2 Headphones: Bluetooth headphones


(7) Implement Add item to cart menu option. (3 pts)

Ex:

ADD ITEM TO CART
Enter the item name:
Nike Romaleos
Enter the item description:
Volt color, Weightlifting shoes
Enter the item price:
189
Enter the item quantity:
2


(8) Implement remove item menu option. (4 pts)

Ex:

REMOVE ITEM FROM CART
Enter name of item to remove:
Chocolate Chips


(9) Implement Change item quantity menu option. Hint: Make new ItemToPurchase object before using ModifyItem() method. (5 pts)

Ex:

CHANGE ITEM QUANTITY
Enter the item name:
Nike Romaleos
Enter the new quantity:
3

In: Computer Science

This program extends the earlier "Online shopping cart" program. (Consider first saving your earlier program). (1)...

This program extends the earlier "Online shopping cart" program. (Consider first saving your earlier program).

(1) Extend the ItemToPurchase class to contain a new attribute. (2 pts)

  • item_description (string) - Set to "none" in default constructor

Implement the following method for the ItemToPurchase class.

  • print_item_description() - Prints item_description attribute for an ItemToPurchase object. Has an ItemToPurchase parameter.


Ex. of print_item_description() output:

Bottled Water: Deer Park, 12 oz.

(2) Build the ShoppingCart class with the following data attributes and related methods. Note: Some can be method stubs (empty methods) initially, to be completed in later steps.

  • Parameterized constructor which takes the customer name and date as parameters (2 pts)
  • Attributes
    • customer_name (string) - Initialized in default constructor to "none"
    • current_date (string) - Initialized in default constructor to "January 1, 2016"
    • cart_items (list)
  • Methods
    • add_item()
      • Adds an item to cart_items list. Has parameter ItemToPurchase. Does not return anything.
    • remove_item()
      • Removes item from cart_items list. Has a string (an item's name) parameter. Does not return anything.
      • If item name cannot be found, output this message: Item not found in cart. Nothing removed.
    • modify_item()
      • Modifies an item's quantity. Has parameter ItemToPurchase. Does not return anything.
      • If item can be found (by name) in cart, modify item in cart.
      • If item cannot be found (by name) in cart, output this message: Item not found in cart. Nothing modified.
    • get_num_items_in_cart() (2 pts)
      • Returns quantity of all items in cart. Has no parameters.
    • get_cost_of_cart() (2 pts)
      • Determines and returns the total cost of items in cart. Has no parameters.
    • print_total()
      • Outputs total of objects in cart.
      • If cart is empty, output this message: SHOPPING CART IS EMPTY
    • print_descriptions()
      • Outputs each item's description.

Ex. of print_total() output:

John Doe's Shopping Cart - February 1, 2016
Number of Items: 8

Nike Romaleos 2 @ $189 = $378
Chocolate Chips 5 @ $3 = $15
Powerbeats 2 Headphones 1 @ $128 = $128

Total: $521


Ex. of print_descriptions() output:

John Doe's Shopping Cart - February 1, 2016

Item Descriptions
Nike Romaleos: Volt color, Weightlifting shoes
Chocolate Chips: Semi-sweet
Powerbeats 2 Headphones: Bluetooth headphones


(3) In main section of your code, prompt the user for a customer's name and today's date. Output the name and date. Create an object of type ShoppingCart. (1 pt)

Ex.

Enter customer's name:
John Doe
Enter today's date:
February 1, 2016

Customer name: John Doe
Today's date: February 1, 2016


(4) In the main section of your code, implement the print_menu() function. print_menu() has a ShoppingCart parameter, and outputs a menu of options to manipulate the shopping cart. Each option is represented by a single character. Build and output the menu within the function.

If the an invalid character is entered, continue to prompt for a valid choice. Hint: Implement Quit before implementing other options. Call print_menu() in the main() function. Continue to execute the menu until the user enters q to Quit. (3 pts)

Ex:

MENU
a - Add item to cart
r - Remove item from cart
c - Change item quantity
i - Output items' descriptions
o - Output shopping cart
q - Quit

Choose an option:


(5) Implement Output shopping cart menu option. (3 pts)

Ex:

OUTPUT SHOPPING CART
John Doe's Shopping Cart - February 1, 2016
Number of Items: 8

Nike Romaleos 2 @ $189 = $378
Chocolate Chips 5 @ $3 = $15
Powerbeats 2 Headphones 1 @ $128 = $128

Total: $521


(6) Implement Output item's description menu option. (2 pts)

Ex.

OUTPUT ITEMS' DESCRIPTIONS
John Doe's Shopping Cart - February 1, 2016

Item Descriptions
Nike Romaleos: Volt color, Weightlifting shoes
Chocolate Chips: Semi-sweet
Powerbeats 2 Headphones: Bluetooth headphones


(7) Implement Add item to cart menu option. (3 pts)

Ex:

ADD ITEM TO CART
Enter the item name:
Nike Romaleos
Enter the item description:
Volt color, Weightlifting shoes
Enter the item price:
189
Enter the item quantity:
2


(8) Implement remove item menu option. (4 pts)

Ex:

REMOVE ITEM FROM CART
Enter name of item to remove:
Chocolate Chips


(9) Implement Change item quantity menu option. Hint: Make new ItemToPurchase object before using ModifyItem() method. (5 pts)

Ex:

CHANGE ITEM QUANTITY
Enter the item name:
Nike Romaleos
Enter the new quantity:
3.

Type in Python please.

In: Computer Science

Gansac Publishing Company signed a contract with an author to publish her book. The signing took...

Gansac Publishing Company signed a contract with an author to publish her book. The signing took place on January 1, 2016, and a payment of $20,000 was made to obtain a copyright. Gansac expects to sell 200,000 books evenly between 2016 and 2020 at a price of $10 per book.

Required:

1. Prepare journal entries to record the events related to the copyright and sales of the book during 2016 and 2017, assuming that sales were as projected.
2. Next Level How would your answer change if Gansac expected sales of the book to be 100,000 copies in 2016, 70,000 copies in 2017, and 30,000 copies over the remainder of the copyright’s useful life?
CHART OF ACCOUNTS
Gansac Publishing Company
General Ledger
ASSETS
111 Cash
121 Accounts Receivable
141 Inventory
152 Prepaid Insurance
181 Equipment
189 Accumulated Depreciation
195 Copyright
LIABILITIES
211 Accounts Payable
231 Salaries Payable
250 Unearned Revenue
261 Income Taxes Payable
EQUITY
311 Common Stock
331 Retained Earnings
REVENUE
411 Sales Revenue
EXPENSES
500 Cost of Goods Sold
511 Insurance Expense
512 Utilities Expense
521 Salaries Expense
532 Bad Debt Expense
533 Amortization Expense
540 Interest Expense
541 Depreciation Expense
559 Miscellaneous Expenses
910

Income Tax Expense

Prepare journal entries to record the events related to the copyright and sales of the book during 2016 and 2017, assuming that sales were as projected. Additional Instructions

PAGE 1

GENERAL JOURNAL

DATE ACCOUNT TITLE POST. REF. DEBIT CREDIT

1

2

3

4

5

6

7

8

9

10

X

Next Level

How would your answer change if Gansac expected sales of the book to be 100,000 copies in 2016, 70,000 copies in 2017, and 30,000 copies over the remainder of the copyright’s useful life?

Gansac would use an activity method of amortization and record  of amortization in 2016 and  of amortization in 2017.

In: Accounting

IN JAVA PLEASE!!! Note: Creating multiple Scanner objects for the same input stream yields unexpected behavior....

IN JAVA PLEASE!!!

Note: Creating multiple Scanner objects for the same input stream yields unexpected behavior. Thus, good practice is to use a single Scanner object for reading input from System.in. That Scanner object can be passed as an argument to any methods that read input.

(1) Create an ItemToPurchase class per the following specifications:

  • Private fields
  • Create a default constructor
    • string itemName - Initialized in default constructor to "none"
    • float itemPrice - Initialized in default constructor to 0.0
    • int itemQuanity - Initialized in default constructor to 0
    • string itemDescription - Initialized in default constructor to "none"
  • Parameterized constructor to assign item name, item description, item price, and item quantity
  • Public member methods
    • setDescription() mutator & getDescription() accessor
    • setName() mutator & getName() accessor
    • setQuantity() mutator & getQuantity() accessor
    • setPrice() mutator & getPrice() accessor
    • printItemCost() - Outputs the item name followed by the quantity, price, and subtotal
    • printItemDescription() - Outputs the item name and description

Ex. of printItemCost() output:

Bottled Water 10 @ $1 = $10

Ex. of printItemDescription() output:

Bottled Water: Deer Park, 12 oz.

(2) Create two new files:

  • ShoppingCart.java - Class definition
  • ShoppingCartManager.java - Contains main() method

Build the ShoppingCart class with the following specifications. Note: Some can be method stubs (empty methods) initially, to be completed in later steps.

  • Private fields

  • String customerName - Initialized in default constructor to "none"

  • String currentDate - Initialized in default constructor to "January 1, 2016"

  • ArrayList cartItems

  • Default constructor

  • Parameterized constructor which takes the customer name and date as parameters

  • Public member methods

  • getCustomerName() accessor

  • getDate() accessor

  • addItem()
    • Adds an item to cartItems array. Has parameter ItemToPurchase. Does not return anything.
  • removeItem()
    • Removes item from cartItems array. Has a string (an item's name) parameter. Does not return anything.
    • If item name cannot be found, output this message: Item not found in cart. Nothing removed.
  • modifyItem()
    • Modifies an item's description, price, and/or quantity. Has parameter ItemToPurchase. Does not return anything.
    • If item can be found (by name) in cart, check if parameter has default values for description, price, and quantity. If not, modify item in cart.
    • If item cannot be found (by name) in cart, output this message: Item not found in cart. Nothing modified.
  • getNumItemsInCart()
    • Returns quantity of all items in cart. Has no parameters.
  • getCostOfCart()
    • Determines and returns the total cost of items in cart. Has no parameters.
  • printTotal()
    • Outputs total of objects in cart.
    • If cart is empty, output this message: SHOPPING CART IS EMPTY
  • printDescriptions()
    • Outputs each item's description.

Ex. of printTotal() output:

John Doe's Shopping Cart - February 1, 2016
Number of Items: 8

Nike Romaleos 2 @ $189 = $378
Chocolate Chips 5 @ $3 = $15
Powerbeats 2 Headphones 1 @ $128 = $128

Total: $521

Ex. of printDescriptions() output:

John Doe's Shopping Cart - February 1, 2016

Item Descriptions
Nike Romaleos: Volt color, Weightlifting shoes
Chocolate Chips: Semi-sweet
Powerbeats 2 Headphones: Bluetooth headphones

(3) In main(), prompt the user for a customer's name and today's date. Output the name and date. Create an object of type ShoppingCart.
Ex.

Enter Customer's Name:
John Doe
Enter Today's Date:
February 1, 2016

Customer Name: John Doe
Today's Date: February 1, 2016

(4) Implement the printMenu() method. printMenu() has a ShoppingCart parameter, and outputs a menu of options to manipulate the shopping cart. Each option is represented by a single character. Build and output the menu within the method.

If the an invalid character is entered, continue to prompt for a valid choice. Hint: Implement Quit before implementing other options. Call printMenu() in the main() method. Continue to execute the menu until the user enters q to Quit.
Ex:

MENU
a - Add item to cart
d - Remove item from cart
c - Change item quantity
i - Output items' descriptions
o - Output shopping cart
q - Quit

Choose an option: 

(5) Implement Output shopping cart menu option.
Ex:

OUTPUT SHOPPING CART
John Doe's Shopping Cart - February 1, 2016
Number of Items: 8

Nike Romaleos 2 @ $189 = $378
Chocolate Chips 5 @ $3 = $15
Powerbeats 2 Headphones 1 @ $128 = $128

Total: $521

(6) Implement Output item's description menu option.
Ex.

OUTPUT ITEMS' DESCRIPTIONS
John Doe's Shopping Cart - February 1, 2016

Item Descriptions
Nike Romaleos: Volt color, Weightlifting shoes
Chocolate Chips: Semi-sweet
Powerbeats 2 Headphones: Bluetooth headphones

(7) Implement Add item to cart menu option.
Ex:

ADD ITEM TO CART
Enter the item name:
Nike Romaleos
Enter the item description:
Volt color, Weightlifting shoes
Enter the item price:
189
Enter the item quantity:
2

(8) Implement Remove item menu option.
Ex:

REMOVE ITEM FROM CART
Enter name of item to remove:
Chocolate Chips

(9) Implement Change item quantity menu option. Hint: Make new ItemToPurchase object and use ItemToPurchase modifiers before using modifyItem() method.
Ex:

CHANGE ITEM QUANTITY
Enter the item name:
Nike Romaleos
Enter the new quantity:
3

In: Computer Science

Create initializer/constructor functions for book. Declare and implement functions like insert book(insert at End, InsertAtFirst), retrieve...

Create initializer/constructor functions for book. Declare and implement functions like insert book(insert at End, InsertAtFirst), retrieve book, update book information book using ISBN number in Library. Declare another function named Search to find a specific book from catalogue.

#include<iostream.h>
#include<conio.h>

struct book{
   char name[50];
   int ISBN;
   char authorname[50];
   char publishername[50];
   int issuedate;
   int issuemonth;
   int issueyear;
   int retdate;
   int retmonth;
   int retyear;
   struct book *next=NULL;
}

void insert(struct book *head){
    if *head.next==NULL{
       struct book node;
       cout<<"enter the name of book";
 
       gets(node.name)
       cout<<"enter the author name of book";
       gets(node.authorname)
       cout<<"enter the publisher name of book";
       gets(node.publishername)
       cout<<"enter isbn no.";
       cin>>node.ISBN;
       cout<<"enter the issue date month and year";
       cin>>node.issuedate;
       cin>>node.issuemonth;
       cin>>node.issueyear;
       cout<<"enter the return date month and year";
       cin>>node.retdate;
       cin>>node.retmonth;
       cin>>node.retyear;
       *head.next=&node;
    }
   else{
       insert(*head.next);
}
}
void main(){

//the pile of the books will be stored in a linked list where ISBN no. can be a searching key 
struct book library;//first book in library

insert(library);//inserting a book in library
insert(library);//inserting a book in library
getch();
}

In: Computer Science

Using a wheatstone bridge, solve for Vout for quarter, half, and full bridges and determine which...

Using a wheatstone bridge, solve for Vout for quarter, half, and full bridges and determine which one is most sensitive. Draw a diagram showing how you would place your strain gauges on a beam for each configuration. Discuss how you should use the right kind of strain gauge with appropriate G values to maximize the sensitivity.

In: Physics