12
public abstract String toString();
}
private ArrayList<String> courses;
public Undergraduate(String name, int id, int graduationYear) {
super(name, id);
this.graduationYear = graduationYear;
this.courses = new ArrayList<>();
}
public void displayStudentLevel() {
System.out.println(name + " is an undergraduate student.");
}
public void registerCourses() {
Random...
Economic Profit: Economic profit = Revenue - Explicit Costs - Implicit Costs
Example: A firm earns $500,000 in revenue, explicit costs of $300,000, & implicit costs of $50,000.
Economic Profit = 500,000 - 300,000 - 50,000 = 150,000 (positive economic profit).
Present Value (PV): PV = FV / (1 + r)^n
Where: FV = Future Value
r = Interest rate
n = Number of periods
Example: If U expect $1,000 in 3 years
Love as Emotion, Feeling, Verb, and Noun:
Emotion: Love is often felt as a deep emotional connection.
Feeling: Love can be described as an internal experience, characterized by affection or longing.
Verb: Love is an active process, involving care, commitment, and selflessness.
Noun: Love is also a concept, something that can be defined, discussed, and shared across different traditions.
Eros Love:
Pros and Cons: Eros represents passionate love that can be both beautiful
Question 1: Consider the fraction 6/7. The decimal representation of this fraction is:
Answer: 6 ÷ 7 = 0.857142857... (repeating)
Question 2: If 60% of a population is vaccinated, what is the ratio of vaccinated to unvaccinated individuals?
Answer: 60% vaccinated → 60 : 40 → Simplified = 3 : 2
Question 3: A property has been assessed at $225,000. The mill rate is 14.5. To find the property tax, you would multiply the mill rate by:
Answer: 14.5 ÷ 1000 = 0.0145 → Property tax = 225,000 × 0.
1. Explain features of java
• Java is an Object-Oriented programming language that follows the principles of encapsulation, inheritance, polymorphism, and abstraction.
• Java is Platform-Independent, meaning it can run on any system with a Java Virtual Machine (JVM).
• Java is Simple and Easy to Learn as it eliminates complex features like pointers and operator overloading.
• Java provides Security by restricting direct access to memory and using public-key encryption for authentication.
Single Inheritance program
class Animal {
Animal() {
System.out.println("Animal constructor called");
}
void eat() {
System.out.println("I can eat");
}
}
class Dog extends Animal {
Dog() {
System.out.println("Dog constructor called");
}
void bark() {
System.out.println("I can bark");
}
}
public class Main {
public static void main(String[] args) {
Dog myDog = new Dog(
Single Inheritance program
class Animal {
// Constructor of Parent class
Animal() {
System.out.println("Animal constructor called");
}
// Method of Parent class
void eat() {
System.out.println("I can eat");
}
}
// Child class inheriting from Animal
class Dog extends Animal {
// Constructor of Child class
Dog() {
System.out.println("Dog constructor called");
}
// Method of Child class...
Class 7 (Values and Attitudes)
Commitment Types (CAN) Continuance: Staying because leaving is too costly. Example: “I can’t afford to lose my benefits.” Affective: Staying because of emotional attachment. Example: “I love this company.” Normative: Staying out of obligation. Example: “They trained me, I owe them.”
EVLN Model (Reactions to Dissatisfaction) Exit: Quitting Voice: Speaking up about issues Loyalty: Waiting and hoping things get better Neglect: Reducing effort or
Phases de la réponse sexuelle masculine (Masters et Johnson) // La réponse sexuelle est divisée en 4 phases : // Excitation // Plateau // Orgasme // Résolution==Phase 1 : Excitation // Déclenchée par le désir sexuel via des stimulations (baisers, caresses...) // Provoque une vasocongestion des organes génitaux // Chez l’homme, elle se manifeste par l’érection du pénis et l’augmentation des sécrétions prostatiques // Trois types d’érections : réflexe (stimulation locale), psychogène