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

  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