Create an integer array which contains ten elements

Assignment Help Computer Engineering
Reference no: EM132117507

Questions:

1. Create a VB.NET Console Application that defines a function Smallest and calls this function from the main program. The function Smallest takes three parameters, all of the Integer data type, and returns the value of the smallest among the three parameters. The main program should

(1) Prompt a message (using Console.WriteLine) to ask the user to input three integers.

(2) Call the built-in function Console.ReadLine() three times to get the user's input.

(3) Convert the user's input from strings to integers.

(4) Call the function Smallest, with the user's input as its parameters.

(5) Display the result of the function Smallest in the Console window using Console.WriteLine.

You may assume that the user always correctly inputs integers from the keyboard, and your program does not have to check whether the user inputs something other than integers. Print your program and handwrite the user's input and output at the end of the printout of your program.

2. Create a VB.NET Console Application that does the following:

(1) Create an Integer array which contains 10 elements.

(2) Assign the following values to the elements in the array: 9, 1, 8, 4, 2, 6, 7, 3, 5, 10

(3) Use the For-Each-loop to compute and printout the sum of all elements of the array in the Console window.

Reference no: EM132117507

Questions Cloud

Write a method called power : Write a method called power. This method takes as input a real number, x, and an integer number, y.
Perform the affine mapping by computing the matrix-vector : Perform the affine mapping by computing the matrix-vector multiplication and addition.
Write code to ask the user how many honor students : Write code to ask the user how many honor students he wishes to add. Then read in from the user using the Scanner class the name.
Improve the companies financial performance : BUACC1508 ACCOUNTING AND FINANCE - Strategies to improve the companies financial performance and results and also improve investor (shareholder/member)
Create an integer array which contains ten elements : Create a VB.NET Console Application that defines a function Smallest and calls this function from the main program.
What are mcdonalds strategic information systems : What are the unique resources that McDonalds possesses? What are McDonald's Strategic Information Systems (SIS)?
Examine the x-ray of a patient diagnosed with pneumonia : Examine the x-ray of a patient diagnosed with pneumonia due to infection with Mucor. Refer to the "Module 4 DQ Chest Xray" resource in order to complete.
Draw a line connecting the original point to the position : Write a canvas that implements the MouseMotionListener interface and add itself as its own MouseMotionListener .
Businesses that use the universal approach idea : A universal approach is the idea that if something isn't right in one place or for one person, it is not right for anyone, anywhere."

Reviews

Write a Review

Computer Engineering Questions & Answers

  Implementing class diagram

Design a class diagram representing a book described by the following statement. “A book comprises of the number of parts that in turn are composed of the number of chapters.

  Explain how you would use ofa to set up the file system

What is the OFA? Explain how you would use OFA to set up the file system for creation of an Oracle database with two instances?

  Write and test a pep assembly language program

Write and test a Pep/9 assembly language program that inputs N and outputs the total cost of mailing the widgets.

  Define how net neutrality will affect data networks

Discuss how net neutrality will affect data networks and the availability of information to businesses. Do you believe net neutrality will lead to IT efficiency

  Research the various features and capabilities

Research the various features and capabilities that service can provide. Discuss legal ramifications that configuring this service can have for an organization.

  Write a monitor as a barrier counter for the synchronization

Write a monitor as a barrier counter for the synchronization of n concurrent processes. Note that local and shared variable must be declared and initialization.

  Cross-validation and percentage split

Comparing the accuracies received utilizing the three "test options": "Utilize the training set", "cross-validation" and "percentage split".

  List advantages of using spreadsheets for decision modeling

List some advantages of using spreadsheets for decision modeling. What is implementation, and why is it important?

  How does the home agent accomplish this interception

Describe the major difference between a stack and a queue - Using the stack algorithm for computing Post fix expressions, trace the algorithm on the Post fix expression below, showing the stack at the end of each iteration of the loop.

  Write down the values of total1 and total2

Write down a program that asks the user to enter two positive floating point numbers and after checking their validity it prints them in fixed point notation with the width of ten and with two digits to the right of the decimal point.

  Improving the response to disaster

Also determine if you may find how the plans helped officials improve the response to disaster. How do the plans help the recovery?

  Briefly describe the action of the examine on instruction

Briefly describe the action of the Examine OFF instruction.

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