Language

1. Write a program to replace a particular word by another word in a given string. For

example, the word “PASCAL” should be replaced by “C” in the text “It is good to program

in PASCAL language.”

2. A Maruti car dealer maintains a record of sales of various vehicles in the following form:

Vehicle type            Month of sales                Price

MARUTI-800            02/01                           210000

MARUTI-DX             07/01                          265000

GYPSY                      04/02                           315750

MARUTI-VAN          08/02                            240000

Write a program to read this data into a table of strings and output the details of a particular

vehicle sold during a specifi ed period. The program should request the user to input the

vehicle type and the period (starting month, ending month).

Posted in Uncategorized