COMP6010 Fundamental Computer Science

Fundamental Computer Science

Semester 1 2023 Assignment One Transformation

Introduction

In this assignment, you will create a Python program to transform a full name into a number using a specific method. This will involve using various programming skills such as selection, loops, and user-defined functions. The aim is to improve your problem-solving abilities, system design, and basic programming skills.

Task Description

  • A. Generate an integer n1 from the ‘firstname’ as input.

Starting from the leftmost character of ‘firstname’, convert each letter to its ASCII value and calculate the sum of all these values to obtain n1.

  • B.     Generate an integer n2 from the ‘surname’ as input.

Repeat the process in (A) for ‘surname’ to obtain an integer n2.

  • C.     Calculate and display n3, which is the squared digit length of n1.

The squared digit length of an integer can be obtained by adding up the squares of its digits and repeating the process until the result is either 1 or 4. The number of times this process is repeated to reach 1 or 4 is the squared digit length. For example, starting with the integer 85, we get:

8^2 + 5^2 = 89

8^2 + 9^2 = 145

1^2 + 4^2 + 5^2 = 42

4^2 + 2^2 = 20

2^2 + 0^2 = 4

This process shows that the squared digit length of 85 is 5.

It is worth noting that this process will always eventually reach either 1 or 4. The squared digit length of 1 and 4 is zero, as we do not actually need to apply the process to reach the stopping condition. Interestingly, though, if we did apply the process to 1, we would keep getting 1, but if we applied it to 4, we would get a repeating sequence: 4, 16, 37, 58, 89, 145, 42, 20, 4.

D.     Calculate and display n4, which is the squared digit length of n2.

Repeat the process in (C) for n2 to obtain n4.

E.     Calculate and display n5, which is the greatest common divisor of n3 and n4.

Examples

Here are some examples. To make it clear, input characters are presented in BOLD fonts and blue color.

Example 1

Enter your first name and surname: James Bond The integer n1 from first name James is 496. The integer n2 from surname Bond is 387.

The squared digit length of n1 is 6. The squared digit length of n2 is 12.

The GCD of n3 and n4 is 6.

Example 2

Enter your first name and surname: james bond The integer n1 from first name james is 528. The integer n2 from surname bond is 419.

The squared digit length of n1 is 12. The squared digit length of n2 is 5. The GCD of n3 and n4 is 1.

Example 3

Enter your first name and surname: Harry Potter

The integer n1 from first name Harry is 518. The integer n2 from surname Potter is 638.

The squared digit length of n1 is 11. The squared digit length of n2 is 5. The GCD of n3 and n4 is 1.

Submission

In the template file ‘transformation_template.py’ provided on iLearn, a set of user-defined functions has already been declared. Your task is to provide the implementation code for each of these functions and call them in your program’s main function or another function. You can define additional user-defined functions to simplify your code and make your solution clear.

Student declaration of academic honesty

Each file has a declaration:

# Student Declaration

# I [insert name and Student ID here] declare that this is my own work and that # I have not used any code or logic from other people or from sources outside of the unit.

#

# I understand that it is ok to look at COMP6010 videos and COMP6010 resources # and that researching how certain python operators / functions work is ok.

#

# [] <== put an x in here to indicate you have read and agree to the above statements.

As it says, please put an ‘x‘ inside the square brackets so it updates to:

# [x] <== put an x in here to indicate you have read and agree to the above statements.

Submit: To submit your completed assignment, you should upload a Python file named ‘yourSID_transformation.py’ to iLearn.

Note: Submit your program early, and you may resubmit until the deadline. Late submissions will receive penalty.

Marking

In this assignment, your program will be hand-marked (70%) and tested on various sets of data. Additionally, the appropriate implementation and use of the pre-declared user-defined functions in the provided template will be checked (30%).

Note: If your solution does not implement and call the provided user-defined functions properly, you will receive a mark of 0 in handmarking.

Questions

Consult with your tutor or Yan Wang if you have any questions about this assignment. Extensions will only be granted for serious and unavoidable disruptions. Contact Yan Wang as soon as possible if you experience a disruption that affects your ability to submit this assignment.

Fundamental Computer Science

Get expert help for Fundamental Computer Science and many more. 24X7 help, plag free solution. Order online now!

