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

  Implement a program to add three numbers

implement a program to add three numbers - I can get the two numbers but not 3.  Need to be able use in PEP 8 loader and executor.  All I need is the object

  Implement a class timedepositaccount

It is not possible to deposit additional funds into this account. Provide a withdraw method that removes the entire balance. Partial withdrawals are not allowed.

  Implement uniform random number generator

Implement Uniform Random Number generator and Generate 1000 Random number between 0 an 10000.

  Make a c program that squares the number

Make a C program that accepts an integer value at the main method from the keyboard and in turn passes the value to a function that squares the number

  Create class having constructor to recieve two ints

Create a class (in C++)named Card. The class should have two int data members named face and suit.The class should have a constructor that recieves the two ints and uses them to initialize the data members.

  Write a c++ program to sort a list of number using vectors

Write a C++ program to sort a list of number using vectors. Output the values when the elements are inserted into its correct position. Assume the first element in the list is sorted.

  Program to print out invalid number to character

The integer must contain 3 distinct non-zero number, or the program will print out invalid number.it should print out invalid query.

  Interest rates go up the normal consequence

If interest rates go up it can affect you both good and bad. If interest rates go up the normal consequence is a drop in bond prices

  Display the largest and smallest numbers entered

Design a java program with a loop that lets the user enter a series of numbers - After all the numbers have been entered, the program should display the largest and smallest numbers entered.

  Problem regarding the arrival of aborigines

Mining in Australia probably started with the arrival of Aborigines some 40,000 years ago when they fossicked for stones suitable for tools and weapons, and dug for ochre which they used for decorative use.

  Write a flowchart and c code for a program

You will write a flowchart, and C code for a program that does the following: Prints "Happy Birthday" for every year of the user's age, along with the year.

  Write a program that creates an array of 200 random numbers

Write a program that creates an array of 200 random real numbers between 0 and 200.  Using the statistics library, calculate and output the following: mean, median, variance, standard deviation, maximum value, and minimum value.

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