Prompt the user to store values into the array

Assignment Help Visual Basic Programming
Reference no: EM131270823

Write the Visual Basic code.

Declare an array to store five values; they could be decimal numbers.

Prompt the user to store values into the array.

Then prompt the user for a value to subtract from each element of the array.

Subtract that value from each element of the array and print the new values. Make sure you actually change the values in the array.

The output should look like this (note that it should work for any values that are input, these are just examples). You must use loop(s) to process the array.

Enter number: 10

Enter number: 20

Enter number: 30

Enter number: 40

Enter number: 50

Enter value to subtract: 5

After subtracting 5 the values are

5

15

25

35

45

Press any key to continue . . .

Reference no: EM131270823

Questions Cloud

Which stage in the relationship development process : Which stage in the relationship development process is characterized by an increase in the derived relationship benefits and in risk taking? Analytical CRM includes the following, except
Calculate the expression for the boundary-layer thickness : Use the results from the previous problem to calculate the local shear on the wall and the total drag for a plate with a length L. How does this approximation compare with the exact result of Blasius?
Perceived challenges in their hiring practices : South Florida is a very diverse metropolitan area. As a Human Resource professional, what are the benefits of diversity to a South Florida organization? Are there any perceived challenges in their hiring practices?
Employers and society weigh the costs : Employers' major complaint about the ADA is that the costs of making reasonable accommodations will reduce their ability to compete with businesses (especially foreign ones) that don't face these requirements. Is this a legitimate concern? If so H..
Prompt the user to store values into the array : Write the Visual Basic code. Declare an array to store five values; they could be decimal numbers. Prompt the user to store values into the array.
Types and kinds of leadership challenges : Explain the quote and make sure to define the nature of knowledge management and the types and kinds of leadership challenges that knowledge management engenders.
Create a new project in bluej by clicking on the menu option : Create a new project in BlueJ by clicking on the menu option Project > New project. This will create a folder with the project name (see below). All BlueJ project-related files for this project will be stored in this folder.
Differences in personality traits to consumption contexts : The concept of personality refers to a person’s unique psychological makeup and how it consistently influences the way a person responds to his or her environment. Marketing strategies based on personality differences have met with mixed success, par..
What will this score be changed to : For this program, you will modify the average calculation assignment from Module 9. The program should start the same, asking the user to enter 6 test scores and storing them in the array. What will this score be changed to?

Reviews

Write a Review

Visual Basic Programming Questions & Answers

  Is visual basic for application an object oriented language

Is Visual Basic for Application an Object Oriented Language? Your response should be a MINIMUM of 500 words. You must include and cite your research links.

  What makes the database product unique

1. What makes the database product unique?  2. What would be required to use the database in your own Visual Basic programming?  3. Could a Visual Basic program, once written, be modified to use a different database product?

  Table of decimal octal hexadecimal and binary equivalents

write a program that displays in a textbox a table of the binary octal amd hexadecimal equivalents of the decimal

  What kind of hardware it runs on and tied in

Conclude with a few sentences providing your own personal overall evaluation of the software and why you make this assessment

  Why is the theory of charisma described as a double-edge

why is the theory of charisma described as a double-edge sword? please identify a leader that used charisma in a

  An analysis of a group of weight measurements

An analysis of a group of weight measurements involves converting a weight value into an integer category number that is determined as follows

  Visual basic programming discussiondecision logic please

visual basic programming discussiondecision logic please respond to the followingthe use of decision logic is one of

  Case study on casey anthony trial

Provide a brief summary of the background, charges, and trial of this high-profile court case.Explain, from a forensics perspective, the digital evidence found on the Anthony family computer that helped the prosecutors build a case against Anthony.

  Create a visual basic windows application to display sales

Create a Visual Basic Windows application. Use the following names for the solution, project, and form file, respectively: Conway Solution, Conway Project, and Main Form.vb.

  Create a visual basic program to analyze a mortgage

Create a Visual Basic program to analyze a mortgage. The user should enter the amount of the loan, the annual percentage rate of interest, and the duration of the loan in months.

  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

  Modify the gate takings application

Your application from Activity 1 was able to keep a record of the total attendance and the total cash collected from ticket sales from all events happening at the Games.

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