diff_months: 11

Report on

Download Solution Now
Added on: 2024-11-22 16:00:09
Order Code: SA Student Vaibhav IT Computer Science Assignment(9_23_36289_83)
Question Task Id: 494544

Report on

BISY 1003/MBIS4003 Assessment 3 PART A

Submitted by:

Name:

Student ID:

Course Code: BISY1003/MBIS4003

Foundation of Programming

Bachelor/Master of Business Information System

Submitted to:

Dr. Md Rafiqul Islam

Senior Lecturer

Business Information Systems

Date of Submission:

Australian Institute of Higher Education

Question 1.1: What will be the outcome of using infinite loop in calculating 10% sales commission of salespersons? Where 1st sale is 298000, 2nd sale is 450000, 3rd sales 980000.

Answer: In programming, loops are used to repeat a block of code. For example, if we want to show a message100times, then we can use a loop. There are two types of loops in Python:

for loopwhile loopSolution:

Outcome:

Description: Here the use of while loop in calculating commission from sales has been presented. Meanwhile, infinite loops has been used under while loops. All the sales amounts from the question have been used as the input. Firstly, I wrote the code for the output and as per coding the sales and commission have been appeared infinite times, even though we can run it in infinite times, I only presented it for three times only.

One problem of while infinite loop is, it does not stop until the program is interrupted the input will continue to come. When I will stop the code then it will only stop.

Interpretation: This code helps us to get the results of as many as salesperson commission we want to calculate. So, it is a positive side of this code, however, it is in hand of user to stop the code or not.

  • Uploaded By : Pooja Dhaka
  • Posted on : November 22nd, 2024
  • Downloads : 0
  • Views : 145

Download Solution Now

Can't find what you're looking for?

Whatsapp Tap to ChatGet instant assistance

Choose a Plan

Premium

80 USD
  • All in Gold, plus:
  • 30-minute live one-to-one session with an expert
    • Understanding Marking Rubric
    • Understanding task requirements
    • Structuring & Formatting
    • Referencing & Citing
Most
Popular

Gold

30 50 USD
  • Get the Full Used Solution
    (Solution is already submitted and 100% plagiarised.
    Can only be used for reference purposes)
Save 33%

Silver

20 USD
  • Journals
  • Peer-Reviewed Articles
  • Books
  • Various other Data Sources – ProQuest, Informit, Scopus, Academic Search Complete, EBSCO, Exerpta Medica Database, and more