BIT 100 Introduction To Programming Assignment

Assignment Help C/C++ Programming
Reference no: EM132472153

BIT 100 - Introduction To Programming - HELP University

Learning Outcome 1: Explain the steps involved in program development.
Learning Outcome 2: Discuss elements of good programming style.
Learning Outcome 3: Write programs to solve basic computing problems.

Problem 1:

EcoSave is an organization that aims to contribute towards efforts to combat climate change. One of the problems in communities is difficulty finding recycling centers to submit materials. EcoSave aims to overcome this by encouraging community members to become collectors for recyclable materials. Collectors will receive points for collecting materials, and recyclers will also receive points for submitting materials.

Your task is to write a Python program to facilitate collectors and recyclers to count their points for membership status.

In order to do this, your program will have two main functionalities:
i. Points Calculator
ii. Membership Tier Info
Your program should be contained in one main function which call different functions to perform each of the task below. An introduction on the program and welcome message will be shown every time the program restart.

Assessment Task 1

Create a function named inputDetails which do not accept any argument and return seven parameters namely userName, gender, age, paperQuantity, plasticQuantity, oilQuantity, electricQuantity. This function should prompt the user to input the following details:

i. Name
ii. Gender (The program should be able to cater for different input formats. Example: user may input ‘F' or ‘f' or ‘female')
iii. Age (integer). No validation required.
iv. Quantity of paper (integer/float). No validation required.
v. Quantity of plastic (integer/float). No validation required.
vi. Quantity of cooking oil (integer). No validation required.
vii. Quantity of electrical (integer). No validation required.

Assessment Task 2

Create a menu which will be generated every time the user restarts the program. This menu will also be shown after the output for each option. The menu should be coded in a function named menu. Your menu should allow user to choose between the available options, accepting only valid choice. Prompt the user to input again if the choice given is invalid. This function should return choice which stores the value chosen by the user.

Assessment Task 3

Program the first functionality of the program: Points Calculator. This should be contained in a function pointCalculator which accepts four arguments paperQuantity, plasticQuantity, oilQuantity, and electricQuantity and return the collectorPoint and recyclerPoint. Use details in Table 1 to calculate points value.

Table 1: Points of recyclables for collector.

Recyclables

Points

Paper

30

Plastic

50

Cooking oil

70

Electrical

90

Sample calculation: If collector collected 1.3kg of of paper, 2kg of plastic, one bottle of cooking oil and two unit of electrical, the total points collected are: (1.3 × 30) + (2 × 50) + (1 × 70) + (3 × 90) = 479

Table 2: Points of recyclables for recycler

Recyclables

Points

Paper

40

Plastic

60

Cooking oil

80

Electrical

100

Sample calculation: If recycler recycled 1.3kg of paper, 2kg of plastic, one bottle of cooking oil and two unit of electrical, the total points collected are: (1.3 × 40) + (2 × 60) + (1 × 80) + (3 × 100) = 552

Assessment Task 4

Expand your program by including the second functionality: Membership Tier Information. This option allows user to review their membership tier and points required to upgrade to a higher level. This should be contained in a function viewMembership which accepts three arguments name and collectorPoint and recyclerPoint and return the status and remainingPoint.

Table 3: Membership Tier

Tier

Points

Eco Saver

500 and above

Eco Hero

800 and above

Eco Warrior

1000 and above

Assessment Task 5
Your program allows user to reset the input detailsby user when option 3 is chosen. This option will prompt the user to input the personal and recyclable details again. User may continue to choose the functionality from the options given to compute new points calculation and membership tier information based on the new input given by user.

Problem 2

The process of creating a program is often broken down into stages according to the information that is produced in each phase. We learned about the 6 steps of Software Development Process in Lecture

2. Described the steps of developing that program - giving the required information in each step. With the exception of the implementing the design (as it is Problem 1), you need to give the documentation/information produced for the other five steps.

Attachment:- Introduction To Programming.rar

Reference no: EM132472153

Questions Cloud

Determine and prepare a correct trial balance : Prepare a correct trial balance for Cash received from a customer on account was debited for $570, and Accounts Receivable was credited for the same amount.
Prepare journal entries to record the events : Question - Striking Furs imports furs from Canada. In the space provided below, prepare journal entries to record the following events
What is the amount of profit or loss during December : The balance sheet reported total assets of $55,650.00 and total stockholders' equity of $38,000.00. What is the amount of profit or loss during December
Compute estimate of the ending balance of account receivable : Determine and Compute an estimate of the ending balance of accounts receivable from customers that should appear in the ledger and any apparent shortages
BIT 100 Introduction To Programming Assignment : BIT 100 Introduction To Programming Assignment Help and Solution, HELP University - Assessment Writing Service - Explain the steps involved in program
What is the after-tax income : In late December, he performed $33,000 of legal services for a client. What is the after-tax income if Hank sends his client the bill in January
Prepare the entry to record the exchange : Record annual depletion for the first year, ended August 31, 2017. (Credit account titles are automatically indented when the amount is entered
What is Heather Taxable income and Income tax : For the year, Heather is employed and has wages of $81,400. What is Heather's Taxable income and Income tax is she files single
What are sandi co total non-current assets : If during 20x3, $20160 dividends were paid by the corporation and no net income was earned, what is the 20x3 opening retained earnings amount?

Reviews

Write a Review

 

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd