Giter Site home page Giter Site logo

Hamza Iqbal's Projects

phyformula icon phyformula

physics basic Force, Acceleration and Distance covered Calculation

pointers-task-in-cpp icon pointers-task-in-cpp

Question 1: Write a program that will read 10 integers from the keyboard and place them in an array. The program then will sort the array into ascending and descending order and print the sorted list. The program must not change the original array or create any other integer arrays. Hint: It requires two pointer arrays. Question 2: Write a program that will read n integers from the keyboard and place them in a jagged array as shown. Question 3: Create a StringADT.h file -> containing the definition of all the required functions Create a StringADT.cpp file -> containing the implementation of all the functions defined in header file. (Make sure to include StringADT.h file in this file). Implement and Test all the functions and Requirements. o Is Integer (checks if the string is an integer?) o To Integer (converts a string in to an Integer) o Read String (Reads a string and Returns it) o Concatenate (Concatenate two string if not too long) o String Greater (Checks if the first string is greater) o String Smaller (Checks if the first string is smaller) o String Equal (Checks if the strings are equal) Data Structures Fast NUCES –Department of Computer Science By: Ammara Yaseen Question 4: Write a program to do following operation on two dimensional array A of size m x n. You should use user-defined functions which accept 2-D array A, and its size m and n as arguments. The options are:  To input elements into matrix of size m x n  To display elements of matrix of size m x n  Sum of all elements of matrix of size m x n  To display row-wise sum of matrix of size m x n  To display column-wise sum of matrix of size m x n  To create transpose of matrix B of size n x m Question 5: Write user defined functions for square matrix to calculate 1. Left diagonal sum 2. Right diagonal sum

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.