Questions
For each problem, sketch the appropriate process diagram on a T-v, P-v, or P-h diagram 4.60...

For each problem, sketch the appropriate process diagram on a T-v, P-v, or P-h diagram

4.60 : Steam exiting the turbine of a power plant passes through the insulated shell-and-tube heat exchanger condenser. The mass flow rate of the steam is 145 kg/s, and the steam enters the heat exchanger as a saturated mixture with a quality of 0.95 at 20 kPa. The steam exits the condenser as a saturated liquid at 20 kPa. Liquid cooling water is used to condense the steam. The cooling water enters the condenser at 10 degrees celsius. (a) Determine the exit temperature of the liquid cooling water if the mass flow rate is 4000 kg/s. (b) Using your heat exchanger model, plot the cooling water mass flow rate and volumetric flow rate (entering the condenser) for exit temperatures ranging from 15 degrees celsius to 55 degrees celsius. (c) if the exit temperature of the cooling water is regulated such that it must be no greater than 40 degrees celsius, and if the cooling water flow rate through the condenser can be adjusted in a range from 500 kg/s to 2000 kg/s, what is the range of maximum possible flow rates of steam through the condenser?

In: Mechanical Engineering

Victoria and Vine (V&V) has 1 million shares outstanding, selling at $20/share. To finance the expansion...

Victoria and Vine (V&V) has 1 million shares outstanding, selling at $20/share. To finance the expansion of their winery business V&V is planning a rights offering, allowing one new share to be purchased for each 10 shares currently held. The purchase price (subscription price) will be $14.50 a share.

a)How many shares will be issued? (1 Mark)

b)How much money will be raised? (1 mark)

c)What will the stock price be after rights issue (ex-rights)?

d)What action(s) would you have to take in the rights offering if you wanted to maintain your ownership? No Calculations required. (1 Mark)

Please show all of your work.

In: Finance

Problem 2. Consider a graph G = (V,E) where |V|=n. 2(a) What is the total number...

Problem 2. Consider a graph G = (V,E) where |V|=n.

2(a) What is the total number of possible paths of length k ≥ 0 in G from a given starting vertex s and ending vertex t? Hint: a path of length k is a sequence of k + 1 vertices without duplicates.

2(b) What is the total number of possible paths of any length in G from a given starting vertex s and ending vertex t?

2(c) What is the total number of possible cycles of any length in G from a given starting vertex s?

In: Advanced Math

Upriver Parts manufactures two products, V-1 and V-2, at its River Plant. Selected data for an...

Upriver Parts manufactures two products, V-1 and V-2, at its River Plant. Selected data for an average month for the two products follow. V-1 V-2 Units produced 10,000 1,000 Direct materials cost per unit $ 2 $ 4 Machine hours per unit 1 2 Production runs per month 80 40 Production at the plant is automated and any labor cost is included in overhead. Data on manufacturing overhead at the plant follow. Machine depreciation $ 36,000 Setup labor 18,000 Material handling 14,400 Total $ 68,400 Required: a. Upriver currently applies overhead on the basis of machine hours. What is the predetermined overhead rate for the month? (Round your answer to 2 decimal places.) b. Upriver is thinking of adopting an ABC system. They have tentatively chosen the following cost drivers: machine hours for machine depreciation, production runs for setup labor, and direct material dollars for material handling. Compute the cost driver rates for the proposed system at Upriver.

Show work please

In: Accounting

Given: M1= 75kg; M2 = 50kg; V (M1) = 10 m/s North; V (M2) = 10...

Given: M1= 75kg; M2 = 50kg; V (M1) = 10 m/s North; V (M2) = 10 m/s West

Action: Collision, two masses stick together, move at unspecified angle in M2's initial direction

Question: Find magnitude of their speed together after collision.

In: Physics

A cough medicine contains 0.40% (w/v) dextromethorphan, a cough suppressant, and 1.2% (w/v) guaifenisin, an expectorant....

A cough medicine contains 0.40% (w/v) dextromethorphan, a cough suppressant, and

1.2% (w/v)

guaifenisin, an expectorant.

How many

milligrams of each drug would you obtain from

3.5 tsp

of cough syrup?

(1 tsp = 4.93 mL)

In: Chemistry

v=v= Your protocols call for a dopamine infusion beginning at 5 micrograms per kilogram per minute....

v=v=

Your protocols call for a dopamine infusion beginning at 5 micrograms per kilogram per minute. You estimate that your patient weighs 190 pounds. Using a standard dopamine concentration of 800 mg in 500 mL, at what drip rate (in drops/minute) will you need to administer the infusion using micro-drip tubing?   

In: Nursing

1. E. coli DNA polymerase V has the ability to bypass thymine dimers. However, Pol V...

1. E. coli DNA polymerase V has the ability to bypass thymine dimers. However, Pol V tends to incorporate G rather than A opposite the dam-aged T bases. Would you expect Pol V to be more or less processive than Pol III? Explain.

2. Explain why base excision repair, nucleotide excision repair, and mismatch repair—which all require nucleases to excise damaged DNA—require DNA ligase.

