What is program debugging - explain it briefly

Assignment Help Other Subject
Reference no: EM132396565

Flow Chart Questions -

Question 1 - A University has 3,000 students. These students are divided in four categories:

(i) B. Tech

(ii) M. Tech

(iii) M.S.

(iv) Ph.D.

Draw a flow chart for finding the percentage of the students in each category.

Question 2 - An electric supply company charges the following rates from its consumers:

No. of unit consumed - Charges/unit

For the first 200 units - 2.50

For the next 300 units - 3.50

Over 500 units - 5.00

Computer database of the company has the following information:

  • Consumer Name
  • Address
  • Unit consumed
  • Bill date
  • Payment date

If the consumer pays his bill within 15 days from the bill date, 10% discount is given. If he makes the payment after 15 days from the bill date, 5% surcharge is levied. Draw a Flow Chart to calculate the net amount of the bill for each consumer and print it.

Question 3 - A bicycle shop in a city hires bicycles by the day at different rates for different models as given below:

Model No.

Hire rate per day

Model No. 1

14.00

Model No. 2

12.00

Model No. 3

10.00

In order to attract customers, the shopkeeper gives a discount on the number of days a bicycle is hired for. The policy of discount is as given below:

No. of days

Discount rate (%)

1-5

0.00

6-10

8

11 and over

15

For every bicycle hired, a deposit of 30.00 must be paid.

Develop a flow chart to print out the details for each customer such as name of the customer, bicycle model number, number of days a bicycle is hired for, hire charges, discount and total charges including deposits.

Question 4 - A Book Publisher offers discount to customers on the basis of customer type and number of copies ordered as shown below:

Customer Type

Number of Copies Ordered

% of Discount

Book Seller

More than 10

25

Less than or equal to 10

15

Library

More than 5

20

Less than or equal to 5

10

Customer number, name, type, book number, number of copies ordered and unit price are given as input. Draw a flowchart to calculate the net amount of the bill for each customer and print it. The above is to be carried out for 50 customers.

Question 5 - Frame the problem for which the given flowchart has been drawn. See the Abbreviations defined below:

1705_figure.png

Cust : Client, Prod : Product , Amt : Amount, Disc : Discount, TV : Television, FR : Fridge MS : Music system, ST : Student.

Question 6 - (a) Write the output sequence (at least first five numbers) for the given flowchart, if N = 0 is selected as the value for N as input.

(b) If the statement "N = N * N" in the computation box of the flowchart is modified as "N = N * (N -1)". Write the output sequence (at least first five numbers) for the flowchart with N = 0 as the input value for N.

627_figure1.png

Question 7 - The Income-tax for the employees of an organization is calculated on the basis of their Gross Income and the Investments made by them, under Section 80CCC. The taxable income is calculated according to the following rules:

Taxable Income = Gross Income - Investments provided investments are less than 1 lac.

Otherwise

Taxable Income = Gross Income - 1,00,000

Following rules are applied to calculate the Income-tax, on the Taxable Income:

Taxable Income: Income-tax

(i) 0 - 1,60,000: Nil

(ii) 1,60,001 - 3,00,000: 10%, on the excess of 1,60,000

(iii) 3,00,001 - 5,00,000: 14,000 + 20% on the excess of 3,00,000

(iv) 5,00,001 and above: 54,000 + 30% on the excess of 5,00,000

Also an educational cess of 3% of Income-tax is levied on all the employees, irrespective of the income.

Employee number, Name, Gross Income, Investment amount is given as input.

Draw a flow chart to calculate the Income-tax payable by each employee.

Question 8 - What do you mean by the term flowchart? Draw a program flowchart to find the sum of first 50 odd numbers.

Question 9 - What is program debugging? Explain it briefly.

Question 10 - Draw a flow chart to compute and print Income-tax, Surcharge and Education cess on the income of a person, where income is to be read from terminal and tax is to be calculated as per the following rates:

Slab - Rate

(i) 1 to 1,00,000: No tax

(ii) 1,00,001 to 1,50,000 - @ 10% of amount above 1,00,000

(iii) 1,50,001 to 2,50,000  - 5,000 + 20% of amount above 1,50,000

(iv) 2,50,001 onwards - 25,000 + 30% of amount above 2,50,000

Surcharge - @ 10% on the amount of total tax, if the income of a person exceeds 10,00,000

Education cess - 2% on the total tax.

Question 11 - A company ABC Ltd. is engaged in selling consumer goods to different categories of customers. In order to increase its sales, different types of discounts are offered to customers. The policy of discount is as given below:

(i) On cooking range, a discount of 12 percent is allowed to dealers and 9 percent to retailers irrespective of the value of the order.

(ii) A discount of 12 percent is allowed on washing machine irrespective of the category of customer and the value of the order.

(iii) On decorative products, dealers are allowed a discount of 20 percent provided that the value of the order is ' 10,000 and above. Retailers are allowed a discount of 10 percent irrespective of the value of the order.

Draw a flow chart to calculate the discount for the above policy.

Question 12 - The goods imported from the foreign countries are classified into four categories for the purpose of levying Custom duty. The rate of Custom duty on value of goods 'V' for each category is given below:

Category (K)

Type of Goods

Custom Duty (%)

1.

Electronic items

10

2.

Heavy machinery

15

3.

Footwear items

20

4.

All other unclassified items

25

Draw a flow chart to compute appropriate custom duty including educational cess at the rate of 3% of the value of custom duty.

Question 13 - A bank accepts fixed deposit for a year or more and the policy on interest rate is as follows:

