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

  Create and save a document named design plan pdf

Use the document formatting outlined in the syllabus and create a heading called Design Plan

  Construct a parse tree for string

Construct a parse tree for this string - what language does this grammar generate and describe each language informally using a sentence or two in English.

  Use a while loop to calculate terms of summation

Write function called estimate_pi that uses this formula to calculate and return estimate of π. It must use a while loop to calculate terms of summation until last term is smaller than 1e-15.

  Write a program that simulates battle between a cat and mice

I have written the program for the below assignment, but I am not getting the correct output. Below is the assignment and the program I have written along with the output I get.

  Create program to counts number of bytes located in memory

Create the program which Counts the number of bytes located in memory from DS:1000h to DS:1200h which are greater than 77h. Put the count on register CX.

  Write program for user to perform arithmetic operations

Write a program that lets the user perform arithmetic operations on fractions. Fractions are of the form a/b, where a and b are integers and b is not equal to 0.

  Bubble sort or selection sort to sort list before search

Write down program to test method seq0rderedSearch. Use either the method bubbleSort or selectionSort to sort the list before the search.

  Creating website-based sales system for retail firm

Assume that you have been hired to create website-based sales system for large international retail sales firm.

  How to assign new value to element of array indexed by j

Write single statement which assigns a new value to element of array indexed by j . This new value must be equal to twice the value stored in next element of the array (i.e. element after the element indexed by j.

  Convolving with user defined kernels

Convolving with User defined Kernels - Edit the original Kernel to make the output image shifted by 3 pixels to the left.

  Show the graphics simulation of drinks machine

When a coin is clicked on with the mouse it is placed into the slot, it then operates the coin sensor IP0. This should operate OP0 (coin hold solenoid), which will hold the coin in place. At this point either a drink is selected or the coin rejected.

  How the app may lead to a career in mobile technology

CP3307/CP5307 Coding Project Specification - Discuss the design, implementation, and testing of your app - how to rotate and move the blocks so the picture is correctly formed.

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