Preview

Programming

Good Essays
Open Document
Open Document
1575 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Programming
Lab Exercises

MS1.2 Data Structures and Algorithms Using C++
Lab – 1 (2 Hrs Real Time) 1.1 Write a C + + program to display any message. 1.2 Sum of digit 1.2.1 Reverse the number 1.2.2 Factorial of a number 1.2.3 Fibonacci series 1.2.4 Armstrong number checking 1.2.5 Prime no checking 1.2.6 Palindrome Checking 1.2.7 Odd or even number. 1.2.8 Perfect number checking. Lab – 2 (2 Hrs Real Time) 2.1 2.2 2.3 2.4 2.5 Write a program to calculate the following: Find Maximum of N numbers. Find Minimum of N numbers. Find Summation of N numbers. Find Average of N numbers.

Lab – 3 (2 Hrs Real Time) 3.1 3.2 3.3 3.4 Write a program to convert the pounds to kilograms using inline function. Write a program to using default arguments. Write a program to give one example for global or external variables. Write a program to give one example for static variables.

Centre for Information Technology and Engineering, Manonmaniam Sundaranar University

1

Data Structures and Algorithms Using C++

Lab – 4 (2 Hrs Real Time) Write a program to do the following: 4.1 4.2 4.3 4.4 4.5 4.6 String copy String concatenation String Comparison String reverse Find the length of the string String Conversion (Uppercase to Lowercase & Lowercase to Uppercase)

Lab – 5 (2 Hrs Real Time) Write a program for calculating matrices operations: 5.1 5.2 5.3 5.4 5.5 5.6 Addition Subtraction Multiplication Transpose of matrices Row wise, column wise & diagonal wise total. Symmetric Checking.

Lab – 6 (2 Hrs Real Time) 6.1 Imagine a tollbooth at a bridge car passing by the booth is expected to apply a fifty-cent tool. Mostly they do, but sometime a car goes by without paying. The tollbooth keeps track of the number of cars that have gone by and of the total amount of money collected. Model this tollbooth with a class called tollbooth. The two data items are a type-unsigned int to hold the total number of cars, and a type double to hold the total amount of money collected. A constructor

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Pt1420 Unit 7 Study Guide

    • 582 Words
    • 3 Pages

    11.Write a program to put the sum 1+4+7+...............+148 in AX. Then display the result. Page: 114…

    • 582 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    It210 Appendix F

    • 372 Words
    • 3 Pages

    5. The program will allow the user to clear all the input fields and do the calculations over.…

    • 372 Words
    • 3 Pages
    Satisfactory Essays
  • Better Essays

    Int Task 3

    • 2010 Words
    • 9 Pages

    The purpose of this project is to determine the fastest computer operating system for solving mathematical equations. Which operating system, Windows 7 or Ubuntu Linux, performs the best when it comes to pure number crunching? In order to test this question, the researcher ran a Java based application that benchmarks the ability of each operating system to perform a mathematical operation across three different data types and a second, more complex, mathematical operation. The Java based application, Java Micro Benchmark, performs each mathematical operation eight times per test and the researcher ran the test five times for each operating system. The mathematical operations testsed by Java Micro Benchmark are integer arithmetic, long integer arithmetic, double-precision floating point arithmetic and trigonometric arithmetic. This method gave the researcher data for forty tests per mathematical operation for each operating system. The resulting data is then compared to determine which operating system is able to process mathematical operations the fastest.…

    • 2010 Words
    • 9 Pages
    Better Essays
  • Satisfactory Essays

    Coding

    • 335 Words
    • 2 Pages

    of any impingements. The camera was then removed from the subacromial space. The area was then infiltrated with Marcaine. The posterior portal was then closed with absorbable sutures and Steri-Strips, and a Mepore dressing was placed on it. The arm was then placed in a sling; the patient awakened and was placed on her hospital bed and taken to the recovery room in good…

    • 335 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Today’s lecture will be spent entirely in the computer lab. At the end of lab, submit this worksheet.…

    • 581 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    code program

    • 317 Words
    • 2 Pages

    (Input screenshot) - Insert here a screenshot of your program running showing entry of the provided set of test input data for this assignment:…

    • 317 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    assignment lab 1

    • 751 Words
    • 4 Pages

    //This program will multiply the length and width of a maximum of four rooms in a house…

    • 751 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Lab 3 Student

    • 1264 Words
    • 7 Pages

    This lab accompanies Chapter 2 (pp. 56-68) of Starting Out with Programming Logic & Design.…

    • 1264 Words
    • 7 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Assignment 2

    • 338 Words
    • 2 Pages

    3.) Input, and display, the total of the numeric input after each input is entered. Average the numeric input, indicate lowest numeric input value and the highest numeric input value for the previous numeric inputs, before the next numeric input is asked for. (Example given in class)…

    • 338 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Programming Logic

    • 1499 Words
    • 6 Pages

    2. Design the logic for a program that outputs every number from 1 through 10.…

    • 1499 Words
    • 6 Pages
    Good Essays
  • Good Essays

    Programming Homework

    • 366 Words
    • 2 Pages

    The variables in this program will be declared are num_1, num_2 and will be used as integers.…

    • 366 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Java

    • 490 Words
    • 3 Pages

    Write a Java program to demonstrate using bitmaps and bitwise operators to sort and remove duplicates from a file of random phone numbers. Do not confuse the term bitmap used for compressing data into smaller spaces with the bitmap that has come to mean a graphic image.…

    • 490 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    06CS43 MODEL QUESTION PAPER Fourth Semester B.E. Degree Examination, June/July 2008 CS/IS Analysis and Design of Algorithms Time : 3 hours Max Marks:100 Note: Answer atleast two full questions from each part. PART -A 1. a) Explain the Notion of algorithm and its important characteristics with the help of an algorithm.…

    • 379 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Java

    • 473 Words
    • 2 Pages

    Example: public class Person { //attribute declarations private String name; private int age; private Date birthday; // class constructor public Person() { name = "secret"; age = 0; birthday = new Date(7,7); }…

    • 473 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    In today's world there exist all sorts of challenges to excite the keenest minds around its surroundings. To meet these challenges one would have to invent new techniques, new instruments and new approaches, which could easily open windows into the unknown area of nature and lead us to work at frontiers of science and contribute to world stock of knowledge. To compete with these scientific advances, engineering and scientific study are the key elements for a new innovation and research programs.…

    • 574 Words
    • 3 Pages
    Good Essays