(i) If a deposit is less than 10,000 and for two or more years, the interest rate is 5% compounded annually.

(ii) If a deposit is 10,000 or more, but less than ' 50,000 and for two or more years, the interest rate is 7% compounded annually.

(iii) If the deposit is 50,000 or more and is for one year or more the interest rate is 8% compounded annually.

(iv) On all deposits for five years or more interest rate is 10% compounded annually.

(v) On all other deposits not covered by the above conditions, the interest rate is 3%.

(vi) If the customer is holder of any type of account for last five years, an additional 1% interest is allowed.

Draw a flow chart to obtain the money in customer's account and interest credited at the time of withdrawal.

Question 14 - An insurance company follows the following rules:

(i) If a person's health is good and age is between 20 and 40 years and lives in a city and sex is male, then the premium is 20 per thousand and he will be insured for maximum amount of 10.0 lakhs.

(ii) If a person satisfies all the above conditions, except that sex is female, then the premium is 15 per thousand and maximum insured sum will be 15.0 lakhs.

(iii) If a person's health is poor and age is between 20 and 40 years, but lives in a village. For a male sex, premium is 50 per thousand and maximum insured sum is 1.0 lakh only.

(iv) In all other cases, the person is not to be insured.

Draw a flow chart to find the eligibility of a person to be insured, premium rate and maximum amount of Insurance.

Question 15 - A book publisher of Accounts and Computer books offers discount to customers on the basis of Customer type and Subject as detailed below:

Customer type

Subject

Discount (%)

Book seller

Accounts

10

Computer

20

Library

Accounts

5

Computer

10

If number of copies purchased is more than 10, then additional discount of 2% is allowed irrespective of the customer type and subject.

It is also assumed that there are 25 customers and complete details of each customer like customer name, type, subject, number of copies and unit price is required to be entered through the console.

Draw a program flow chart to calculate and print the net amount paid by each customer along with customer name. Also print the total discount allowed to all the customers.

Question 16 - A labourer in a manufacturing company gets his wage as per following calculations:

Basic pay = 10 × N if N ≤10

= 12 × N if N ≤15

= 15 × N if N >15

He is also awarded a quality related bonus as per following norms:

If QI ≤ 0.5; Bonus = 0.0

If QI ≤ 0.75; Bonus = 10% of basic pay

If QI ≤ 0.9; Bonus = 20% of basic pay

If QI > 0.9; Bonus = 30% of basic pay

Where N = Number of items manufactured

QI = Quality index

For the above conditions, draw a flow chart to calculate and print basic pay, bonus and total pay received by the labourer.

Question 17 - A water distribution company has two categories of consumers (Domestic and Commercial).

The charges of water per unit consumed by these consumers are 5.00 and 8.00 respectively. The computer database of the company has the following information:

  • Consumer's name
  • Category
  • Units consumed
  • Bill's date
  • Date of payment.

The company processes bills according to the following criterion:

If the consumer is domestic and pays his bill within 10 days of the bill date, 7% discount is given. If he pays the bill within 15 days, no discount is given. If he makes the payment after 15 days of the bill date, 10% surcharge is levied. For commercial consumers, corresponding percentage be 15%, 0% and 15% respectively.

Draw a Flow chart to calculate the bill amount, discount, surcharge and net amount of the bill for each type of consumer and print.

Question 18 - (a) For computing custom duty, the imported items are classified into 4 categories. The rate of duty to be levied on each category of items is given below:

Category (K)

Class of goods

% custom duty on the value of goods (V)

1

Food and beverages

10

2

Textile and leather goods

15

3

Heavy machinery

20

4

Luxury items

40

Draw a flowchart to compute the custom duty.

Question 19 - Draw a flow chart which will read the house number and the number of units consumed. Print the total charges with the house number and the units consumed.

Question 20 - For the flow chart given below:

(a) Print the output displayed for using the given two sets of data:

 

X

Y

1st Set

15

20

2nd Set

35

30

(b) What interpretation do you make from the instructions given in the flow chart?

(c) Comment about the storage of the variables used in the instructions of the flow chart.

2127_figure2.png

Question 21 - Describe briefly System flow chart.

Question 22 - Draw a flow chart to print the square of odd numbers between 10 to 50 and also print the sum of their square.

Reference no: EM132396565

Questions Cloud

Develop a cause and effect diagram for the situation : Please review Chapter 21: The Role of Root Cause Analysis in Public Safety ERM Programs Case and provide response for following questions.
How client values are used to provide framework of care : Please, write one paragraph response to the following discussion by using one reference from peer-reviewed Nursing Journal not older than 5 years.
Differentiate a nursing and a medical practice problem : Describe the difference between a nursing practice problem and a medical practice problem. Provide one example of each. Discuss why is it important to ensure.
Bringing certain kinds of devices into the workplace : Some organizations prohibit workers from bringing certain kinds of devices into the workplace, such as cameras, cell phones, and USB drives.
What is program debugging - explain it briefly : Flow Chart Questions - What is program debugging? Explain it briefly. Draw a flow chart for finding the percentage of the students in each category
Discuss why the problem should be studied : Nursing research is used to study a dilemma or a problem in nursing. Examine a problem you have seen in nursing. Provide an overview of the problem.
Continuously surrounded by information systems : We are continuously surrounded by information systems that support customer interactions.
Strong educational programs : At UC, it is a priority that students are provided with strong educational programs and courses that allow them to be servant-leaders in their disciplines
What is the total amount that you would pay : How much would your monthly payment be on a 5-year loan if the following assumptions were true?

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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