country
$20 Bonus + 25% OFF
Securing Higher Grades Costing Your Pocket? Book Your Assignment at The Lowest Price Now!
Add File

Error goes here

ITECH 1400 Super Market Self Service Checkout

tag 0 Download7 Pages / 1,533 Words tag Add in library Click this icon and make it bookmark in your library to refer it later. GOT IT
  • Course Code: ITECH 1400
  • University: Singapore University Of Social Sciences
  • Country: Singapore

Question:

Assignment – Software Implementation

Do not place your code here – provide the code as separate .py files submitted with this document. 

Assignment – Code Explanation and Use

Update the below code to insert comments describing what the code is doing – for each line starting with a hash symbol (#) you should write your code comments after the hash. You may add a second line of comments if you require more space. 

# Function to: ___________________________

def get_float(prompt): 

    # ____________________________________

    value = float(0.0) 

    # ____________________________________

    while True:

        try:

            # ____________________________________

            value = float(input(prompt)) 

            # ____________________________________

            if value < 0.0:

                print("We don't accept negative money!")

                continue

            # ____________________________________

            break 

        # ____________________________________

        except ValueError:

            print('Please enter a valid floating point value.') 

    # ____________________________________

    return value 

# Function to: ___________________________

def bag_products(product_list):   
    # ____________________________________

    bag_list = []

    non_bagged_items = []

    MAX_BAG_WEIGHT = 5.0

    # ____________________________________

    for product in product_list: 

        # ____________________________________

        if product.weight > MAX_BAG_WEIGHT:

            product_list.remove(product)

            non_bagged_items.append(product)

    # ____________________________________

    current_bag_contents = []

    current_bag_weight = 0.0

    # ____________________________________

    while len(product_list) > 0: 

        # ____________________________________

        temp_product = product_list[0]

        product_list.remove(temp_product) 

        # ____________________________________

        if current_bag_weight + temp_product.weight < MAX_BAG_WEIGHT:        

            # ____________________________________

            current_bag_contents.append(temp_product)

            current_bag_weight += temp_product.weight           

            # ____________________________________

            if (len(product_list) == 0):

                bag_list.append(current_bag_contents)              

        # ____________________________________

        else:

            bag_list.append(current_bag_contents)

            # ____________________________________

            current_bag_contents = []

            current_bag_weight = 0.0 

    # ____________________________________

    for index, bag in enumerate(bag_list):

        output = 'Bag ' + str(index + 1) + ' contains: ' 

        # ____________________________________

        for product in bag:

            output += product.name + 't'

        print(output, 'n')

    # ____________________________________

    if (len(non_bagged_items) > 0):

        output = 'Non-bagged items: '

        # ____________________________________

        for item in non_bagged_items:

            output += item + 't'

        print(output,'n')

Assignment 1 – FedUni Checkout

Student name:                                                                    Student ID:

Part

Assessment Criteria

Weight

Mark

1a

Identification of properties of a typical supermarket Product.

10 * 0.5 = 5 marks

 

1b

Application of abstraction to identify key properties of a typical supermarket Product as well as creation of a suitable Class Diagram.

4 marks

 

1c

Identification of the key properties of a CheckoutRegister as well as creation of a suitable Class Diagram which uses those properties, plus the four method signatures provided.

4 marks

 

2

Creation of an activity flowchart which clearly indicates how the program should operate, using the correct symbols for elements such as start/end points, processes and decisions/branches

10 marks

 

3

Programming of the product checkout simulation so that it:

i)      Creates a small number of Product instances that may be purchased,

ii)     Accepts simulated ‘scanning’ of a Product to identify it (including refusal to identify products which do not exist),

iii)   Adds a scanned Product to the CheckoutRegister’s list of products being purchased,

iv)   Allows the checkout of multiple products,

v)    Accepts ‘virtual money’ to pay for those products (you must pay enough to cover the cost of the items checked out), and

vi)   Prints a final receipt of the products purchased, along with the total cost, total paid and any change given.

5 + 5 + 5 + 5 + 5 + 5 = 30 marks.

 

i)

ii)

