Write a program with analysis to sort in descending manner using 'p' number of values and analyze the complexity.(bubble sort)
Write a program that mimics a calculator .the program should take as input two integers and the operation to be performed .
It should then output the number ,the operator and result
Write a program that input value and range from user ,display multiplication table to a given range by using for ,while and do while loops.
How many types of operator used in c++? Elaborate each operator with one example as a program.
We want to store the information of different Books: Author name, Book name, Publications and Price. Create a class named BOOK with appropriate data members and member functions which store all information into a text file.
How do I add comments To a console application that prints the next 20 leap years. A leap year is a year in which an extra day is added to the Gregorian calendar, which is used by most of the world. While an ordinary year has 365 days, a leap year has 366 days. ... A leap year comes once every four years. Because of this, a leap year can always be evenly divided by four.
Compare the methods of determining prime numbers with code and concept.
i.Naive method
ii.square root method
iii.Seive of Eratosthenes
Write a C++ program to perform the following tasks:
(i) Create ‘Student’ class, with two data members: name and Branch_Number ;
Branch_Number is an integer and name is a string. The value of Branch_Number is 1 for CSE
student and 2 for ECE student.
(ii) Derive two classes ‘CSE’ and ‘ECE’. There are three subjects in each branch. Marks obtained
in each subject is considered as data members. In other word, for the class CSE, the data
members are CSE_sub1_marks, CSE_sub2_marks and CSE_sub3_marks. Similarly, for class
ECE, the data members are ECE_sub1_marks, ECE_sub2_marks and ECE_sub3_marks.
(iii) Input appropriate data from the keyboard for 2 CSE and 3 ECE Students. Write necessary
function to get data.
(iv) Display Branch_Number, name, marks for CSE students first and then for ECE students.
Write a program with analysis to sort in descending manner using 'p' number of values and analyze the complexity.(bubble sort)
Using Structures write an interactive program in C language to create an application program for a small office to maintain the employee’s database. This application should be having menu options like
• Creating a New Record
• Reading/Listing of Records
• Modify the record
• Delete the record
Each employee record should have Employee Name, Employee ID, Department Name, Salary, Position, Date of Joining, etc.). The application should be designed user-friendly.