Gallery
Album Upload
Share
Explore

icon picker
The Task

Activity: Album Upload 🎶

Product portal problem

There has been a bug report submitted on this album upload program. The team have examined the code and spotted that the pseudocode has been turned into comments lines but a large part of the code is missing. Can you help?
This program needs to ask the user how big the array needs to be.
The next chapter in the tutorial explains how this works.
You should read this before working on the task.

Start Here

Work in pairs to complete the program so you get the example output.
Read carefully, the java code and the comments in the main.py file. You should also look at the pseudocode in the tutorial chapter.
Use code clips to get the code needed.
Extension Task
Instead of showing “Enter song title” for every song can you modify the program so that it will say “Enter song title 1, Enter song title 2” etc for each track on album.
Advice to remember
Break the problem into small chunks!
Don’t try to do the whole program and then test it.
Pick the bits that are easy to do first and get them working.
This might not be the part of the program at the start.
Test the program once that is working move onto another line and repeat.
You do not need to memorise any of the code!
Even the best programmers need to look up commands and the more you use the commands the more familiar they will become.
Everyone gets bugs!🐞
Even the most experienced programmers make mistakes. Try to fix one error at a time.
Good luck! 🍀

Test Data

Album: TRNSMT 2022 Playlist
===========================
10 Songs
---------------------------
Yes Baby Yes
Petrified In Love
Before You Go
The Adults Are Talking
In Degrees
Don't Delete The Kisses
Good Times
Glasgow
Silver
Strangers
...........................

Sample Output

Album Name : TRNSMT 2022 playlist
Number of songs : 10

1: Yes Baby Yes
2: Petrified In Love
3: Before You Go
4: The Adults Are Talking
5: In Degrees
6: Don't Delete The Kisses
7: Good Times
8: Glasgow
9: Silver
10: Strangers

Upload complete
Share
 
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.