Loading
Home › Computer Science Help › Java Programming Assignment
Status: Completed

Java Programming Assignment

Date Posted: 25/04/2019
Category: Computer Science
Due Date: 25/04/2019
Instruction
These are the instructions for your third programming project. Recall that all code must be written individually and independently. Recall that violating this rule will result in zero credit for the project and probably a failing grade in the course. Problem: Develop a recursive method to determine the number of distinct ways in which a given amount of money in cents can be changed into quarters, dimes, nickels, and pennies. Each line of input contains an amount. For example, if the amount is 17 cents, then there are six ways to make change: 1 dime, 1 nickel, and 2 pennies 1 dime, and 7 pennies 3 nickels and 2 pennies 2 nickels and 7 pennies 1 nickel and 12 pennies 17 pennies The method specification is public static int ways(int amount, int denomination) For the value of denomination, 1 - penny, coins 2- nickel, 3 - dime and 4 - quarter. The running result example is Input the amount between 1 and 99: 17 There are 0 quarter, 1 dime, 1 nickel, 2 penny There are 0 quarter, 1 dime, 0 nickel, 7 penny There are 0 quarter, 0 dime, 3 nickel, 2 penny There are 0 quarter, 0 dime, 2 nickel, 7 penny There are 0 quarter, 0 dime, 1 nickel, 12 penny There are 0 quarter, 0 dime, 0 nickel, 17 penny There are totally 6 ways. Here are some input/output pairs. The first number in each pair is the amount, and the second number is the number of ways in which the amount can be changed into quarters, dimes, nickels, and pennies: 17 6 5 2 10 4 25 13 42 31 61 73 99 213 Test your methods ways method with a main method that reads in an integer amount in cents between 1 and 99, inclusive, and outputs the total number of ways that amount can be changed into quarters, dimes, nickels, and pennies, and each way in detail. Hint: Let us simplify the problem as follows: Given a positive integer n, how many ways can we make change for n cents using pennies, nickels, dimes and quarters? Recursively, we could break down the problem as follows: To make change for n cents we could: 1) Give the customer a quarter. Then we have to make change for n-25 cents 2) Give the customer a dime. Then we have to make change for n-10 cents 3) Give the customer a nickel. Then we have to make change for n-5 cents 4) Give the customer a penny. Then we have to make change for n-1 cents. What to hand in? • A report includes problem statement, analysis, algorithm design, class prototype (class contract), program Input/Output, and tested results (analysis your result to see if it is correct). • You code should return the error message with invalid input such as negative numbers, or the destination’s value is smaller than the origin’s. • The source program (name your file “project3.java”) • You could either submit through Blackboard or my email box. Each Java program should have the following in the beginning: // Program Name: // Programmer: , // Assignment Number: // Purpose:
Bidders
ExcellentTutor 7 years, 5 months ago
Rated 9.09 earned 174531.76 around 5422 assignments.
Hello, Consider hiring me to do your assignment. I work fast, pay close attention to the instructions, and deliver a plagiarism-free paper. My price is also negotiable to accommodate your budget. Talk to me. Thank you.
$125.00
  • i am the best in Java, let me help you in this please
    ExcellentTutor | Apr 25, 2019, 04:52 AM
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
onessmati14 7 years, 5 months ago
Rated 9.59 earned 37978.64 around 1232 assignments.
Hello dear client, I would like to help you with your task. Please assign me. Thank you!
$125.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
DEDICATEDHELPER 7 years, 5 months ago
Rated 9.55 earned 22275.60 around 707 assignments.
Hi friend️! Looking for an expert to handle you project? I have the best terms of service. I deliver comprehensive, detailed, exceptional, high-quality, and non-plagiarized work within the deadline. MY PASSION IS TO SEE YOU GET GOOD GRADES. Assign me dear.
$125.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
ServiceMaster 7 years, 5 months ago
Rated 9.51 earned 22869.63 around 767 assignments.
Hi, I have significant experience with various kinds of papers. You can check my profile to view the feedback for my works. I also offer a refund policy wherein if you fail to get a passing grade from my work, you will be refunded the entire amount that you paid. I’m really interested in your assignment and I would like to have the chance to work on this task.I hope you can send me additional details for this. Contact me ASAP so we can discuss more about this.
$125.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
lupita 7 years, 5 months ago
Rated 9.36 earned 11670.86 around 435 assignments.
Greetings! I would like to help you today. I can handle this work perfectly. Kindly assign me
$125.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
Robert_d_308 7 years, 5 months ago
Rated 9.37 earned 62524.46 around 2184 assignments.
Hello dear friend, I’m happy to help you today. I would like to express my interest in doing your assignment. I will go through your summary and instruction carefully and do your task. I promise to commit my skills and the great experience to guarantee you a top-notch quality paper, with zero grammatical errors, and a 100% free from PLAGIARISM. Besides my skill and experience, I respond promptly to my client and provide a quick turnaround. Kindly hire me, and I’ll make you proud. I’m looking forward to working with you. Thank you!
$125.00
  • Can you do Java coding?
    User_18953 | Apr 25, 2019, 04:53 AM
  • Hey. Yes I can help you but with a slightly longer deadline
    Robert_d_308 | Apr 25, 2019, 04:55 AM
  • If not by 11:59PM 4/25 (24 hours from now), How about 11:59PM 4/26? (48 Hours). Project is 5% deduct each day past the 21st, already 4 days if turned in by 11:59pm tonight
    User_18953 | Apr 25, 2019, 05:11 AM
  • Central US time
    User_18953 | Apr 25, 2019, 05:12 AM
  • Okay. Let's see what we can do. I will send you timely progress
    Robert_d_308 | Apr 25, 2019, 05:13 AM
  • thanks! you rock
    User_18953 | Apr 25, 2019, 05:14 AM
  • Hello friend. Your project is ready. Kindly text me back as soon as you see this
    Robert_d_308 | Apr 26, 2019, 11:58 AM
  • Then on the program let the client add his/her name to the Project.java file...on the top of the file. I have left a slot called Programmer:
    Robert_d_308 | Apr 26, 2019, 12:01 PM
  • I will go ahead and upload the zipped file here. Once you get it, kindly release the funds
    Robert_d_308 | Apr 26, 2019, 19:41 PM
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
tutorforyou 7 years, 5 months ago
Rated 9.04 earned 17105.49 around 504 assignments.
Hi friend️! Looking for an expert to handle you project? I have the best terms of service. I deliver comprehensive, detailed, exceptional, high-quality, and non-plagiarized work within the deadline. MY PASSION IS TO SEE YOU GET GOOD GRADES. Assign me dear.
$125.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
BESTTUTOR 7 years, 5 months ago
Rated 9.7 earned 925.00 around 41 assignments.
Hi, I have significant experience with various kinds of papers. You can check my profile to view the feedback for my works. I also offer a refund policy wherein if you fail to get a passing grade from my work, you will be refunded the entire amount that you paid. I’m really interested in your assignment and I would like to have the chance to work on this task.I hope you can send me additional details for this. Contact me ASAP so we can discuss more about this.
$125.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
User_5367 7 years, 5 months ago
Rated 9.17 earned 2440.57 around 93 assignments.
Hello friend, I have checked this assignment and I found that I can perfectly handle it. Please assign it to me and you won't be disappointed. I am a quality-driven writer with special technical skills and vast experience in various disciplines. A plagiarism-free paper and impeccable quality content is what I deliver. Timely delivery and originality are guaranteed. My passion is to see you get the best grades. Thanks
$125.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}
 
 
bestwitter 7 years, 5 months ago
Rated 9.88 earned 11890.84 around 425 assignments.
Hi this related to my field, I can help you, attached with free Turnitin reports, Grade A++ guaranteed thank you.
$125.00
  • {$ item.message_content $}
    {$ item.sender_username $} | {$ item.date_entered $}