3. Why are there no Pol I mutants that completely lack 5′ → 3′ exo-nuclease activity?

In: Biology

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

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

(1) Extend the ItemToPurchase class per the following specifications:

  • Parameterized constructor to assign item name, item description, item price, and item quantity (default values of 0). (1 pt)
  • Public member functions
    • SetDescription() mutator & GetDescription() accessor (2 pts)
    • PrintItemCost() - Outputs the item name followed by the quantity, price, and subtotal
    • PrintItemDescription() - Outputs the item name and description
  • Private data members
    • string itemDescription - Initialized in default constructor to "none"

Ex. of PrintItemCost() output:

Bottled Water 10 @ $1 = $10


Ex. of PrintItemDescription() output:

Bottled Water: Deer Park, 12 oz.


(2) Create three new files:

  • ShoppingCart.h - Class declaration
  • ShoppingCart.cpp - Class definition
  • main.cpp - main() function (Note: main()'s functionality differs from the warm up)

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

  • Default constructor
  • Parameterized constructor which takes the customer name and date as parameters (1 pt)
  • Private data members
    • string customerName - Initialized in default constructor to "none"
    • string currentDate - Initialized in default constructor to "January 1, 2016"
    • vector < ItemToPurchase > cartItems
  • Public member functions
    • GetCustomerName() accessor (1 pt)
    • GetDate() accessor (1 pt)
    • AddItem()
      • Adds an item to cartItems vector. Has parameter ItemToPurchase. Does not return anything.
    • RemoveItem()
      • Removes item from cartItems vector. 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() (2 pts)
      • Returns quantity of all items in cart. Has no parameters.
    • GetCostOfCart() (2 pts)
      • 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

Total: $


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. (1 pt)


(4) Implement the PrintMenu() function. 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 function.

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() function. Continue to execute the menu until the user enters q to Quit. (3 pts)

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. (3 pts)

Ex:

OUTPUT SHOPPING CART

John Doe's Shopping Cart - February 1, 2016

Number of Items: 8

Nike Romaleos 2 @ $189 = $378

Total:


(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 and use ItemToPurchase modifiers before using ModifyItem() function. (5 pts)

Ex:

CHANGE ITEM QUANTITY

Enter the item name:

Nike Romaleos

Enter the new quantity:

3


Here’s what I have (the main file needs to be completed).
***ItemToPurchase.cpp
#include "ItemToPurchase.h"
//Implementation of default constructor
ItemToPurchase::ItemToPurchase()
{
itemName = "0";
itemPrice = 0;
itemQuantity = 0;
description = "0";
}
ItemToPurchase::ItemToPurchase(string itemName, int itemPrice, int itemQuanity, string description){
this->itemName = itemName;
this->itemPrice = itemPrice;
this->itemQuanity = itemQuantity;
this->description = description;
}
//Implementation of SetName function
void ItemToPurchase::SetName(string name)
{
itemName = name;
}
//Implementation of SetPrice function
void ItemToPurchase::SetPrice(int itemP)
{
itemPrice = itemP;
}
//Implementation of SetQuantity function
void ItemToPurchase::SetQuantity(int itemQ)
{
itemQuantity = itemQ;
}
void ItemToPurchase::setDescription(string description){
this-> description = description;
}
//Implementation of GetName function
string ItemToPurchase::GetName()
{
return itemName;
}
//Implementation of GetPrice function
int ItemToPurchase::GetPrice()
{
return itemPrice;
}
//Implementation of GetQuantity function
int ItemToPurchase::GetQuantity()
{
return itemQuantity;
}
string ItemToPurchase::getDescription(){
return description;
}
***ItemtoPurchase.h
#pragma once
#ifndef ITEMTOPURCHASE_H_INCLUDED
#define ITEMTOPURCHASE_H_INCLUDED
#include<string>
#include <iostream>
using namespace std;
class ItemToPurchase
{
public:
//Declaration of default constructor
ItemToPurchase();
ItemToPurchase(string itemName, int itemPrice, int itemQuanity, string description);
//Declaration of SetName function
void SetName(string itemName);
//Declaration of SetPrice function
void SetPrice(int itemPrice);
//Declaration of SetQuantity function
void SetQuantity(int itemQuantity);
//Declaration of GetName function
string GetName();
//Declaration of GetPrice function
int GetPrice();
//Declaration of GetQuantity function
int GetQuantity();
string GetDescription();
void setDescription(string itemDescription);
void printItemCost();
void printItemDescription();
private:
//Declaration of itemName as
//type of string
string itemName;
//Declaration of itemPrice as
//type of integer
int itemPrice;
//Declaration of itemQuantity as
//type of integer
int itemQuantity;
string description;
};
#endif
***ShoppingCart.cpp
#include"ShoppingCart.h"
#include<stdbool.h>
#include<iostream>
//Implementation of GetCustomerName function
string ShoppingCart::GetCustomerName()
{
return this->customerName;
}
//Implementation of GetDate function
string ShoppingCart::GetDate()
{
return this->currentDate;
}
//Implementation of AddItem function
void ShoppingCart::AddItem(ItemToPurchase addnewitem)
{
for (int i=0; i < this->cartItems.size(); i++){
if (this->cartItems.at(i).getName() == addnewitem.getName()){
this->cartItems.at(i).setQuantity(this->cartItems.at(i).getQuanity() + addnewitem.getQuanity);
return;
}
}
this->cartItems.push_back(addnewitem);
}
//Implementation of RemoveItem function
void ShoppingCart::RemoveItem(string itemName)
{
//bool found = false;
//Iterate the loop
for (int i = 0; i < this->cartItems.size(); i++)
{   
if (this->cartItems.at(i).getName() == itemName)
{
//found = true;
this->cartItems.erase(cartItems.begin() + i);
return;
}
}
cout << endl << "Item not found in cart. Nothing removed." << endl << endl;
}
//Implementation of ModifyItem function
//with parameter is ItemToPurchase
void ShoppingCart::ModifyItem(ItemToPurchase itemToModify) {
int i = 0;
//Iterate the loop
while (i < cartItems.size()) {
//check cartItems name is equal to name of the modified item
if (cartItems.at(i).getName() == itemToModify.getName()) {
//cartItems.at(i).quantity = itemToModify.quantity;
//get quanity
if (itemToModify.getQuanity() != 0){
cartItems.at(i).setQuantity(itemToModify.getQuanity());
}
//get price
if (itemToModify.getPrice() != 0){
cartItems.at(i).setPrice(itemToModify.getPrice());
}
// get description
if (itemToModify.getDescription() != 0){
carItems.at(i).setDescription(itemToModify.getDescription();
}
return;
}
i++;
}
cout << endl << "Item not found in cart. Nothing modified." << endl << endl;
}
//Implementation of GetNumItemsInCart function
int ShoppingCart::GetNumItemsInCart()
{
int counter = 0;
for (int i = 0; i < this-> cartItems.size(); i++){
counter += this-> cartItems.at(i).getQuanity();
}
return counter;
}
//Implementation of GetCostOfCart function
int ShoppingCart::GetCostOfCart()
{
int totalCost = 0;
  
//Iterate the loop
for (int i = 0; i < this->cartItems.size(); i++)
{
//calculate the totalCost
totalCost += this->cartItems.at(i).price * this->cartItems.at(i).quantity;
}
return totalCost;
}
//Implementation of PrintTotal function
void ShoppingCart::PrintTotal()
{
if (this->cartItems.size() == 0)
{
//Display statement
cout << "SHPPING CART IS EMPTY" << endl;
}
else
{
//Display statement
cout << this->customerName << "'s Shopping Cart - " << this->currentDate << endl << endl;
//Display statement
cout << "Number of Items: " << this->cartItems.size() << endl << endl;
//Iterate the loop
for (int i = 0; i < this->cartItems.size(); i++)
{
this->cartItems.at(i).PrintItemCost();
cout << endl;
}
//Display statement
cout << endl << "Total: $" << this->GetCostOfCart() << endl << endl;
}
}
//Implemenataion of PrintDescriptions function
void ShoppingCart::PrintDescriptions()
{
//Display statement
cout << this->customerName << "'s Shopping Cart - " << this->currentDate << endl << endl;
cout << endl;
//Display statement
cout << "Item Descriptions" << endl << endl;
//Iterate the loop
for (int i = 0; i < this->cartItems.size(); i++)
{
this->cartItems.at(i).PrintItemDescription();
cout << endl;
}
}
***ShoppingCart.h
#pragma once
#include<vector>
#include<string>
#include"ItemToPurchase.h"
using namespace std;
//Declaration of ShoppingCart class
class ShoppingCart {
private:
//Declare customerName as type of string
string customerName;
//Declare currentDate as type of string
string currentDate;
//Declare carItems as type of ItemToPurchase
vector<ItemToPurchase> cartItems;
public:
//Implementation of default constructor
ShoppingCart()
{
this->customerName = "none";
this->currentDate = "October 1, 2020";
}
//Implementation of parameterized constructor
ShoppingCart(string customerName, string currentDate)
{
this->customerName = customerName;
this->currentDate = currentDate;
}
//Declaration GetCustomerName function
string GetCustomerName();
//Declaration of GetDate function
string GetDate();
//Declaration of AddItem function
void AddItem(ItemToPurchase addnewitem);
//Declaration of RemoveItem function
void RemoveItem(string itemName);
//Declaration of GetNumItemsInCart function
int GetNumItemsInCart();
//Declaration of GetCostOfCart function
int GetCostOfCart();
//Declaration of PrintTotal function
void PrintTotal();
//Declaration of PrintDescriptions function
void PrintDescriptions();
//Declaration of ModifyItem function
//which has paramter ItemToPurchase
void ModifyItem(ItemToPurchase);
};

In: Computer Science

BCS was a C Corporation in 2016 and an S Corporation in 2017. Net income for...

BCS was a C Corporation in 2016 and an S Corporation in 2017. Net income for 2016 was $80,000; net income for 2017 was $500,000. For 2016, the three shareholders of BCS were each allocated ordinary business income of zero, as well as separately stated items of zero. Why?​

In: Accounting