When input is "python learning" output displayed is 16-25-20-8-15-14- 12-5-1-18-14-9-14-7 there is additional - after 14 digit. how to rectify this issue?
Write a program to convert the text file contents to Upper-case & write the contents into another
file.
Write a program to create a file that contains employee and display the contents in a neatly
formatted manner.
Write a program to store Student objects in a file, search for a student and display his details.
The program also should display the number of the object from the beginning and the end of the
file.
Write a program to create a numeric file and split the file into two files, one containing all odd
numbers and another with even numbers.
Write a program to writing in to a text file, read from a text file and display
Create a base class called Radix10 which has a member function decimal. It can be set and display
by member functions. It also contains a virtual function called convert. Derive two classed from
Radix10. One is called Radix2 and the next is called Radix16. They redefine the convert function
such that the decimal value is displayed into binary or hexa_decimal. They have a data member
length which can be set by member functions. To convert the decimal data is divided by appropriate
radix length times and the remainder which is always from 0 to (radix-1) should be displayed in
reverse order. In hexa decimal, for remainder 10, 11, 12 ,13, 14 and 15 the codes A, B, C, D, E or F
should be used respectively.
Create a base class called Shape which has two double type values. Use member functions get()
and set() to get and set the values. Use a virtual function display_area() to display the area. Derive
two specific classes called Triangle and Rectangle from the base class Shape. Redefine
display_area() in the derived classes. Write a program to display the rectangle or triangle area.
Write a program for a publishing company that markets both printed books and audio visual
lectures stored on CDs. Write a class Publication thatstores title and price. Derive a class book which
has an additional member as no_pages and a class Lecture with member play_time.
Write a program that has a class Train with data members seats_first_class, seats_second_class
and seats_ac_2tier and member functions to set and display data. Derive a class Reservation that has
data members booked_first_class, booked_second_class and booked_ac_2tier and functions to book
and cancel tickets and display status.