Write a visual logic program to accept series of number

Assignment Help Visual Basic Programming
Reference no: EM1356156

PROGRAM DESCRIPTION: 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, although the user could enter fewer values than 250. Each non-negative input is to be placed into the next available element of an array 250 elements long. Assume that the user will enter at least two non-negative input values. When the terminating negative number is entered, output the amount by each non-negative input is below the maximum value entered.

Here are some data sets, which your program must be capable of processing.

Example 1
Entered numbers: 5, 9, 25, 44, 9, 0, 35, 2, 7, 0, 7, 44, 19, -8
Output: 39, 35, 19, 0, 35, 44, 9, 42, 37, 44, 37, 0, 25.

Example 2
Entered numbers: 4, 21, -6
Output: 17 and 0.

Example 3
Entered numbers: 22, 6, 45, 69, 21, 44, 21, 56, 356, 77, 165, 34, 56, 90, 354, 667, -6
Output: 645, 661, 622, 598, 646, 623, 646, 611, 311, 590, 502, 633, 611, 577, 313, 0.

Reference no: EM1356156

Questions Cloud

Description of psychological techniques : Give a brief description of the technique you selected and explain why you might be interested in using this technique.
Find the finance charge and the new balance : Phil had an unpaid balance of $1,854.50 on his credit card statement at the starting of December. He made a payment of $45.00 during the month.
Business question-global business environment : Business question: Global Business Environment - Should free trade always be fair? Provide an example of when free trade doesn't equate fair trade?
Risks associated with global business operations : Risks Associated with Global Business Operations - Explain what are the three primary risks inherent in global business operations?
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.
Find the amount in financing activities : A corporation acquired a building, paying a portion of the purchase value in cash and issuing mortgage note payable to the seller for the balance.
Item-response theory : An outcome of increasing computer technology is that item-response theory (IRT) is becoming increasingly easy to apply.
Submit and explain of the theories and compare : Submit and explain of the theories and compare and contrast the significant elements of the theories using example of individual learning in your organization
Global snack and beverage company operating : Analyst was forecasting a five-year annual growth rate in earnings per share of 11 percent for PepsiCo and 8 percent per coke. Compare these growth rates with those that were implied by the market prices for the firm's shares at the time.

Reviews

Write a Review

Visual Basic Programming Questions & Answers

  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..

  Data storage & "exception error trapping"

Discussion on Data Storage and  "Exception Error Trapping".

  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..

  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).

  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..

  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..

  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

  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.

  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.

  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.

  Designing vb applications across multiple platforms

Technical Project "Designing VB Applications Across Multiple Platforms".

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