Sei sulla pagina 1di 6

RVPL Practice Problems

1. Develop a VB Application for converting currency. Consider at least four


different currencies (. $ )

2. Develop a VB Application that converts values from British units to Metric unit
Hint: Consider converting inch, foot, yard to cm, meter, and km. You should be able to convert any value into corresponding metric value. E.g. inch->cm, inch-> meter, inch->km. All combinations should be considered. Provide two text boxes and two list boxes to show values and units respectively. Use third text box to display the result.

3. Create a UI showing two list boxes and four buttons. Let the user add/remove
values from first list to second list. The four command buttons are Add, Add All, Remove, Remove All. The user should also be able to add single item by double clicking it in the first list and remove an item by double clicking it in the second list. When items are added in the second list they get removed from first and vice versa.

4. Create a program in VB to display random advertisements as application


footer. The Ad should show a static picture and scrolling text besides that. Hint: You can create a user defined data type Advertisement which has two fields - ImageURL (String) and AdText (String), which refer to location of the image and advertisement text. Use LaodFile function to load the image into a PictureBox and use a timer control to manage the scrolling of text in a label.

5. Create a VB application which mimics the Windows Notepad.


Hint: Use application wizard to generate the menus and toolbars. Use a TextBox control with MultiLine property to true and ScrollBars to 3-Both. Refer Chapter No. 15 - Reading and Writing Text Files from the Text book for file manipulation.

6. Use Collection class to store the elements of a Form1 and list out their name
in a multi-line TextBox on Form2. Hint: Put all most all controls from the toolbox on a VB form (Dont add any extra controls). Use Object class to create the collection, and list out the common properties of the controls, like name, index, left, top, enabled etc.

7. Develop an application to show a color chooser using three scrollbars and


three labels in VB.

Hint: Let the user choose RGB values (0 - 255) using the three scroll bars, set the FillColor of a shape control using the value set by combination scrollbar values.

8. Create tables in oracle to store the Menu Item (Menu name, kitchen name,
shelf life) and Ingredients (Item name, quantity, price, market name, and Current stock). Create a normalized schema to store the relation between the Menu Items and Ingredients. Show the Recipe of each menu item using a HSFlexGrid Control in VB 9. Create a DataReport for above problem.

10. Assume an assembly polling database for election. Design schema in 3rd
normal form to store candidates, parties, constituencies, and voters information. Write a PL/SQL stored procedure to print name of a constituency, total number of voters and candidates (their party in brackets).

11. You can send a text SMS to 9999 saying ASTRO <1 12>, CRIC, STOCK, or
JOKE asking for astrology, cricket score, current rates of top 10 companies in the stock market or a hilarious joke respectively. Create a schema in Oracle to store this information. Create a PL/SQL package which has a function that returns a the appropriate string reply to the SMS sender, and a stored procedure which deducts Rs. 5 per SMS from the senders account (which implies you should have account information of the particular mobile number in the database ) 12.Create a table of books in Oracle. Design a menu in VB as shown in figure. Use DataGrid control to manipulate the records.

13. Create following database schema of online auctions in Oracle:


members (userid, password, name, address, phone, email) items (ino, category, title, description, sellerid, quantity, startprice, bidincrement, lastbidrecieved, closetime) shipping (ino, shiptype, shipprice) bid (buyerid, ino, price, qtywanted, bidtime)

rating (ino, buyerid, sellerid, bcomment, scomment, bscale, sscale) Insert at least 20 proper records in each table and execute the following SQL queries on the tables. Try not to hard code the time in the time-bound queries (A, B, F).

A. Find the items bought by member 10 in the in the last week. B. Find all the members who did not buy, sell or bid for last one month.
C. Print the shipping address of the member who has ordered item number 2134.

D. List the top 10 hot selling items of the day in ascending order
according to the category.

E. Find the items most hated by sellers and buyers. F. Write a trigger to avoid biding of the items whose bid time has been
closed.

G. Write a stored procedure to calculate the total sales of item sorted by


category, print the summary for every category.

H. Add constraints on respective tables that the values price, quantity,


startprice, shipprice should be non - negative.

I. List out the members and their e-mail addresses who are buyers and
sellers both.

J. List all the items which did not receive any bid since last three months 14. Consider the following relations of the mail order database :
employee (eno, ename, pin, hire_date) parts (pno, pname, qty_on_hands, price, level) customers (cno, cname, street, pin, phone) orders (ono, cno, eno, received_date, shipped_date) odetails (ono, pno, qty) pincodes (pin, city) Create these tables in Oracle and write SQL expressions that answer following queries

A. Get the names of the parts that cost less than Rs. 1000
B. Get the names and cities of employees who have taken orders for parts costing more than Rs. 2500

C. Get the names of the customers who have ordered parts from
employees living in Dhankawadi

D. Get the names of the customers who have ordered parts only from
employees living in Dhankawadi

E. Get the names of the customers who have ordered all the parts costing
less than Rs. 2000

F. Get the names of employees along with total sales they have made for
the year 2006

G. Get the names of the employees who have never sold anything to a
customer living in the same pin code as the employee H. Get the names of the customers who have placed most expensive orders I. Get the names of the customers who have placed highest number of orders J. Get the names of the parts that ordered the most (in terms of quantity, not the number of orders) K. Get the names of the parts along with the number of the orders they appear in, sorted in decreasing order of the number of orders

L. Get the average waiting time for all orders in number of days. The
waiting time for an order is the difference between the shipped date and the received date. Hint: The dates should be truncated to 12:00 AM so that the difference is always a whole number of days. M. Get the names of the customers who had to wait the longest for their orders to be shipped N. For all the orders greater than Rs. 50000, get the order number and the waiting time for the order. 15.For the mail order database, write SQL expressions to perform the following updates to the database A. Decrease by 15 percent the prices of all the parts that cost less than Rs. 1000 B. Update all the NULL-valued shipped dates of orders to the current date C. Decrease by Rs. 50.00 the prices of parts that cost more than the average price of all parts D. Transfer all the orders belonging to eno = 1000 to the employee with eno = 1001

E. Delete all the orders of customers living in Shaniwar Peth

F. Delete all the orders from employees with minimum sales 16.Write he PL/SQL procedure that finds the five employees with the highest sales figures in terms of rupees and prints their numbers along with the total sales for each 17.Write a PL/SQL procedure that performs an update of a pin code value. It takes the old and the new values of the pin code and changes all the occurrences of the old value to the new throughout the database 18.Create a data report in visual basic in the following format

Invoice
Customer: Street: City: PIN: Phone: Order Number: Taken By: Received on: Shipped on: Part No. 10067 10345 Eknath Gaikwad B/34, Magalwar Peth. Kolhapur 422122 98-345-23423 1022 Vishal (1001) 23-Mar-2006 30-Mar-2006 Part Name XXX XXXX XXXXX XX Total Qty 1 2 3 Price Ext 2000 450 2000 900 2900 Customer Number: 2342

19. Write a PL/SQL stored procedure that prints all customer information to
display. The format of the output is as follows: CNO 1111 2222 3333 CNAME STREET PIN 400123 478556 456665 PHONE 8788776 3877889 7688776

Keshav Inamdar Malkapur Shivram Khdase Chakan Sheetal Morey Shirwal

20. Design an ActiveX Control EmailEntry to accept a valid e-mail address. The
control should have a InvaildEmailAddress event for invalid email address Hint: Find @ character first. Check for at least one alphabet before @. Find

one last occurrence of period . Character. See that it followed by at least two alphabets.

Potrebbero piacerti anche