Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Create a class called Date that has separate int member data for day, month and year. One constructor should initialize this data to 0. and another should initialize it to fixed values. A member function should display it, in day/month/year format. Write a program to add Date of two objects by overloading '+' operator.


Write a Program in C++ to enter the record of 100 Students using structure pointer as a function parameter.

Fields for structures are: “std_name”, “std_id”, “std_roll_no”, “std__gpa” & “std_award”;

apply a check such that those students having gpa greater or equal to 3.5 so that these students will get Rs. 10,000/- per semester as a scholarship amount



Find the output of the following program. Find errors if any and correct it.


class test

{ int x;

 public:

test(int x)

{x=x; }

void display()

{cout<<x;}

};

int main()

{  test T1(5);

   T1.display();

   return 0;

}


[Assume the necessary header files and namespaces included]

 




Consider the code snippet given below:-

 [Assume the necessary header files and namespaces included]

int main()

{ int a[10];

 cout<<”enter the elements of the array\n”;

 for(int i=0;i<10;i++)

 cin>>a[i];

 

 

return 0;

}

 Complete the code such that the even and odd numbers from the array ‘a’ are stored into two different arrays. The size of these arrays should be same as that of the number of elements and their memory should be deallocated after displaying the odd and even numbers.


Explain the difference between a MAC address and an IP address. You should relate your answer to the OSI model.


Instructions

You will need to complete the following objectives as a Java Application: create a GUI interface

1. When the program starts the user needs to be asked if they want to make a new entry or to

view a previous entry

2. If the user wants to make a new entry, the first question will be how many meters they

travelled (this will then need to be converted into kilometers)

3. The second question will give the user 3 options to choose from, and each option will have a

value. The options are as follows:

a. Hatchback = 3

b. SUV = 3.5

c. Sports car = 4.

When the user has selected an option that options value needs to be multiplied by the

distance they travelled in kilometers

4. The third question will allow the user to enter a description, of where they travel to and why

did they travel there.


5. You need to make use of error handling to ensure that the user only types in items that are

asked and not anything else



Given a student has scored

M marks in Maths, P marks in Physics and C marks in Chemistry. Write a program to check if a student is eligible for admission in a professional course based on the following criteria:Sum of marks in any two subjects >= 100 and M + P + C >= 180.

Input

The first line is an integer

M, the second line is an integer P, and the third line is an integer C.Output

The output should be a single line containing

True if it satisfies the given conditions, False in all other cases.Explanation


Given

M = 82, P = 55, C = 45.


M + P >= 100,(137 >= 100)

M + C >= 100,(127 >= 100)

and, M + P + C >= 180 (82 + 55 + 45 >= 180)

 


So, the output should be

True.

Sample Input 1

82

55

45

Sample Output 1

True

Sample Input 2

71

30

70

Sample Output 2

False


Numbers in String - 2

Given a string, write a program to return the sum and average of the numbers that appear in the string, ignoring all other characters. Input-The input will be a single line containing a string. Output-The output should contain the sum and average of the numbers that appear in the string. Note: Round the average value to two decimal places.

input1-I am 25 years and 10 months old

output1-35
17.5

input2-1time3 %times4

output2-8
2.67

Numbers in String - 1

Given a string, write a program to return the sum and average of the digits of all numbers that appear in the string, ignoring all other characters. Input-The input will be a single line containing a string. Output-The output should contain the sum and average of the digits of all numbers that appear in the string.

Note: Round the average value to two decimal places.input1-I am 25 years and 10 months old

output1-8
2.0

input2-Anjali25 is python4 Expert

output2-11
3.67

Smallest Missing Number

Given a list of numbers, write a program to print the smallest positive integer missing in the given numbers. Input-The input will be a single line containing numbers separated by space. Output-The output should be a single line containing the smallest missing number from given numbers.

input-1: 3 1 2 5 3 7 7

output-1:4

input-2: 5 5 2 3 1 8 8 4

output-2:6


LATEST TUTORIALS
APPROVED BY CLIENTS