Exchange the block of platinum for cash

Assignment Help JAVA Programming
Reference no: EM13906470

You have a block of platinum that can be exchanged in your bank either for cash or for smaller blocks of platinum. If you exchange a block of m grams, you get three blocks of weight m/2, m/3 and m/4 grams each. You don't get any fractional part, as the division process rounds down the value. If you exchange the block of platinum for cash, you get m units of currency. You can do any number of exchanges for smaller blocks or currency.

Given the value of a block in grams as input, write a program that would print the largest possible currency value that you can receive as the output. Assume that the maximum value of a block that can be given as an input is 1,000,000,000 grams and the minimum value is 2 grams.

Reference no: EM13906470

Questions Cloud

Segmenting consumer and business markets segmentation : Segmenting Consumer and Business Markets Segmentation bases (variables) are used to identify particular characteristics, attributes, or traits of consumers or businesses. Consumer markets are typically segmented using 5 bases, including geographic, d..
Calculate the stress at a point away from the hole : Calculate the stress at a point away from the hole, to the right of the beam toward the end and Calculate the stress at the hole?
Compute the daily wage of an employee : Write a JAVA program that will input Employee Name, Rate per hour, No. of hours worked and will compute the daily wage of an employee. If the number of hours worked exceeds eight hours add 30% to each excess hours as overtime rate.
Describe some of the personal and psychological factors : 1. Describe some of the personal and psychological factors that may influence what consumers buy and when they buy it. Ch. 3 2. Identify the ways in which business-to-business (B2B) markets differ from business-to-consumer (B2C) markets. Ch. 4
Exchange the block of platinum for cash : You don't get any fractional part, as the division process rounds down the value. If you exchange the block of platinum for cash, you get m units of currency. You can do any number of exchanges for smaller blocks or currency.
Mall survey staff administered a random survey to mall : As the food court manager at the Mall of Elbonia, you want to determine how much time customers spend at the mall related to different times of the week (for example: midweek, day; midweek evening; weekend, day; weekend, evening) . Last week the mall..
How a taxpayer could realize a gain but not recognize it : Rocky and Bullwinkle did not recognize gain related to the sale of the land on its tax return. Is this possible? Explain how a taxpayer could realize a gain but not recognize it.
Describe the channel systems used for the product offering : 1.Describe the channel systems used for the product offering of automobile insurance companies (i.e vertical marketing systme, what intermediaries are used, etc.)
Prepare a table that shows the computation of cash : All sales are on credit. Recent experience shows that 40% of credit sales is collected in the month of the sale, 35% in the month after the sale, 23% in the second month after the sale, and 2% proves to be uncollectible.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Implement a class person with two fields name

Implement a class Person with two fields name and age, and a class Car with three fields - implement a class that saves the details of the person.

  Point of sale terminal

a software implementation of a Point of Sale terminal at a typical store. The users of the system are the cashiers sitting at the sales terminals of the store. The users can use the system to manage sales items in the store, customer details and of c..

  Discussion htmlcssjavascript placementnbspplease respond to

discussion htmlcssjavascript placementnbspplease respond to the followingcompare and contrast the process of adding

  Develop and test stand alone java applications

Gain practical skills in Graphical User Interface (GUI) programming by implementing an event driven application.

  Design 3 shoppingbay is an online auction service that

3. shoppingbay is an online auction service that requires several reports. design a flowchart or psuedocode this is

  Simple single-server queue has one line of waiting

simple single-server queue has one line of waiting customers and one server who wait on customers. suppose that

  Support for cloud-based strategies

In this course, you are introduced to general Windows Server concepts like active directory, group policy, security, networking and IIS, access control, and much more. Now that you understand the basic concepts, we will delve a little deeper and l..

  Multiplexors whose control bit allows you

Design a 4-bit up/down counter that has 2 to 1 multiplexors whose control bit allows you to select between one of two counting modes up or down

  How control constructs and arrays would resolve problem

Arrays and control structures are valuable tools when programming. An array contains a number of variables all being the same data type. Explained the situation and how control constructs and arrays would resolve problem

  Working for hypothetical insurance company

Assume that you are working for hypothetical insurance company. This company offers insurance for 4 types of vehicles: cars, trucks, motor cycles and boats. In order to keep the program manageable, we will assume that we do not make a finer distin..

  Client class to test implementation of the vector class

Write a client class to test your implementation of the Vector3D class thatyou implemented. Name the package in which this class is defined (projectname) vector3dapp.

  Find factors of a given number

Write a java program to find factors of a given number.

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