Uncategorized

Program: Master of Information Systems Assessment 1: Portfolio 4 (Session 5: Repetition Structure) Semester 2: Block 8-2024 Course Code: MBIS4003 Course Title: Software

Need this assignment written? Get a free quote from a subject specialist in minutes.

Order Your Essay
12,000+
Assignments delivered
97%
On-time delivery
800+
Verified writers
4.9★
Average rating

Program: Master of Information Systems

Assessment 1: Portfolio 4 (Session 5: Repetition Structure)

Semester 2: Block 8-2024

Course Code: MBIS4003 Course Title: Software Development

Total Marks: 5 Duration: 60 Minutes

Q1:

In an organization bonuses are provided to employees to encourage them in their work skills. An overall bonus of 40% of the salary is given for those employees who complete the weekly tasks in less than 3 days and extra work hours of 5 hours. However, a bonus of 15% is given for employees taking time more than three days but less than 5 or has at least an extra work hour of 8 hours and in all other cases there will be no bonus. Write a python program that will accept the number of days and work hours from a user and will display the bonus the person is eligible for. 1.5

Q2:

A software company sells a package that retails for 129 dollars. Quantity discounts are given according to the following table: 1.5

Quantity Discount

12-24 10%

25-34 20%

35-49 30%

50 or more 40%

Q3:

Write a program that asks the user to enter the Quantity of packages purchased. The program should then display the amount of the discount (if any) and the total amount of the purchase after the discount.

0.5 marks will be awarded for formatted output

Write a python program that asks the user the sales amount and the commission rate and the 2.0 program displays the commission accrued and the program keeps on asking the user this data as long they want to continue testing. Should this require a for loop or a while loop?

Program: Master of Information Systems

Assessment 1: Portfolio 5 (Session 6: Dictionaries and Sets)

Semester 2: Block 8-2024

Course Code: MBIS4003 Course Title: Software Development

Total Marks: 5 Duration: 60 Minutes

Q1: For a given dictionary named Mobiles 1

Mobiles = {

‘Brand’: [‘Nokia’,’Samsung’,’Motorola’,’Oppo’],

‘Price’: [24000,34000,32000,28000]

}

• Add a key to the above dictionary called ‘colour’.

• Set the colour values to be a list of strings :’Ivory’,’Black’,’Red’,’White’

• Remove the value 34000 from the list of items stored under Price key. Add a key Series with the value ‘UB40’ under the Series key.

Q2: Create the following two dictionaries Vehicles and Stock for a factory 2

Vehicles_Price={‘Skoda’: 150000,’Honda’:180000,’Suzuki’:260000,’Alto’:720000} Stock={‘Skoda’: 10,’Honda’:12,’Suzuki’:6,’Alto’:20}

Loop through each key in vehicles_Price.For each key, print the key along with its price and stock information.

Print the Answer in the following format

Skoda

Vehicles_Price : 150000

Stock: 10

Calculate the total price value if the factory sold all its vehicles.

Create a variable total and set it to zero

Loop through the Vehicles_prices dictionary. For each key in prices, multiply the price by the number in stock. Print that value in the console and add it to the total. Outside the loop the toal price may be printed.

Q3: For the two dictionaries (Vehicles_Price and Stockin the previous example, make a 2 list called Purchase_list with the values “ “Skoda”,”Honda”,”Suzuki” and “Alto”

Define a function compute_bill that takes one argument food as input. In the function, create a variable total with an initial value of zero. While you loop through each item of food, only add the price of the item to total if the item's stock count is greater than zero. If the item is in stock and after you add the price to the total, subtract one from the item's stock count.

Plagiarism-Free Essay Writing

Have This Essay Written By a Professional — On Your Terms

  • Verified writers, vetted by subject
  • 100% plagiarism-free — Turnitin report included
  • Deadlines from 3 hours
  • Unlimited free revisions
  • Free quote — no card required
  • Money-back guarantee
Order Your Essay Get a Free Quote →
Share:
AC
Academic Writer
Academic Writer & Editor

Expert academic writer and education specialist helping students in the UK, USA, and Australia achieve their best results.

← Previous
Psychology of Trading – Select two types of emotional biases (e.g. loss aversion, herding, overconfidence) and evaluate how these biases influence trading behaviours and performance. Discuss the following statement “UK Equity markets
Next →
Assessment 1: Problem solving task: NSN830_26se1 Leadership in Nursing Assessment 1: Problem solving task The following provides an explanation of the assessment, including suggestions on how to approach the

Need Help With This Assignment?

No credit card · No commitment · Quote in minutes
Order Your Essay Get a Free Quote →