Create a calculator for the complex number by creating a class of complex number (with two member variables, required constructor(s) and functions) with overloading all operators in it.(Operators: ++,--,+,-,/,*).
2. We want to keep track of Students studying in university. To do so create a class Students that has the following instance variables Reg_no, Name, Age, Address, Semester, CGPA and Fee. Where address is the object of address class and fee is same for all students.
The Student Class should have default constructor and augmented constructor. You need to write set() method to assign values to the instance variables and a method which can return grade using CGPA. You are required to create two objects of Student class and then display his Data along with grade.
Write a class Box with three variables length, width and height. Design suitable constructors, set and get functions. Write the main function and create the different objects of Box class. We want to count the objects of Box class what more you can add in your class to achieve the counting facility. Write the code and display the number of object created so far.
Write a java program to print all even numbers between 1 to 100 - using while loop
myFormEl.addEventListener("submit", function() {
event.preventDefault();
if (nameEl.value != '' && passwordEl.value != '') {
resultErrMsgEl.innerText = 'Login Success';
} else {
resultErrMsgEl.innerText = 'Fill in the required details';
}
});
3 cases are not executed please help this is same format need
Write a program to calculate the bonus of the employee given the basic salary of the employee.
The bonus will be calculated based on the below category.
if Basic Salary-15000 and less than 20001 calculate bonus as 17% of basic+1500 if Basic Salary>10000 and less than 15001 calculate bonus as 15% of basic+1200 If Basic Salary<10001 calculate bonus as 12% of basic+1000 for rest calculate bonus as 8% of basic+500
Business rule:
1) If the salary given is a negative number, then print -1
2) if the salary given is more than 1000000, then print -2.
3) All the test cases has the calculated bonus as integer value only.
Create a class named UserProgramCode that has the following static method public static int calculateBonus(int input1) Create a class named Program that accepts the inputs and calls the static method present in the UserProgramCode.
1. Write a c# program contains “Car” as abstract class and an instance variable reg no, one concrete method openTank (), two abstract methods steering (int direction, int angle), braking (int force) and its implementation sub classes Tata, Mahindra which overlies above methods. Implement the above scenario and use all access specifiers
Capital and Country
The goal of this coding exam is to quickly get you off the ground with HTML select element
Reference image:(final output)
https://assets.ccbp.in/frontend/content/dynamic-webapps/capital-and-country-op.gif
Test cases:
1.page should consist only one HTML span element with a non-empty text content
2.page should consist only one HTML paragraph element
3.page should consist of selected as HTML attribute for the HTML option element
4.JS code implementation should use addEventListenter with event as change
5.when the value of the HTML select element is changed ,then the text content in the HTML paragraph element should be the selected country name
6.page should consist only one main heading element
7.page should consist of HTML select element
page should consist of four HTML option elements with attribute as value.
pass the above all test cases.... 5 case are not executed
The following expression has a mistake
if{ x <= 0 }Please provide the corrected version
Get videos from TEDx channel (id=353) with more than 50 thousand views.
Note:
Sort the output in the descending order ofno_of_viewsand in the ascending order of videoname
Expected Output Format
video_id , name , duration_in_secs , no_of_views