Universal Assignment (September 1, 2025) COMP6010 Fundamental Computer Science. Retrieved from https://universalassignment.com/comp6010-fundamental-computer-science/.
"COMP6010 Fundamental Computer Science." Universal Assignment - September 1, 2025, https://universalassignment.com/comp6010-fundamental-computer-science/
Universal Assignment April 3, 2023 COMP6010 Fundamental Computer Science., viewed September 1, 2025,<https://universalassignment.com/comp6010-fundamental-computer-science/>
Universal Assignment - COMP6010 Fundamental Computer Science. [Internet]. [Accessed September 1, 2025]. Available from: https://universalassignment.com/comp6010-fundamental-computer-science/
"COMP6010 Fundamental Computer Science." Universal Assignment - Accessed September 1, 2025. https://universalassignment.com/comp6010-fundamental-computer-science/
"COMP6010 Fundamental Computer Science." Universal Assignment [Online]. Available: https://universalassignment.com/comp6010-fundamental-computer-science/. [Accessed: September 1, 2025]

Please note along with our service, we will provide you with the following deliverables:

Please do not hesitate to put forward any queries regarding the service provision.

We look forward to having you on board with us.

Most Frequent Questions & Answers

Universal Assignment Services is the best place to get help in your all kind of assignment help. We have 172+ experts available, who can help you to get HD+ grades. We also provide Free Plag report, Free Revisions,Best Price in the industry guaranteed.

We provide all kinds of assignmednt help, Report writing, Essay Writing, Dissertations, Thesis writing, Research Proposal, Research Report, Home work help, Question Answers help, Case studies, mathematical and Statistical tasks, Website development, Android application, Resume/CV writing, SOP(Statement of Purpose) Writing, Blog/Article, Poster making and so on.

We are available round the clock, 24X7, 365 days. You can appach us to our Whatsapp number +1 (613)778 8542 or email to info@universalassignment.com . We provide Free revision policy, if you need and revisions to be done on the task, we will do the same for you as soon as possible.

We provide services mainly to all major institutes and Universities in Australia, Canada, China, Malaysia, India, South Africa, New Zealand, Singapore, the United Arab Emirates, the United Kingdom, and the United States.

We provide lucrative discounts from 28% to 70% as per the wordcount, Technicality, Deadline and the number of your previous assignments done with us.

After your assignment request our team will check and update you the best suitable service for you alongwith the charges for the task. After confirmation and payment team will start the work and provide the task as per the deadline.

Yes, we will provide Plagirism free task and a free turnitin report along with the task without any extra cost.

No, if the main requirement is same, you don’t have to pay any additional amount. But it there is a additional requirement, then you have to pay the balance amount in order to get the revised solution.

The Fees are as minimum as $10 per page(1 page=250 words) and in case of a big task, we provide huge discounts.

We accept all the major Credit and Debit Cards for the payment. We do accept Paypal also.

Popular Assignments

Assignment Help in Sydenham, Melbourne

Introduction Sydenham is a rapidly growing suburb located approximately 22 km north-west of Melbourne’s CBD. Known for its family-friendly environment, modern residential developments, and excellent transport links, Sydenham is ideal for students seeking a suburban lifestyle while staying connected to Melbourne’s educational hubs. Nearby universities and TAFE campuses include Victoria

Read More »

Assignment Help in Surrey Hills, Melbourne

Introduction Surrey Hills is a picturesque suburb located approximately 12 km east of Melbourne’s CBD. Known for its tree-lined streets, charming period homes, and family-friendly atmosphere, Surrey Hills is ideal for students who prefer a peaceful, residential environment while remaining close to Melbourne’s educational hubs. Nearby universities and TAFE campuses

Read More »

Assignment Help in Sunshine West, Melbourne

Introduction Sunshine West is a multicultural suburb located about 15 km west of Melbourne’s CBD. Known for its vibrant community, local shopping precincts, and affordable housing, Sunshine West is a popular choice for students seeking both convenience and a supportive environment. The suburb is well-connected to universities and TAFE campuses

Read More »

Assignment Help in Sunshine North, Melbourne

Introduction Sunshine North is a vibrant suburb located approximately 13 km north-west of Melbourne’s CBD. Known for its multicultural community, residential streets, and local amenities, Sunshine North is a popular choice for students seeking affordable housing with easy access to educational institutions. Nearby universities and TAFE campuses include Victoria University

Read More »

Assignment Help in Sunshine, Melbourne

