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

  Designing vb applications across multiple platforms

Technical Project "Designing VB Applications Across Multiple Platforms". This assignment will contain two (2) Parts: Written Paper and Visual Basic Prototype. The Visual Basic Prototype is not included in the total page count but is included in the e..

  Visual basic programming discussion

The use of decision logic is one of the major concepts of computer programming. The decision takes your code from being sequential to one that can take various options based on the different conditions. Determine the method of coding that you would u..

  Ticketseller

Use Visual basic 2010Visual Basic,  TicketSeller. This assignment will contain two (2) Parts: Event Planning Document and Coding phase. You must submit both parts as separate files for the completion of this assignment. Remember, you are only to de..

  Data storage & "exception error trapping"

Discussion on Data Storage and  "Exception Error Trapping".

  Designing vb applications across multiple platforms

Technical Project "Designing VB Applications Across Multiple Platforms".

  The implementation of server side of the application

Implementation of dynamic content, server side (backend) and database for your web site using Microsoft Visual Studio 2012

  Need help building a vwd website

Need help building a VWD website. This website may not go live. I have little progress as a family tragedy has impeded my time for school.

  To develop a visual basic console application

The aim of the assessment is to develop a Visual Basic console application that performs a number of mathematical functions. The mathematics package will be menu driven, i.e. a number of options will be displayed, and the user will be able to input w..

  Program in basic which prompts user to input two integers

Write down the program by using Small Basic which prompts the user to input two integers: firstNum and secondNum (firstNum must be less than secondNum).

  Develop vb-net application that includes arrays and loops

Develop a VB.NET application that includes arrays, loops, and IF statements to do the following. Your output must also display the number of applicant(s) being interviewed.

  Visual basic program to accept numeral values

Write a VISUAL BASIC program to accept numeral values of any unit, sum up the total, calculate the average, and then Output the result with a proper unit.

  Write a visual logic program to accept series of number

Write a Visual Logic program which accepts a series of numbers, until the first negative value is entered. The maximum number of non-negative input values is 250.

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