28 Apr Code Java Program Without Using ArrayList, Arrays, Null
At Programming Homework Tutors, we believe in providing our students with practical, real-world examples of how to apply the concepts they learn in class. That’s why we’ve developed a variety of sample projects to help you see how our courses can be used to create impactful solutions in your field of study.
Specification
The program will keep track of up to 3 albums, and up to 4 songs each album. Each song has the following information: name, artist, duration (in seconds), and genre (can be only “rock”, “pop”, “hip-hop”, or “bossa nova”). Each album will have a name and up to 4 songs. In program requirements you will find more details. When run, the program will display a menu of actions to the user, including one that exits the program. Until the user chooses to exit, the menu is displayed again after each action is completed. The program should have the following functionalities: 1. Will allow the user to create albums. 2. Will allow the user to enter a new song into an album. 3. Will prevent the user from adding a song in an album if exceeds a time limit of 20min (including all songs). 4. Will allow the user to request the list of all songs and the details of each song from an album. 5. Will allow the user to request a list of all albums (including all the songs in each album). 6. Will allow the user to request a list of all songs whose duration is under a certain time (in minutes). 7. Will allow the user to request a list of all songs of a specific genre. 8. Will allow the user to delete an album. 9. Will allow the user to delete a song from an album. Your program must give appropriate messages to the user on an attempt to: • create an album that already exist (two albums are identical if they have the same name) • create another album when there is no room anymore. • add a song to an album that is full OR exceed a time limit OR in an album that does not exist. • add a song that already exist in an album (note that 2 songs are identical if name, artist, and duration are the same). • delete an album that does not exist. • delete song that does not exist. • Request list of albums/songs under a certain criterion (functionalities 4, 5, 6, and 7) and the number of albums/songs is zero. Program Requirements Your program should implement three classes, which store the following data: • Song. java -storing the following details about a song. name – the name of the song. artist -the person/s performing the song. duration – the length of the song in seconds genre – the genre can be only “rock”, “pop” “hip-hop” or “bossa nova” • Album. java – stores up to 4 Songs at a time. • name – the name of the Album. song1, song2, song3, song4-Song objects • totalTime – the total playing time of all songs stored • MAX TIME – a constant which stores the maximum playing time for the album, set to a value of 20 (minutes). • SongCollection. java – stores all albums in the system. • albumi, album2, album3 – All current Album objects stored in the system. All the data components of your classes need to be private (this means that you are applying the principles of encapsulation). Additionally, your classes need to have methods that provide the functionality outlined in the problem description. The only class which should have a main method is SongCollection. java, which should create an instance of the class SongCollection and call the run () method which will have code to provide the user with a menu to allow them to perform any of the tasks outlined in the problem description. The template for this is below. The class SongCollection also will be the only one that will receive inputs and show outputs. public class SongCollection { private void run () { /This method should control the flow of the program class songcollection and call the run method which will have code to provide the user with a menu to allow them to perform any of the tasks outlined in the problem description. The template for this is below. The class SongCollection also will be the only one that will receive inputs and show outputs. public class SongCollection { private void run () { //This method should control the flow of the program //and have all code for accessing the Albums } public static void main (String[] args) { SongCollection sg = new SongCollection (); sg. run () ; Write the program without using ArrayList, thanks, use non automatic code.
Disclaimer
The sample projects provided on our website are intended to be used as a guide and reference for educational purposes only. While we have made every effort to ensure that the projects are accurate and up-to-date, we do not guarantee their accuracy or completeness. The projects should be used at your own discretion, and we are not responsible for any loss or damage that may result from their use. We encourage you to consult with a qualified professional before implementing any of the ideas or concepts presented in these projects. By accessing and using the sample projects on our website, you agree to these terms and conditions.
Latest Topic
-
Cloud-Native Technologies: Best Practices
20 April, 2024 -
Generative AI with Llama 3: Shaping the Future
15 April, 2024 -
Mastering Llama 3: The Ultimate Guide
10 April, 2024
Category
- Assignment Help
- Homework Help
- Programming
- Trending Topics
- C Programming Assignment Help
- Art, Interactive, And Robotics
- Networked Operating Systems Programming
- Knowledge Representation & Reasoning Assignment Help
- Digital Systems Assignment Help
- Computer Design Assignment Help
- Artificial Life And Digital Evolution
- Coding and Fundamentals: Working With Collections
- UML Online Assignment Help
- Prolog Online Assignment Help
- Natural Language Processing Assignment Help
- Julia Assignment Help
- Golang Assignment Help
- Design Implementation Of Network Protocols
- Computer Architecture Assignment Help
- Object-Oriented Languages And Environments
- Coding Early Object and Algorithms: Java Coding Fundamentals
- Deep Learning In Healthcare Assignment Help
- Geometric Deep Learning Assignment Help
- Models Of Computation Assignment Help
- Systems Performance And Concurrent Computing
- Advanced Security Assignment Help
- Typescript Assignment Help
- Computational Media Assignment Help
- Design And Analysis Of Algorithms
- Geometric Modelling Assignment Help
- JavaScript Assignment Help
- MySQL Online Assignment Help
- Programming Practicum Assignment Help
- Public Policy, Legal, And Ethical Issues In Computing, Privacy, And Security
- Computer Vision
- Advanced Complexity Theory Assignment Help
- Big Data Mining Assignment Help
- Parallel Computing And Distributed Computing
- Law And Computer Science Assignment Help
- Engineering Distributed Objects For Cloud Computing
- Building Secure Computer Systems Assignment Help
- Ada Assignment Help
- R Programming Assignment Help
- Oracle Online Assignment Help
- Languages And Automata Assignment Help
- Haskell Assignment Help
- Economics And Computation Assignment Help
- ActionScript Assignment Help
- Audio Programming Assignment Help
- Bash Assignment Help
- Computer Graphics Assignment Help
- Groovy Assignment Help
- Kotlin Assignment Help
- Object Oriented Languages And Environments
- COBOL ASSIGNMENT HELP
- Bayesian Statistical Probabilistic Programming
- Computer Network Assignment Help
- Django Assignment Help
- Lambda Calculus Assignment Help
- Operating System Assignment Help
- Computational Learning Theory
- Delphi Assignment Help
- Concurrent Algorithms And Data Structures Assignment Help
- Machine Learning Assignment Help
- Human Computer Interface Assignment Help
- Foundations Of Data Networking Assignment Help
- Continuous Mathematics Assignment Help
- Compiler Assignment Help
- Computational Biology Assignment Help
- PostgreSQL Online Assignment Help
- Lua Assignment Help
- Human Computer Interaction Assignment Help
- Ethics And Responsible Innovation Assignment Help
- Communication And Ethical Issues In Computing
- Computer Science
- Combinatorial Optimisation Assignment Help
- Ethical Computing In Practice
- HTML Homework Assignment Help
- Linear Algebra Assignment Help
- Perl Assignment Help
- Artificial Intelligence Assignment Help
- Uncategorized
- Ethics And Professionalism Assignment Help
- Human Augmentics Assignment Help
- Linux Assignment Help
- PHP Assignment Help
- Assembly Language Assignment Help
- Dart Assignment Help
- Complete Python Bootcamp From Zero To Hero In Python Corrected Version
- Swift Assignment Help
- Computational Complexity Assignment Help
- Probability And Computing Assignment Help
- MATLAB Programming For Engineers
- Introduction To Statistical Learning
- Database Systems Implementation Assignment Help
- Computational Game Theory Assignment Help
- Database Assignment Help
- Probabilistic Model Checking Assignment Help
- Mathematics For Computer Science And Philosophy
- Introduction To Formal Proof Assignment Help
- Creative Coding Assignment Help
- Foundations Of Self-Programming Agents Assignment Help
- Machine Organization Assignment Help
- Software Design Assignment Help
- Data Communication And Networking Assignment Help
- Computational Biology
- Data Structure Assignment Help
- Foundations Of Software Engineering Assignment Help
- Mathematical Foundations Of Computing
- Principles Of Programming Languages Assignment Help
- Software Engineering Capstone Assignment Help
- Algorithms and Data Structures Assignment Help
No Comments