•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Visual Basic 4 / 5 / 6 section within the Software Development category of DaniWeb, a massive community of 391,572 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,864 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Visual Basic 4 / 5 / 6 advertiser:
Views: 309 | Replies: 3
![]() |
•
•
Join Date: Jul 2008
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
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.
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.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Visual Basic 4 / 5 / 6 Marketplace
Similar Threads
- PC restarts itself + can't flash BIOS (A REAL CHALLANGE) (Troubleshooting Dead Machines)
- Challange (Windows NT / 2000 / XP / 2003)
- A challenge for all newbies (Computer Science and Software Design)
- can't link to included files... y? (C++)
- lil challange. (C)
- php project (PHP)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: green screen problem
- Next Thread: Flashing shape !!! ...


Linear Mode