iiI)

iv)

v)

vi)

Total:

 

4a

Analysis and documentation via code comments of the two functions provided.

(8 * 0.5) + (16 * 0.5) = 12 marks

 

4b

Incorporation of the two functions provided into your main submission so that the program does not crash when an illegal money value is provided, and also virtually ‘bags up’ the products purchased.

2

 

 

 

 

 

 

Assignment total (out of 65 marks)

 

 

 

Contribution to grade (out of 20 marks)

 

 

Download Sample Now

Earn back the money you have spent on the downloaded sample by uploading a unique assignment/study material/research material you have. After we assess the authenticity of the uploaded content, you will get 100% money back in your wallet within 7 days.

Upload
Unique Document

Document
Under Evaluation

Get Money
into Your Wallet

Total 7 pages, 1 USD Per Page

Cite This Work

To export a reference to this article please select a referencing stye below:

My Assignment Help. (2020). Super Market Self Service Checkout. Retrieved from https://myassignmenthelp.com/free-samples/itech-1400-super-market-self-service-checkout.

"Super Market Self Service Checkout." My Assignment Help, 2020, https://myassignmenthelp.com/free-samples/itech-1400-super-market-self-service-checkout.

My Assignment Help (2020) Super Market Self Service Checkout [Online]. Available from: https://myassignmenthelp.com/free-samples/itech-1400-super-market-self-service-checkout
[Accessed 31 October 2020].

My Assignment Help. 'Super Market Self Service Checkout' (My Assignment Help, 2020) <https://myassignmenthelp.com/free-samples/itech-1400-super-market-self-service-checkout> accessed 31 October 2020.

My Assignment Help. Super Market Self Service Checkout [Internet]. My Assignment Help. 2020 [cited 31 October 2020]. Available from: https://myassignmenthelp.com/free-samples/itech-1400-super-market-self-service-checkout.


MyAssignmenthelp.com delivers assignment help to millions of students of USA. We have in-house teams of assignment writers who are experts on wide ranges of subjects. We have appointed teams of native writers who provide assignment help to students in New York City and all over the USA. They are skilled assignment writers who successfully cater to search terms like do my assignment in the USA

Latest Marketing Samples

SITXMPR007 Develop And Implement Marketing Strategies

Download : 0 | Pages : 10
  • Course Code: SITXMPR007
  • University: APEX Institute Of Education
  • Country: Australia

Answer: Part 1 Task 1 Assessment of internal and external environment of the company Black Beans Café is considered as the important coffee house in Sydney. It has been analysed from the case study that company has increased its popularity in the market by providing premium quality of products to the customers. If the current marketing strategy of the company is being analysed, this can be said that the company has decided to provide...

Read More arrow

BSBMKG417 Apply Marketing Communication Across A Convergent Industry

Download : 0 | Pages : 9
  • Course Code: BSBMKG417
  • University: Trinity Institute Australia
  • Country: Australia

Answer: Task 1: 1.1 Review and identify the role of the traditional siloed sectors to client requirements Each of the sectors in the organization has titles thus giving us an overall idea of the numerous functions of the sectors. The sales are actually the siloed which may lead with the clients thus presenting the brand image. Marketing is indeed a sector that ascertains both the service and product design (Hackley, 2018). However, in the trad...

Read More arrow

MKT2206 Pricing Case

Download : 0 | Pages : 10
  • Course Code: MKT2206
  • University: University Of California
  • Country: United States

Answer: The given case study talks about Hanson productions.  The company had earned their name as from the top production companies in US.  At one point of time company used to have lot of projects unremarkable reviews of the shows.  However at present the biggest concern of the company is the current production.  The company is still to finalize their show.  The given report will highlight the pricing for the opening...

Read More arrow

5BUS1032 Marketing Planning

Download : 0 | Pages : 12
  • Course Code: 5BUS1032
  • University: University Of Hertfordshire
  • Country: United Kingdom

Answer: Introduction The car sharing has become a significant trend in the automotive industry. It is economical and can address the green house emission challenges. However, still a large number of drivers prefer to own a car rather than sharing it with other co-passengers. The young people prefer owning a car due to the status reasons as the middle-class consumer prefers owning a car a status symbol. There are several benefits of the car sh...

