Write a program to request a positive integer

Assignment Help Visual Basic Programming
Reference no: EM13719246

Question 1-

Write a program to request a positive integer as input and do the following:

If the number is even, (n Mod 2 == 0), divide it by 2. Otherwise, multiply by 3 and add 1. Continue this process until the number equals 1. Then display the number of repetitions the program required.

Question 2-

The world population doubled from 3 billion in 1959 to 6 billion in 1999. Assuming that the population doubles every 40 years, write a program to determine when the world's population was under 6 million.

Question 3-

The coefficient of restitution of a ball (between 0 and 1) specifies how much the ball will bounce upon impact with a rigid surface. For instance a ball with a coefficient of .8 means that it will bounce to 80% of its initial height after each bounce. Write a program to input a coefficient of restitution and an initial height in feet that determines how many bounces the ball will take before rising to a height of less than 1 inch. Also report the total distance traveled by the ball to that point.

Question 4-

Write a program to find the difference between the highest and lowest nonnegative values entered by a user through inputboxes. The user will be instructed to enter -1 to terminate the process of entering numbers.

Reference no: EM13719246

Questions Cloud

Find the magnitude of the velocity of the larger fish : A 4.00 kg fish is swimming at m/s to the right. He swallows a 1.60 kg fish swimming toward him at 3.60 m/s. find the magnitude of the velocity of the larger fish
Calculate what is the minimum rotational frequency : In an old-fashioned amusement park ride, passengers stand inside a 3.0-m-tall, 5.0-m-diameter hollow steel cylinder with their backs against the wall. What is the minimum rotational frequency
What is the magnitude of the velocity of the larger fish : A 7.60 kg fish is swimming at m/s to the right. He swallows a 1.10 kg fish swimming toward him at 3.80 m/s. what is the magnitude of the velocity of the larger fish immediately after his lunch
Calculate the length of the organ pipe : A friend in another city tells you that she has two organ pipes of different lengths, one open at both ends, the other open at one end only. calculate the length of the organ pipe
Write a program to request a positive integer : Continue this process until the number equals 1. Then display the number of repetitions the program required - write a program to determine when the world's population was under 6 million.
What is the frictional force acting on the disk : A 70 g disk sits on a horizontally rotating turntable. The turntable makes exactly 4 revolutions each second. The disk is located 16 cm from the axis of rotation of the turntable. What is the frictional force acting on the disk
Find the average net force that acts on him during this time : When jumping straight down, you can be seriously injured if you land stiff-legged. find the average net force that acts on him during this time
Find what is the average power being expended : A person is making homemade ice cream. She exerts a force of magnitude 23 N on the free end of the crank handle on the ice-cream maker, and this end moves on a circular path of radius 0.32 m. what is the average power being expended
Calculate the charge-to-mass ratio of the particle : A charged particle moves through a velocity selector at a constant speed in a straight line. Find the charge-to-mass ratio of the particle

Reviews

Write a Review

Visual Basic Programming Questions & Answers

  Calculate the amount of a waiters tip

Write a program to carry out each task. The program should use variables for each of the quantities and display the outcome in a text box with a label.

  Make a httpwebrequest get request using a proxy

Make a HttpWebRequest GET request using a proxy, the proxy should be loaded from a file whatever.txt the proxy format is 0.0.0.0:00 ( $IP:PORT)

  Organize the code for user readability

Organize the code for reusability, Provide documentation with embedded comments for reader understanding

  Create a wireframe of the ui

Create a wireframe of the UI that shows the inputs and outputs (textboxes) and initiators (buttons) within the form and create a storyboard that shows the sequence of events for calculation of a load payment.

  Create an application that stimulates the functionality

Create an application that stimulates the functionality of the gas pump. User enters the number of gallons to purchase and clicks the desired grade (each grade is represented by a Button whose Text properties are set to Regular, Special, and Super..

  Prepare a vb application for the subsequent math application

Prepare a VB application for the subsequent Math Application - The problems displayed for the students into two levels.

  Create a computer program that calculates the zero

Using Microsoft Visual Basic for Applications in Excel, create a computer program that calculates the zero(s) of the equation f(x)=e^(x)-10x=0 by using the inverse linear interpolation (regula falsi) method.

  Gas pumpa gas pump calculates the cost of gas at a local

gas pumpa gas pump calculates the cost of gas at a local gas station. the station charges 2.69 per gallon for regular

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

  Create an application that list accounts from a dictionary

Create an application that list accounts from a Dictionary Object. Create an Account Class that contains an ID, Name, and Balance.

  Effectiveness of the design and proposed program

Evaluate the overall design of the application and draw appropriate conclusions as to the effectiveness of the design and proposed program - Discuss and justify a means of representing the results of the calculations via an appropriate medium/objec..

  Display in message label when statements are executed

What will display in MessageLabel when the following statements are executed? Assume that CountInteger = 10. MessageString = "Visual Basic is fun" IF CountInteger

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