Deadline: 24h October 2011 INTRODUCTION TO COMPUTING-LAB FALL 2011 PROGRAMMING ASSIGNMENT I advert: mechanism the pop offn syllabuss in to C++ * Program-1: Percentage shit deliver the goods by a student in tether exams argon to be entered to a computer. An indication of Pass or bolt out is given out after the terzetto marks argon entered. The criteria for strangleing argon as follows: * A student passes if solely the three examinations ar passed. Additionally a student whitethorn pass if only one subordinate is failed and the overall fairish is greater than or follow to 50. The pass mark for an mortal subject is greater than or equal to 50. The pass marks for an individual subject is 40 * Program-2: A shopkeeper announces a softw are system for customers that he give give 10% discount on all metres and if a bill amount is greater than 5000 than a discount of 15%. compose a C++ schedule which takes amount of the bill from substan ce abuser and calculates the payable amount by applying the preceding(prenominal) discount criteria and display it on the screen * Program-3: Write a program that takes a four digits integer from user and shows the digits on the screen separately i.e., 7531, it displays 7,5,3,1 separately. * Program-4: If three integers a, b and c are such(prenominal) that a2+b2=c2 then they constitute a Pythagorean triple.
There are an infinite number of such triples. unmatched way of generating them as follows: * Consider two integers m and n, such that m>n then the three numbers m2-n2, 2mn and m2+n2 ar e a Pythagorean triple. Write a C++ program ! that reads values for m and n and prints the values of the corresponding Pythagorean triple * Directions: come across the Problems thoroughly and implement them by yours own presumet copy or cheat of any of yours compeer because demo in class of individual student go forth be held according to the given plan of five students in a class, in case of plagiarism detected the person will be directly given 0. Good quite a little and May Allah Pak bless you.If you want to get a luxuriant essay, order it on our website: OrderCustomPaper.com
If you want to get a full essay, visit our page: write my paper
No comments:
Post a Comment