Read More arrow

MKTG224 : Market Research

Download : 0 | Pages : 8
  • Course Code: MKTG224
  • University: Centennial College
  • Country: Canada

Answer:  1) Data can be collected in relation to market research with the help of primary and secondary data. The primary data is collected at first hand by the researcher and it helps in assessment of the current problem (Brace, 2018) The secondary data refers to data that has been already collected and which are easily available. 2) Standard Deviation is used for measuring dispersion around that of an average. It proves ...

Read More arrow
Next

Save Time & improve Grade

Just share requirement and get customized Solution.

watch
question
We will use e-mail only for:

arrow Communication regarding your orders

arrow To send you invoices, and other billing info

arrow To provide you with information of offers and other benefits

Add File

Error goes here

1,471,046

Orders

4.9/5

Overall Rating

5,097

Experts

Our Amazing Features

delivery

On Time Delivery

Our writers make sure that all orders are submitted, prior to the deadline.

work

Plagiarism Free Work

Using reliable plagiarism detection software, Turnitin.com.We only provide customized 100 percent original papers.

time

24 X 7 Live Help

Feel free to contact our assignment writing services any time via phone, email or live chat. If you are unable to calculate word count online, ask our customer executives.

subject

Services For All Subjects

Our writers can provide you professional writing assistance on any subject at any level.

price

Best Price Guarantee

Our best price guarantee ensures that the features we offer cannot be matched by any of the competitors.

Our Experts

Assignment writing guide
student rating student rating student rating student rating student rating 5/5

2109 Order Completed

99% Response Time

Emma Zhong

Ph.D in Project Management with Specialization in Project Communications Management

Singapore, Singapore

Hire Me
Assignment writing guide
student rating student rating student rating student rating student rating 5/5

647 Order Completed

98% Response Time

Adlina Han

Masters in Marketing with Specialization in Branding

Singapore, Singapore

Hire Me
Assignment writing guide
student rating student rating student rating student rating student rating 5/5

285 Order Completed

99% Response Time

Eugene Baranowski

MBA in Supply Chain

London, United Kingdom

Hire Me
Assignment writing guide
student rating student rating student rating student rating student rating 5/5

416 Order Completed

95% Response Time

Tyler Moore

MBA in Accounting

Washington, United States

Hire Me

FREE Tools

plagiarism

Plagiarism Checker

Get all your documents checked for plagiarism or duplicacy with us.

essay

Essay Typer

Get different kinds of essays typed in minutes with clicks.

edit

GPA Calculator

Calculate your semester grades and cumulative GPa with our GPA Calculator.

referencing

Chemical Equation Balancer

Balance any chemical equation in minutes just by entering the formula.

calculator

Word Counter & Page Calculator

Calculate the number of words and number of pages of all your academic documents.

Refer Just 5 Friends to Earn More than $2000

Check your estimated earning as per your ability

1

1

1

Your Approx Earning

Live Review

Our Mission Client Satisfaction

ANOTHER AMAZING SOLUTION. AM SATISFY AND ELATED. I GOT AN EXPECTED GRADE. KEEP THE GOOD WORK GOING. THANKS.

flag

User Id: 430135 - 31 Oct 2020

Australia

student rating student rating student rating student rating student rating

Submitted on time and the quality of the work was very professional. Asked to start each of my questions and they did so.

flag

User Id: 531014 - 31 Oct 2020

Australia

student rating student rating student rating student rating student rating

Not disappointed, delivered well before time required hopefully it is at least a (B).

flag

User Id: 503299 - 31 Oct 2020

Australia

student rating student rating student rating student rating student rating

I received an 89 on this assignment. I am still grateful. If I had to do it, I would have received a 0. Thank you to the experts, whom are working nonstop to ensure we are making the grades and submitting assignments on time.

flag

User Id: 332254 - 31 Oct 2020

Australia

student rating student rating student rating student rating student rating
callback request mobile
Have any Query?