Read the article below and as you’re reading it translate how the ‘utility’ concepts in this week’s lesson are applied in the article. Note, for example, that the author talks about ‘value’ relative to price. This indicates to you that ‘utility’ is sometimes referred to as ‘value’ by some marketers.
Hall, Doug. (Dec 13, 2007). Jump Start: Perceiving is Believing. Bloomberg Business Week.
Preview the document
Now, look for a news headline that illustrates basic utility concepts (such as MU, TU, MU/P, etc.). Quote (post) the headline and cite properly (so that others like classmates and instructors can find your headline easily, using your citation), and explain precisely what utility concepts are illustrated and how they are applied in the story suggested by the headline. OR: Upload a photo of something you observed or noticed in a marketplace that illustrates utility and consumer choice. and explain precisely what utility concepts are illustrated and how they are applied in the shot that you’ve uploaded.
In: Economics
Stanford University medical researchers conducted a study on the correlation between the use of fertility drugs and ovarian cancer. Their study, published in the American Journal of Epidemiology, concludes that the use of the fertility drugs, Pergonal and Serophene, may increase the risk of ovarian cancer by three times. The lead author of the studies, Professor Alice Whittemore, stated, "Our finding in regard to fertility drugs is by no means certain. It is based on very small numbers and is really very tenuous."
FDA Commissioner David Kessler would like the infertility drug manufacturers to disclose the study findings and offer a warning on the drug packages. He notes, "Even though the epidemiology study is still preliminary, women have a right to know what is known. We're not looking to make more of this than there is."
If you were a manufacturer of one of the drugs, would you voluntarily disclose the study information?
Please Answer the above Questions No Plagiarism NEED 400 WORDS
In: Operations Management
Deviance/Global Stratification
Choose a piece of popular fiction—novel, short story, graphic novel, or comic book—and research the material through the lens of popular culture and its effect on society.
Prepare a 500- to 750-word analysis that includes a critique of that work and a commentary on the influence of the work in popular culture. Address the following:
• Identify the literary production you chose to focus on. Provide a brief overview of what the piece is about, the author’s background, and how the piece fits or does not fit with other literature of that genre.
• What is the cultural significance of the work Reflect on whether the piece is considered economically successful or if it has fan followings.
• What cultural values are reinforced or challenged in the work?
Consider the following examples:
• How the Harry Potter novels are encouraging young adults to read
• Does the Twilight series reinforce or challenge traditional gender roles?
• The quest for truth in the novels of Dan Brown, author of The Da Vinci Code and Angels & Demons
In: Psychology
Section One:
Write a review of “Dirigible Dreams” that answers the following three questions:
1) What was the purpose of the book?
2) Did the author successfully complete the purpose of the book or did he accomplish less than the purpose? Thoroughly explain your positions and reference sections of the book that support your comments.
3) Did you find “Dirigible Dreams” useful in understanding the development of transportation (or not)? Be explicit, offer examples, and tell me what you liked and did not like about the book (and why).
Section Two:
Compare what you learned in “Dirigible Dreams” to the development of another form of transportation. First, identify specific points of comparison, then apply those points of comparison between the development of airships to your chosen “other” form of transportation.
You may choose a form of transportation that was successfully (or unsuccessfully) developed in the past, or a development(s) that is happening today. For example, compare “Dirigible Dreams” to the development of LNG-powered ships.
In: Operations Management
Throughout this chapter, you were encouraged to take control of your life and establish your own definition of success. This chapter has a strong “all development is self development” theme. Can we really control our own destinies? Can we always make our own choices? Mike Hernacki, author of The Ultimate secret of getting absolutely everything you want, says yes: to get what you want, you must recognize something that at first may be difficult, even painful to look at. You must recognize that you alone are the source of all the conditions and situations in your life. You must recognize that whatever your world looks like right now, you alone have caused it to look that way. The state of your health, your finances, your personal relationships, your professional life, all of it is you're doing, yours and no one else's.
In: Operations Management
Can you please tell me if this code needs to be fixed, if it does can you please post the fixed code below please and thank you
/**
* Driver to demonstrate WholeLifePolicy class.
*
* @author Tina Comston
* @version Fall 2019
*/
public class WholeLifePolicyDriver
{
/**
* Creates WholeLifePolicy object, calls methods, displays
values.
*
*/
public static void main()
{
WholeLifePolicyDriver myDriver = new WholeLifePolicyDriver();
// create a policy
WholeLifePolicy policy = new WholeLifePolicy("WLP1234567",
50000, 20);
// display values
myDriver.displayPolicy(policy);
// now change some values
policy.setPolicyNum("WLP9871235");
policy.setFaceValue(75000);
policy.setPolicyYrs(15);
// display again
myDriver.displayPolicy(policy);
// Display termination value at 10 years, borrowed $25K
System.out.printf("Termination value @10 years 25K borrowed "
+
"is %.2f \n", policy.surrenderVal(10.0, 25000));
}
/**
* Displays data for a policy.
*
*/
private void displayPolicy(WholeLifePolicy wlp)
{
System.out.println("*******************************************");
System.out.println(wlp.toString());
System.out.println();
}
}
In: Computer Science
C++ language
Using classes (OOD), design a system that will support lending various types of media starting with books. Program should be able to handle a maximum of 500 books. Program should meet at least the following requirements:
1. Define a base media class with a book class derived from it. (Specific class names determined by programmer.)
2. The classes should contain at least the following information: title, up to four authors, ISBN.
3. Define a collection class that will hold up to 500 books.
4. The program should be able to perform the following operations supported by the class definitions:
a) Load data from a drive
b)Sort and display the books by title
c)Sort and display the books by author
d)Add and remove books
Programming requirements: Must include examples of inheritance and composition
~~~Function/Class comments (Description, pre and post conditions)
~~~Internal comments for all functions
In: Computer Science
This is a Java program that I am having trouble making.
1- Search for the max value in the linked list.
2- Search for the min value in the linked list.
3- Swap the node that has the min data value with the max one. (Note: Move the nodes to the new positions).
4- Add the min value and the max value and insert the new node
with the calculated value before the last node.
I already made a generic program that creates the linked list and
has the ability to add and remove from the list. I am not sure how
to create these generic methods though.
Below is my attempt to make the min finder, but it does not work and gives me an error on the bolded parts. It says "bad operand types for binary operator >".
LList.java below:
package llist;
/**
*
* @author RH
* @param <E>
*/
public class LList<E> {
Node head, tail;
int size;
public LList() {
size = 0;
head = tail = null;
}
public void addFirst(E element) {
Node newNode = new Node(element);
newNode.next = head;
head = newNode;
size++;
if (tail == null) {
tail = head;
}
}
public void addLast(E element) {
Node newNode = new Node(element);
if (tail == null) {
head = tail = newNode;
} else {
tail.next = newNode;
tail = tail.next;
}
size++;
}
public void insert(int index, E element) {
if (index == 0) {
addFirst(element);
} else if (index >= size) {
addLast(element);
} else {
Node current = head;
for (int i = 1; i < index; i++) {
current = current.next;
}
Node holder = current.next;
current.next = new Node(element);
current.next.next = holder;
size++;
}
}
public void remove(int e) {
if (e < 0 || e >= size) {
System.out.println("Out of bounds");
} else if (e == 0) {
System.out.println("Deleted " + head.element);
head = head.next;
size--;
} else if (e == size - 1) {
Node current = head;
Node holder;
for (int i = 1; i < size; i++) {
current = current.next;
}
System.out.println("Deleted " + current.element);
tail.next = current.next;
tail = tail.next;
size--;
} else {
Node<E> previous = head;
for (int i = 1; i < e; i++) {
previous = previous.next;
}
System.out.println("Deleted " + previous.next.element);
Node<E> current = previous.next;
previous.next = current.next;
size--;
}
}
public int largestElement() {
int max = 49;
while (head != null) {
if (max < head.next) {
max = head.next;
}
head = head.next;
}
return max;
}
public int smallestElement() {
int min = 1001;
while (head != null) {
if (min > head.next) {
min = head.next;
}
head = head.next;
}
return min;
}
public void print() {
Node current = head;
for (int i = 0; i < size; i++) {
System.out.println(current.element);
current = current.next;
}
}
}
Node.java below:
package llist;
/**
*
* @author RH
* @param <E>
*/
public class Node<E> {
E element;
Node next;
public Node(E data) {
this.element = data;
}
}
Driver.java below:
package llist;
import java.util.concurrent.ThreadLocalRandom;
/**
*
* @author RH
*/
public class Driver {
public static void main(String[] args) {
LList<Integer> listy = new LList();
// adds 10 random numbers to the linkedlist
for (int i = 0; i < 10; i++) {
listy.addFirst(ThreadLocalRandom.current().nextInt(50, 1000 +
1));
}
System.out.println("");
listy.print();
System.out.println("");
int max = listy.largestElement();
int min = listy.smallestElement();
System.out.println(max);
System.out.println(min);
//listy.remove(1);
//System.out.println("");
//listy.print();
}
}
I am not sure how to get these generic methods made.
In: Computer Science
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. 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.
|
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 |
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
In: Computer Science