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

Write a C program to print weight and height of a person using typedef.


Input six names from text file and use if (s1>s2) then swap to sort 5 names (use string library)


1-   Input six names from text file and use strcomp and strcopy functions to sort 5 names (use cstring libtrary)

 

Where strcmp and strcpy are the followings:

  

strcomp(s1,s2): return 0 if s1 == s2

                         return positive number if s1>s2

                         return negative number if s1<s2

strcpy(s1,s2):   s1=s2


Using vector class library, read 12 numbers from a file and push into a vector “vect1”. Write the following functions:

      1- Swap the first element in the list with the min value .

      2- Swap the last element in the list with the max value

      3- Return the median.


Use a structure called Time to write a C++ program that asks the user to enter a time value in hours, minutes, and seconds. The program should then print out the total number of seconds represented by this time value.


create a person class with name as data member provide four functions in getname() to get input from user and put name to display output write two virtual functions getdata() and outstanding() where both these functions takes no argument and getdata() returns no value but outstanding returns Boolean value . derive student and professor from person . student class should contain gpa as its float type and overrides the virtual functions appropriately . in professor class provide number of applications as data members and override the virtual functions appropriately . write a main program to declare a array of pointers to person object and depending on the choice from user create either a student object or professor object and store it in person array for n persons and display the details along with whether the person is outstanding or not


Create a person class with name as data member provide four functions in getname() to get input from user and put name to display output write two virtual functions getdata() and outstanding() where both these functions takes no argument and getdata() returns no value but outstanding() returns Boolean value . Derive student and professor from person. student class should contain gpa as its float type and overrides the virtual functions appropriately . In professor class provide number of applications as data members and override the virtual functions appropriately . Write a main program to declare a array of pointers to person object and depending on the choice from user create either a student object or professor object and store it in person array for n persons and display the details along with whether the person is outstanding or not


Write a program having class STRING, With data member which can store character array(Dynamically you can store). It should facility to initialize by parameterize constructor and concatenate STRING objects.


Ex:  STRING  obj1(“OOP”), obj2 (“IN KIIT”);


Obj1 = obj1 + obj2;


Then obj1 should have “ OOP IN KIIT”  string in it.


Write a program class Publisher with data member to store name of publisher, Class Author with data member to store name of author. Now class Book will inherit both classes Publisher, Author and have data member cost of book, and static data member to count number of Book objects created. All data members of class must be initialized by parameterized constructors. Create few objects of class Book in main function and by using static member display how many objects have created. Write suitable functions needed.


Create a class called bMoney. It should store money amounts as long doubles. Use the function ms_to_ld() to convert a money string entered as input into a long double, and the function ld_to_ms() to convert the long double to a money string for display. You can call the input and output member functions getmoney() and putmoney(). overload the operators +,-,*,and / appropriately


LATEST TUTORIALS
APPROVED BY CLIENTS