Highlights
In mini project 1, you are asked to implement self-defined methods with loops to detect all daffodil numbers. Mini project 1 enables you to further get familiar with Java basic concepts and conventions. This task takes up 5% in your total assessment score.
Please note: Do not forget to add necessary comments in your source codes.
1. Problem description
Find all the "daffodil numbers" between 100 and 999 and output them.
"Daffodil number" refers to a three-digit number, and the cube of each digit is exactly equal to the number itself. For example, 153 = 1^3 + 5^3 + 3^3 = 1 + 125 + 27 = 153, then 153 is a “daffodil number”; 123 != 1^3+2^3+3^3, then 123 is not “daffodil number”.
2. Challenges in the problem
1) You have to decide the initial value and termination condition in the for loop. 2) How to extract three digital numbers for a given number? Extract the last digit of the number N by N%10, and store that digit in a variable; update the value of N by N/10 and repeat the above step till N is not equals to 0.
For example, given a number 153.
Step 1: 153%10 = 3, we store 3 as one digit; then, update the value as 153/10 = 15; Step 2: 15%10 = 5, we store 5 as one digit; then update the values as 15/10 = 1; Step 3: 1%10 = 1, we store 1 as one digit; then update the values as 1/10 =0. Stop!
3. Grading rules
1) Correct loop from 100-999 (1 score)
2) Successfully extract 3 digits (3 scores)
3) Correct answers (1 score). Hint: there are 4 daffodil numbers.
4. Submission
Two files are required to submit to Moodle.
1) Source file, i.e., your xxx.java file.
2) Screenshot of your result
This IT/Computer Science Assignment has been solved by our IT/Computer Science Experts at onlineassignmentbank. Our Assignment Writing Experts are efficient to provide a fresh solution to this question. We are serving more than 10000+ Students in Australia, UK & US by helping them to score HD in their academics. Our Experts are well trained to follow all marking rubrics & referencing style.
Be it a used or new solution, the quality of the work submitted by our assignment experts remains unhampered. You may continue to expect the same or even better quality with the used and new assignment solution files respectively. There’s one thing to be noticed that you could choose one between the two and acquire an HD either way. You could choose a new assignment solution file to get yourself an exclusive, plagiarism (with free Turnitin file), expert quality assignment or order an old solution file that was considered worthy of the highest distinction.
© Copyright 2026 My Uni Papers – Student Hustle Made Hassle Free. All rights reserved.