solve this problems in visual basic.

1. Write a program that prints the following diamond shape. You may use an output statement that
prints a single asterisk (*). Maximize your use of repetition (with nested For/Next structures) and
minimize the number of output statements. Print the diamond on the form. Set the formâ€™s font to
Courier Bold.
2. Write a program that prints the following diamond shape. You may use an output statement that
prints a single asterisk (*). Maximize your use of repetition (with nested For/Next structures) and
minimize the number of output statements and allow the user to input number of rows in the
diamond. Your program should provide a button which when clicked displays the diamond in the
form.
3. The simple interest on a loan is calculated by the formula
Interest = (principal amount * rate * days) / 365
The preceding formula assumes that rate is the annual interest rate and therefore includes the
division by 365 days. Develop a program that will input principal amount, rate and days for several
loans and will calculate and display the simple interest for each loan, using above-mentioned
formula. Use textboxes for input and levels for display.
4. Write a procedure that takes an integer value and returns the number with its digit reversed. Write a
program, which verifies that the procedure is properly written.
5. Write a program that uses a programmer-defined procedure called CircleArea to calculate and print
the area of a circle. The user should input the radius in a TextBox.
Page 6 of 6
6. Write a program that displays the names of 10 states in a ComboBox. When an item is selected from
the ComboBox remove it.
7. Write a program that displays a circle of a random size and calculates and displays the area, radius
diameter and circumference. All drawing should be done in PictureBox and results of the calculation
should be displayed in a ListBox.
8. Write a program that inputs a line of text and uses stack object to print the line reversed.
9. Write a program that uses a stack to determine if a string is a palindrome. The program should
ignore spaces and punctuation.
10. Dates are represented in several common formats. Two of the more common formats are:
07/22/99 and July 22, 1999
Write a program that reads a date in the first format and displays the date in the second format.

## All 8 Replies

o.O

It looks like some one got questions from exam.

abe kameene jab VB aati nahi to forum join hi kyu ki ja gar jakar so ja ma ke.............................

o.O

It looks like some one got questions from exam.

I think so!
Come on boy, sit and code by yourself! :icon_cheesygrin:

Hey can any one tell me which book will be the best for learning VB quickly and easily

create a diamond asterisk display in textbox with command button....

i need it asap..tnx

jeez!!, these problems have been solved many times!! :yawn:

I think these questions came from an exam or a homework...