Introduction Sunshine is a bustling suburb located approximately 12 km west of Melbourne’s CBD. Known for its vibrant multicultural community, thriving shopping precincts, and excellent public transport connections, Sunshine attracts students seeking a dynamic yet accessible environment. The suburb is conveniently close to educational institutions such as Victoria University (Footscray

Read More »

Assignment Help in Sunbury, Melbourne

Introduction Sunbury is a growing suburb located approximately 39 km north-west of Melbourne’s CBD. Known for its blend of residential charm and semi-rural surroundings, Sunbury provides students with a peaceful environment while still being connected to Melbourne’s educational hubs. Nearby universities and TAFE campuses include Victoria University (Footscray Park Campus),

Read More »

Assignment Help in Strathmore Heights, Melbourne

Introduction Strathmore Heights is a peaceful, residential suburb located about 14 km north-west of Melbourne’s CBD. Known for its quiet streets, green spaces, and family-friendly atmosphere, Strathmore Heights provides students with a serene environment ideal for focused study. The suburb is conveniently near educational institutions such as Victoria University (Footscray

Read More »

Assignment Help in Strathmore, Melbourne

Introduction Strathmore is a peaceful and family-friendly suburb located approximately 11 km north-west of Melbourne’s CBD. Known for its leafy streets, schools, and parks, Strathmore attracts students and families seeking a calm and supportive environment. The suburb is conveniently close to educational institutions such as Victoria University (Footscray Park Campus),

Read More »

Assignment Help in St Kilda West, Melbourne

Introduction St Kilda West is an exclusive bayside suburb located approximately 6 km south of Melbourne’s CBD. Known for its upscale residential properties, scenic waterfront, and proximity to St Kilda’s cultural attractions, this suburb offers students a serene yet well-connected environment. Students benefit from easy access to nearby educational institutions

Read More »

Assignment Help in St Kilda East, Melbourne

Introduction St Kilda East is a prestigious inner-southern suburb located about 6 km south-east of Melbourne’s CBD. Known for its leafy streets, heritage homes, and multicultural community, St Kilda East attracts students seeking a peaceful yet well-connected lifestyle. The suburb is conveniently close to educational institutions such as Monash University

Read More »

Assignment Help in St Kilda, Melbourne

Introduction St Kilda is a vibrant seaside suburb located approximately 6 km south of Melbourne’s CBD. Famous for its beaches, lively nightlife, cafés, and cultural attractions, St Kilda is a favourite for students seeking a dynamic urban lifestyle combined with recreational opportunities. The suburb is well-connected to universities and TAFE

Read More »

Assignment Help in St Albans, Melbourne

Introduction St Albans is a multicultural suburb located approximately 17 km north-west of Melbourne’s CBD. Known for its diverse community, vibrant shopping precincts, and residential charm, St Albans is a popular choice for students seeking affordable living with good access to educational institutions. Nearby universities and TAFE campuses include Victoria

Read More »

Assignment Help in Springvale South, Melbourne

Introduction Springvale South is a peaceful suburb located approximately 27 km south-east of Melbourne’s CBD. Known for its residential charm, green spaces, and family-friendly environment, Springvale South is ideal for students seeking a quieter lifestyle while remaining connected to educational hubs. Nearby universities and TAFE campuses include Monash University (Clayton

Read More »

Assignment Help in Springvale, Melbourne

Introduction Springvale is a bustling multicultural suburb located approximately 22 km south-east of Melbourne’s CBD. Known for its vibrant community, diverse cuisines, and commercial precincts, Springvale attracts students seeking both cultural experiences and proximity to educational institutions. Nearby universities and TAFE campuses include Monash University (Clayton Campus), Deakin University (Burwood

Read More »

Assignment Help in Spotswood, Melbourne

Introduction Spotswood is a peaceful suburb located approximately 8 km south-west of Melbourne’s CBD. Known for its residential charm, local parks, and family-friendly atmosphere, Spotswood offers students a quiet and supportive environment for studying. Its proximity to educational institutions such as Victoria University (Footscray Park Campus), RMIT University, and TAFE

Read More »

Assignment Help in South Yarra, Melbourne

Introduction South Yarra is a prestigious inner-city suburb located just 4 km south-east of Melbourne’s CBD. Known for its upscale shopping precincts, cafés, cultural attractions, and vibrant nightlife, South Yarra attracts students seeking a dynamic urban lifestyle with excellent access to universities and TAFE campuses. Nearby institutions include RMIT University,

Read More »

Assignment Help in Southbank, Melbourne

Introduction Southbank is a vibrant inner-city suburb located just across the Yarra River from Melbourne’s CBD. Known for its arts and entertainment precinct, high-rise apartments, and cultural hubs, Southbank is home to students seeking a dynamic lifestyle close to universities and TAFE campuses. Nearby institutions include RMIT University, University of

Read More »

Assignment Help in South Morang, Melbourne

Assignment Help in South Morang, Melbourne Introduction South Morang is a thriving suburb located approximately 21 km north-east of Melbourne’s CBD. Known for its family-friendly atmosphere, modern residential developments, and excellent amenities, South Morang has become a popular choice for students seeking a peaceful yet well-connected study environment. With convenient

Read More »

Assignment Help in South Melbourne, Melbourne

Introduction South Melbourne is a vibrant inner-city suburb located just 2 km south of Melbourne’s CBD. Known for its historic architecture, bustling markets, trendy cafés, and proximity to the Arts Precinct, South Melbourne attracts students who want a lively urban lifestyle with easy access to universities and TAFE campuses. Nearby

Read More »

Assignment Help in South Kingsville, Melbourne

Introduction South Kingsville is a charming inner-west suburb located approximately 7 km south-west of Melbourne’s CBD. Known for its tree-lined streets, historic homes, and a close-knit community, South Kingsville offers students a calm and welcoming environment while remaining close to major educational institutions. Students in this suburb have easy access

Read More »

Assignment Help in Somerton, Melbourne

Introduction Somerton is an industrial and semi-residential suburb located approximately 22 km north of Melbourne’s CBD. Known for its convenient access to the Hume Freeway and Melbourne Airport, Somerton is ideal for students who prefer a quieter environment while being well connected to educational institutions across the city. Nearby universities

Read More »

Assignment Help in Skye, Melbourne

Introduction Skye is a growing suburb located approximately 38 km south-east of Melbourne’s CBD. Known for its residential estates, open green spaces, and family-friendly atmosphere, Skye is ideal for students who prefer a quieter lifestyle while remaining connected to the city and educational institutions. The suburb is well-linked by major

Read More »

Assignment Help in Seaholme, Melbourne

Introduction Seaholme is a charming bayside suburb located approximately 14 km south-west of Melbourne’s CBD. Known for its quiet streets, coastal parks, and proximity to Altona Beach, Seaholme offers students a peaceful study environment while remaining connected to the city. With easy access via public transport and major roads, students

Read More »

Assignment Help in Seddon, Melbourne

Introduction Seddon is a vibrant inner-west suburb located approximately 7 km west of Melbourne’s CBD. Known for its lively café culture, boutique shops, and historic architecture, Seddon combines a charming village atmosphere with convenient access to the city. Its proximity to Victoria University (Footscray Campus), RMIT University, and other TAFE

Read More »

Assignment Help in Seabrook, Melbourne

Introduction Seabrook is a coastal suburb located about 23 km south-west of Melbourne’s CBD. Known for its serene beaches, family-friendly environment, and green spaces, Seabrook offers students a peaceful setting while remaining well connected to educational institutions across Melbourne. Public transport and road access via the Princes Highway and nearby

Read More »

Assignment Help in Scoresby, Melbourne

Introduction Scoresby is a well-established suburb located about 28 km east of Melbourne’s CBD. Known for its mix of residential and commercial areas, Scoresby offers a peaceful and convenient lifestyle for students. The suburb is in close proximity to educational institutions such as Monash University (Clayton Campus), Swinburne University, and

Read More »

Assignment Help in Sandringham, Melbourne

Introduction Sandringham is a picturesque bayside suburb located approximately 16 km south-east of Melbourne’s CBD. Famous for its beautiful beaches, Sandringham Yacht Club, and relaxed coastal lifestyle, Sandringham is ideal for students seeking a serene study environment while remaining close to the city. The suburb has convenient transport links via

Read More »

Assignment Help in Sandhurst, Melbourne

Introduction Sandhurst is an upscale suburb located approximately 38 km south-east of Melbourne’s CBD. Known for its leafy streets, modern housing estates, and peaceful environment, Sandhurst is ideal for students seeking a calm residential lifestyle while maintaining access to educational institutions in Melbourne’s south-eastern corridor. With nearby transport links and

Read More »

Assignment Help in Roxburgh Park, Melbourne

Introduction Roxburgh Park is a vibrant and fast-growing suburb located around 23 km north of Melbourne’s CBD. Known for its multicultural community, modern residential developments, and family-friendly environment, Roxburgh Park has become a popular choice for students and young professionals alike. With excellent transport connections via the Roxburgh Park Train

Read More »

Assignment Help in Rowville, Melbourne

Introduction Rowville is a well-established suburb located around 27 km south-east of Melbourne’s CBD. Known for its family-friendly vibe, spacious parks like Stud Park Reserve, and excellent community facilities, Rowville offers students a balanced mix of suburban comfort and easy access to education hubs. With major roads such as the

Read More »

Can't Find Your Assignment?