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

  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