Create a Class User having following data members
Name (String)
Phone (String) T
Address (Address Class) -> Perform Dependency Injection
Team (Team Class) -> Perform Dependency Injection
Address Class have following data members
Address Line 1 (String)
Address Line 2 (String)
City (String)
State (String)
PINCODE (Integer)
Team Class have following data
Team Name (String) >> To be taken from properties file
Number of members (Integer) >> To be taken from properties file
Project (Project Class) -> Dependency Injections
Project Class have following Data
List of Sub Projects (Array List)
Implement the same using Spring 5 Annotation and XML Approaches
Create Beans for multiple employees and fetch the same in the Main Class.
Note: Create two different projects one for Annotations Based Approach and other for XML based approach.write a c program which reads the marks of a student in physics,chemistry,and mathemaics,and stores them in integer variables p,c,m.The program should print (Eligible/Not Eligible) based on the following eligibility criteria for admission to a degree course:
Marks in Maths >=65
Marks in Phy >=55
Marks in Chem>=50
Total in all three subject>=190
or
Total in Math and Physics>=140
Create a class called Book that contains instance variables like
BKName, BKId and BKAuthor, a parameterized constructor to
initialize its instance variables, a method BKUpdateDetails(String
name, int id, String author), that accepts new values for name, Id and
author as parameters and updates the corresponding instance variable
values of that object and another method BKDisplay() to display the
book details. Create a class BookDemo and provide main method for
instantiate a Book object, display the original book details, update its
details with new values, and display the updated book details.
sorting 5 numbers using the basics (without array)
What is the printout if you entered 2 2.5 when executing the following code?
double width;
double height;
cin >> width >> height;
cout << width * height;
Show the output of the following code :
double area = 5.2 ;
cout << "area " ;
cout << area ;
An electricity board charges the following rates to domestic users to
discourage large consumption of energy.
For the first 100 units − 50 P per unit
Beyond 100 units − 60 P per unit
If the total cost is more than Rs.250.00 then an additional surcharge of
15% is added on the difference. Define a class Electricity in which the
function Bill computes the cost. Define a derived class More_Electricity
and override Bill to add the surcharge.
Write a program that declares two classes. The parent class is called Simple that has
two data members num1 and num2 to store two numbers. It also has four member
functions.
The add() function adds two numbers and displays the result.
The sub() function subtracts two numbers and displays the result.
The mul() function multiplies two numbers and displays the result.
The div() function divides two numbers and displays the result.
The child class is called Complex that overrides all four functions. Each function in
the child class checks the value of data members. It calls the corresponding member
function in the parent class if the values are greater than 0. Otherwise it displays
error message.
Write a program having a base class Student with data members
rollno, name and Class
define a member functions getdata() to input values and another
function putdata() to display all values. A class Test is derived from class
Student with data members T1marks, T2marks, T3marks, Sessional1,
Sessional2, Assignment and Final. Also make a function getmarks() to
enter marks for all variables except Final and also make a function
putmarks() to display result. Make a function Finalresult() to calculate
value for final variable using other marks. Then display the student
result along with student data.
The following pseudocode describes how to swap two letters in a word. We are given a string str and two positions i and j. (i comes before j) Set first to the substring from the start of the string to the last position before i. Set middle to the substring from positions i + 1 to j - 1. Set last to the substring from position j + 1 to the end of the string. Concatenate the following five strings: first, the string containing just the character at position j, middle, the string containing just the character at position i, and last. Check this pseudocode, using the string "Gateway" and positions 2 and 4. Draw a diagram of the string that is being computed,