Develop a Java application which implements an application for a store chain that has three types of stores which are Book, Music, and Movie stores.
Your application should have an Item abstract class which should be extended by the Book and Multimedia classes. Item class has abstract priceAfterTax method, you need to implement this method in derived classes. Multimedia class is a superclass for Music and Movie classes. Your project should also include the IPromotion interface, which should be implemented by Book and Movie classes. Also, your application should have the Lookup class (which is provided in part in this document). Lookup class works as the datastore: it contains all the various items available - books, movies, music items - as well as the list of users.
In your main class you should initiate a lookup object in the main method. You also need to include a User class which has the fields and the methods shown for that class in the class diagram. User class has a library of items; once a user downloads or purchases any item, you should add this item to that user’s library. If the user just plays music or watches a movie you should not add this item to the user’s library.
In: Computer Science
I WANT A REPORT ON Geology ABOUT Types of aggregates used in
concrete, their composition and chemical reaction is
applicable
THERE ARE SO RULE TO DO THE REPORT
1-Report (Limited to 10 pages – singly spaced, excluding Title
Page, Abstract, Tables and Figures,
and List of References)
The final report will consist of the following components:
1. Title Page (1 page)
2. Abstract (1 page).
3. Introduction
4. Main Text (sections and subsections)
5. Conclusions
6. Tables and figures
7. List of References
The “Introduction” section introduces the topic and its background,
defines the objectives of your work and your
approach of investigation. The “Main Text” section explains the
methodology of the study, procedures and
different materials used to reach the desirable output. The
“Conclusions” section summarizes the important
findings and implications of the investigation. “Recommendations
for Future Studies” concludes the report. A list
of references should be provided at the end of the report. All
references should be properly cited. All figures,
tables, and references should be referred to in the main text.
2-PLAGIARISM
The report is to be submitted in word file and it will be checked
using turn it in, the report will be given zero
grade if plagiarism was obtained above 25% from the total
report.
In: Civil Engineering
java
CLASS DESIGN GUIDELINES
1. Cohesion • [✓] A class should describe a single entity, and all the class operations should logically fit together to support a coherent purpose. • [✓] A single entity with many responsibilities can be broken into several classes to separate the responsibilities.
2. Consistency • [✓] Follow standard Java programming style and naming conventions. Choose informative names for classes, data fields, and methods. A popular style is to place the data declaration before the constructor and place constructors before methods. • [✓] Make the names consistent. It is not a good practice to choose different names for similar operations. • [✓] In general, you should consistently provide a public no-arg constructor for constructing a default instance. If a class does not support a no-arg constructor, document the reason. If no constructors are defined explicitly, a public default no-arg constructor with an empty body is assumed. • [✓] If you want to prevent users from creating an object for a class, you can declare a private constructor in the class, as is the case for the Math class.
3. Encapsulation • [✓] A class should use the private modifier to hide its data from direct access by clients. This makes the class easy to maintain. • [✓] Provide a getter method only if you want the data field to be readable, and provide a setter method only if you want the data field to be updateable.
4. Clarity • [✓] Cohesion, consistency, and encapsulation are good guidelines for achieving design clarity. Additionally, a class should have a clear contract that is easy to explain and easy to understand. • [✓] Users can incorporate classes in many different combinations, orders, and environments. Therefore, you should design a class that imposes no restrictions on how or when the user can use it, design the properties in a way that lets the user set them in any order and with any combination of values, and design methods that function independently of their order of occurrence. • [✓] Methods should be defined intuitively without causing confusion. • [✓] You should not declare a data field that can be derived from other data fields.
5. Completeness • [✓] Classes are designed for use by many different customers. In order to be useful in a wide range of applications, a class should provide a variety of ways for customization through properties and methods.
6. Instance vs. Static • [✓] A variable or method that is dependent on a specific instance of the class must be an instance variable or method. A variable that is shared by all the instances of a class should be declared static. • [✓] Always reference static variables and methods from a class name (rather than a reference variable) to improve readability and avoid errors. • [✓] Do not pass a parameter from a constructor to initialize a static data field. It is better to use a setter method to change the static data field. • [✓] Instance and static are integral parts of object-oriented programming. A data field or method is either instance or static. Do not mistakenly overlook static data fields or methods. It is a common design error to define an instance method should have been static. • [✓] A constructor is always instance, because it is used to create a specific instance. A static variable or method can be invoked from an instance method, but an instance variable or method cannot be invoked from a static method.
7. Inheritance vs. Aggregation • [✓] The difference between inheritance and aggregation is the difference between an is-a and a has-a relationship.
8. Interfaces vs. Abstract Classes • [✓] Both interfaces and abstract classes can be used to specify common behavior for objects. How do you decide whether to use an interface or a class? In general, a strong is-a relationship that clearly describes a parentchild relationship should be modeled using classes. A weak is-a relationship, also known as an is-kind-of relationship, indicates that an object possesses a certain property. A weak is-a relationship can modeled using interfaces. • [✓] Interfaces are more flexible than abstract classes, because a subclass can extend only one superclass but can implement any number of interfaces. However, interfaces cannot contain concrete methods. The virtues of interfaces and abstract classes can be combined by creating an interface with an abstract class that implement it. Then you can use the interface or the abstract class, whichever is convenient.
Please choose 5 guidelines and discuss them in depth. For each guideline, use at least half a page for your discussion.
In: Computer Science
Question 4
In: Economics
1. You mention that an investor takes on the role of the creditor in securitization. How does this work with servicers involved? Does the investor initiate collection action themselves, or do they need to go through the servicer?
2. Small investors coming into play with securitization - did you find a certain example or scenarios when these companies can get involved with this process?
In: Finance
11. Explain each of these 4 forces, and mention if they contribute to, or oppose, glomerular filtration. Also draw AND label a simple diagram demonstrating the relationship of these 4 forces @ the renal corpuscle. And finally, set up an algebraic equation showing how all 4 forces contribute to Net Filtration Pressure. (ex: NFP = (A+b)-(C+d)) a. GHP – Glomerular Hydrostatic Pressure b. GOP – Glomerular Osmotic Pressure (the book calls it BCOP) c. CHP – Capsular Hydrostatic Pressure (the book calls it CsHP) d. COP - Capsular Osmotic Pressure (the book calls it CsOP)
In: Anatomy and Physiology
Describe the carbon fixation reactions of photosynthesis. Be sure to mention the following: (a) the three major stages; (b) the name, quantity, and number of carbons for each intermediate; (d) role and quantity of ATP and NADPH; and (d) the number of turns needed to produce a single glucose molecule.
Distinguish among C3, C4, and CAM photosynthesis and name plants that exemplify each process.
In: Biology
Note: Anwer this as mention in the Question and do it urgently ( just simple uml of dry run kindly please fo fast)
Q1: Test the follow code step by step from the main. Add enough detail to justify the use of OOP concepts in these examples. Also draw the UML diagram using all given code. Finally show the output of this code [Note: Only output will not acceptable]
public class Person
{
private String name;
public Person()
{
name = "none";
}
public Person(String theName)
{
name = theName;
}
public Person(Person theObject)
{
name = theObject.name;
}
public String getName()
{
return name;
}
public void setName(String theName)
{
name = theName;
}
public String toString()
{
return name;
}
public boolean equals(Object other)
{
return name.equals(((Person)other).name);
}
}
public class Vehicle
{
private String mf;
private int cd;
private Person own;
public Vehicle()
{
mf = "none";
cd = 1;
own = null;
}
public Vehicle(String themf, int numcd, Person theown)
{
mf = themf;
cd = numcd;
own = new Person(theown);
}
public Vehicle(Vehicle other)
{
mf = other.mf;
cd = other.cd;
own = new Person(other.own);
}
public void setmf(String newmf)
{
mf = newmf;
}
public void setcd(int newNum)
{
cd = newNum;
}
public void setown(Person newown)
{
own = new Person(newown);
}
public String getmf()
{
return mf;
}
public int getcd()
{
return cd;
}
public Person getown()
{
return own;
}
public String toString()
{
return mf + ", " + cd + " cd, owned by " + own;
}
public boolean equals(Vehicle other)
{
return mf.equals(other.mf) && cd == other.cd;
}
}
public class Truck extends Vehicle
{
private double load;
public int capacity;
public Truck()
{
super();
load = 0;
capacity = 0;
}
public Truck(String m, int c,
Person p, double loads,
int capc)
{
super(m, c, p);
load = loads;
capacity = capc;
}
public Truck(Truck oth)
{
super(oth);
load = oth.load;
capacity = oth.capacity;
}
public void setload(double newLoad)
{
load = newLoad;
}
public void setcapacity(int newCaps)
{
capacity = newCaps;
}
public double getload()
{
return load;
}
public int getcapacity()
{
return capacity;
}
public String toString()
{
return super.toString() + ", " + load + " lbs load, " + capacity +
" tow";
}
public boolean equals(Truck oth)
{
return super.equals(oth) &&
load == oth.load &&
capacity == oth.capacity;
}
}
public class CompleteTest
{
public static void main(String args[])
{
Person owner1 = new Person("Nathan Roy");
Person owner2 = new Person("Peter England");
Vehicle aCar = new Vehicle("Honda", 5, owner2);
Truck aTruck = new Truck();
aTruck.setmf("Skoda");
aTruck.setcd(100);
aTruck.setown(owner1);
aTruck.setload(150.50);
aTruck.setcapacity(3200);
System.out.println("Truck Details: ");
System.out.println(aTruck.getmf());
System.out.println(aTruck.getcd());
System.out.println(aTruck.getown());
System.out.println(aTruck.getload());
System.out.println(aTruck.getcapacity());
System.out.println();
System.out.println("Details of Vehicle 1: ");
System.out.println(aCar);
System.out.println("Details of Vehicle 2: ");
System.out.println(aTruck);
}
}
In: Computer Science
What is the importance of the Accounting Information Systems (AIS)? Mention about the presence of a chief information officer (CIO) or an information systems department, and other systems related issues.
Explain what would be the best entity’s attitude toward systems security and describe its strategies for dealing with systems security issues (e.g. intrusion detection systems, firewalls, etc.). Discuss the what would be a vulnerability of the entity’s AIS to violation by employees and attacks by hackers, and give examples.
In: Accounting
There is many types of compactors and rollers used in the construction of flexible pavement. mention all the types of those rollers and compactor and what are the differences between them and why each type is used for. Take in consideration the effect of changing in the bitumen viscosity with the decrease in the mix temperature during construction.
I need new answer please
In: Civil Engineering