Program in visual basic that prints * in a diamond shape

Assignment Help Visual Basic Programming
Reference no: EM13934871

I am having trouble creating a program in Visual Basic that prints the * in a diamond shape. Do you have any suggestions?

This is what I have so far. It is an un-proportioned diamond, I need a normal diamond. What am I doing wrong?

Dim i As Integer

Dim y As Integer

Dim j As Integer

For i = -9 To 9

y = System.Math.Abs(i)

y = (y * (-1)) + 10

Console.WriteLine("")

For j = 1 To y

Console.Write("*")

Next

i += 1

Next

 

Reference no: EM13934871

Questions Cloud

What is value of call option if underlying stock price : What is the value of a call option if the underlying stock price is $102, the strike price is $95, the underlying stock volatility is 37 percent, and the risk-free rate is 4.1 percent? Assume the option has 124 days to expiration
Determine the adjusted balances of the accounts : Determine the adjusted balances of the accounts if the balance in Manufacturing Overhead is considered material in amount Round to the nearest whole dollar.
Proposal of a health promotion intervention : Assessment: Poster Presentation. For this assessment you are required to present an academic poster which details a proposal of a health promotion intervention to be carried out in the university.
Terms of their average negotiation profit : For each month in 2014, display the total profit (i.e. using the attributes purchasedPrice and agreedPrice) generated from car sales only. Do not consider any discounts.
Program in visual basic that prints * in a diamond shape : Do you have any suggestions?
What is value of call option on stock with strike price : A stock is currently priced at $64 and has an annual standard deviation of 44 percent. The dividend yield of the stock is 3.1 percent, and the risk-free rate is 6.1 percent. What is the value of a call option on the stock with a strike price of $61 a..
Case studyaditya mass communication private limited : A.P. State Road Transport Corporation, Hyderabad advertised tender notice on calling for tenders for display of advertisements on the buses owned by it. According to the condition of the Tender Notice, each tender form had to be accompanied by a dema..
What are the ketone bodies : What are the ketone bodies? Why do they have that name, and how do they arise in metabolism? Explain why they accumulate under conditions of carbohydrate starvation or in diabetes.
Calls with strikes are more valuable and puts : Calls with ____ strikes are more valuable and puts with ____ strikes are more valuable.

Reviews

Write a Review

Visual Basic Programming Questions & Answers

  Write a loop in pseudocode or visual basic

Write a loop in pseudocode or Visual Basic to print the integers from 10 to 100 counting by 10s

  Create a sum swamp game in visual basic

Create a Sum Swamp game in visual basic.

  Create a window application form on visual basic

Create a window application form on Visual basic 2012., that verifiers a customers personal identification number (PIN). A valid PIN is a seven-digit number that meets the follow specifications

  Wage calculator with tax calculationsdevelop an application

wage calculator with tax calculationsdevelop an application that calculates an employees earnings as shown

  Vb.net program with a graphical user interface.

Write the program in VB.NET (not Web based) with a graphical user interface.

  Design a relational database to store information

Create the following queries, including at least the indicated fields:

  Create an application that stimulates the functionality

Create an application that stimulates the functionality of the gas pump. User enters the number of gallons to purchase and clicks the desired grade (each grade is represented by a Button whose Text properties are set to Regular, Special, and Super..

  Accept data regarding the purchase of fruit

Continually accept data regarding the purchase of fruit until a sentinel value is entered. Prompt the user for each item, and accept the name of the fruit (e.g., "dried apples"), the price per pound, and the number of pounds sold in a month

  Create an application in which a user can enter a phone book

Create an application in which a user can enter a phone book entry, including the following elements: First Name, Last Name, Phone Number, email address

  Create a program to determine johns gas bill

What are the inputs? How are they validated? What character keys are needed and what processing is required here

  Write a program using dynamic arrays

Write a program using dynamic arrays to record the high temperatures of last seven days and to display all of them with the average of high temperatures.

  Why is exception handling important to software development

Exception handling, some thought should be given to this topic, rather than finding and pasting articles from the Internet into a discussion board. Please respond to all of the following prompts: 1. Why is exception handling important to software dev..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd