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

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

  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 visual logic program for customer-s bank account

Write a visual logic program to aid balance a customer's bank account. the program must read numeric values that represent banking transactions.

  Design for the gui application

Decide on an appropriate design for the GUI application which will be SELF Contained and allow the user to select and run the various calculations

  Create a sub procedure that calculates and displays the next

A national Digital service provider would like you to create a Windows application that will display the global growth of smartphones. As of 2013, there 913 million smartphones worldwide.

  Create a program to determine johns gas bill

What are the inputs? How are they validated? What character keys are needed and what processing is required here

  Note use visual basic 2010visual basicassignment1 nbsp

note use visual basic 2010visual basicassignment1 nbsp nbspticketsellerthis assignment will contain two 2 parts event

  Appropriate design for the gui application

Decide on an appropriate design for the GUI application which will be SELF Contained and allow the user to select and run the various calculations that are made available to them via a user -friendly interface.

  Simple calculator program

Build a simple calculator program with an Access form that allows a user to enter numbers in two separate text boxes. The Access form should have four separate command buttons for adding, subtracting, multiplying, and dividing. Write code in each com..

  Designe cafe application using visual studio

Designed (Cafe) application using visual studio 2010. To Cafe application but it is about Booking Appointment for Hair Salon Business.

  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

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