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

  Write a windows application that gets names and e-mail

If the value of Write a Windows application that gets names and e-mail addresses from the user and displays a list of all of the user's contacts. Each time the user enters a new contact, he/she should able to see it added to a list of previously s..

  Explain usability and accessibility in site design

A description of content to be included in site and how this content will be acquired. Attention should be given to copyright restrictions.

  Create the array to determine discount amount

Create the array (DISCOUNT-ARRAY) that will be used to determine discount company will give based on amount of an order.

  Create prototype of function which returns integer value

Develop the C++ function which needs one integer parameter and returns the integer value. Function will double the value passed to it and return doubled value.

  Choose two different formats for audio and with each record

Choose two different formats for audio and with each record a short passage of speech and a short passage of music. Try to discern any difference in quality. What do you think?

  Write a perl program that asks a user for a motif

Write a Perl program that asks a user for a motif (like QDSV or MKPL) and returns a message saying whether the motif is found in the sequence or not - Write a program that calculates and prints

  How large a value can be stored in an integer variable

Describe a representation for integers that has no size restriction (other than the limits of the computer's available main memory)

  Create the application class using appropriate application

Test the class by placing the hard coded data into the driver class, which then instantiates your class and calls its instance method. Pass the hard coded data into the constructor and/or method.

  Write down a program which uses for loops to prints the

a write a program that uses for loops to prints the following patterns separately one below the other. all asterisks

  Develop the flow diagram

Develop the flow diagram of the information and any control elements needed to ensure proper access for the information.Submit a draft PowerPoint presentation with the following elements

  Discuss benefits and drawbacks of perl.

Write a 3 to 5 page paper discussing the above, particularly the benefits and drawbacks of Perl.

  Calculate the area and perimeter of a rectangle

Design and write a program, using functions, that calculates the area and perimeter of a rectangle whose dimensions (length and width) are provided by a user.

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