Giter VIP home page Giter VIP logo

cp2017's Introduction

Computer Programming Summer 2017

Questions and Programming Problems:

Basic Programming:

  1. Print "Hello World" [Source Code]
  2. Read a char, int and output the same [Source Code]
  3. Read two integers and output their sum, difference, multiplication [Source Code]
  4. Write a program to calculate the area of a circle given the radius [Source Code]
  5. Calculate simple interest given principle, duration and rate of interest [Source Code]
  6. Finding a remainder after dividing one number by another. [Source Code]
  7. Write a program to read a character and output its ASCII value. [Source Code]
  8. Write a program to read a floating point number and output its integer value. [Source Code]
  9. Write a program to read a small character and convert it into capital character. [Source Code]

Conditionals:

  1. Write a program that takes as input two integers. For each integer, it should output the whether the given integer is even or odd.
  2. Write a ‘C’ program to take as input 3 integer numbers. The program then outputs the largest integer.
  3. Write a ‘C’ program to take as input 3 floating point numbers. The program then outputs the number with largest magnitude (Largest magnitude number is the largest number obtained after ignoring the sign)
  4. Write a ‘C’ program to take as input 5 integers. The program then outputs all input integers that are larger than the average of the 5 input integers. Assume distinct input integers.
  5. Write a program to read an integer input from the user and print the last two digits of that integer.
  6. Write a program to read two characters and determine if the first character is capital or small form of the second character
  7. Write a program to read an integer and output which of 2, 3, and 5 divide it. There should be only one print statement.

cp2017's People

Contributors

codernakul avatar

Watchers

 avatar

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.