Design program that accept number below one hundred as input

Assignment Help Programming Languages
Reference no: EM131132400

Problem 1:

Design a program that asks a user the following: do they want to add a dollar amount to their total, do they want to subtract from t heir total, do they want to check out and receive their total, or do they want to quite. This program will need to accept dollar amounts (I.e. 3.50) and keep track of the running total until the user decides they want to check out(receive their total and then quit) or if they want to quit.

Problem 2:

Design a program that accepts a number below 100 as input. Once your program has received this number as input, your program should pass this number between a group of 5 friends. This means that if you start your program with the number of 10, the first friend should receive the number 1, friend two should receive the number 2 and so on. If the number is divisible by 3, you should skip the next friend. If the number is divisible by 6, you should give it back to the previous friend and then skip the next two friends. If the number is divisible by 7, the friend should announce their number. Once you get to the final number, you should have the friend announce their friend number and then say you have reached the end.

Reference no: EM131132400

Questions Cloud

Discuss how you would proceed in implementing them : Discuss two innovations that could be used to provide the necessary focus on injury and fatality prevention that you feel should be adopted in your current (or past) organization and discuss how you would proceed in implementing them.
Did the implemented changes achieve expected outcomes : What are crucial challenges this ED has faced in recent years related to patient flow? On what basis were these challenges identified? Were quantitative data used to identify and confirm the existence of problems, and if so, which types of data?
Naïve regression of consumption on income : What would be the value of the multiplier derived from a naïve regression of consumption on income, and what would be the true value?
Whether asvabc appears to be subject to measurement error : Perform a Durbin-Wu-Hausman test to evaluate whether ASVABC appears to be subject to measurement error.
Design program that accept number below one hundred as input : Design a program that accepts a number below 100 as input. Once your program has received this number as input, your program should pass this number between a group of 5 friends.
Evaluate potential grand strategies for the organization : Assess potential value disciplines for the organization. Evaluate potential grand strategies for the organization. Assess potential global strategies for the organization.
How does the company communicate its social responsibility : Describe what the company does that could be defined as socially responsible. - How does the company communicate its social responsibility?
Investigate analytically the likely direction of the bias : Using your EAEF data set, fit the second equation, first using OLS, second using instrumental variables estimation with SM as an instrument. Investigate analytically the likely direction of the bias in the slope coefficient in the OLS regression, ..
The following stockholders equity accounts : Prepare the stockholders' equity section of the balance sheet at December 31, 2010.

Reviews

Write a Review

Programming Languages Questions & Answers

  How can two cubical dice be labeled using number

Alice and Bill flip a fair coin until one of the respective patterns A = HHT or B = HTT appears for the first time (and then the corresponding player wins).

  Program for an automatic teller machine that dispenses money

The user should enter the amount desired (a multiple of ten dollars) and the machine dispenses this amount using the least number of bills.

  Implement method to create thousand random integers

Implement a method named posNeg which creates 1000 random integers. Range of numbers must be from -5 to +5 inclusive.

  Write down a program to print a business travel expenses

write a program to print a business travel expenses attachment for an income tax return. the program should request as

  Draw application to display button and label on a screen

Draw and implement application which displays a button and a label on a screen. Every time button is pushed, the label will display random number between 1 and 1000,

  Create internal representation of polynomial is array

Create class Polynomial. The internal representation of a Polynomial is an array of terms. Each term contains a coefficient and an exponent.

  Write program that lets user enter charge account number

Write a program that lets the user enter a charge account number. The program should determine if the number is valid by checking for it in the following list.

  Benefits from the cloud first policy

Cloud computing enables IT systems to be scalable and elastic. End users do not need to determine their exact computing resource requirements upfront. Instead, they provision computing resources as required, on-demand. Using cloud computing services,..

  Write a method header that accepts an array as a parameter

Give an example of an array that is initialized during declaration:

  Determine the total resistance of a number of resistors

Prepare a function that will determine the total resistance of a number of resistors that are connected in parallel.

  Write a program that asks the user to answer some questions

Write a program that asks the user to answer some questions. First, you should ask the user if they want to load answers from a previously saved file. If they respond yes you should look for the file name of your choosing in the path of your choos..

  Deisgn class contains data fields for height and surfacearea

Deisgn a class named Rectangle that contains data fields for height width and surfaceArea and a method named computeSurfaceArea?

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