Description of this paper

Write the Visual Basic code to for the following problem

Description

solution


Question

Write the Visual Basic code to for the following problem.;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...

 

Paper#67513 | Written in 18-Jul-2015

Price : $32
SiteLock