Code Monkey home page Code Monkey logo

cpp's Introduction

Cpp

C++ Projects

C++ Project number 1: Ccy converter.

The currency converter asks the user to input the amount of

  • EURs
  • CHFs
  • GBPs the user has, along with the exchange rates for
    • EUR_USD
    • CHF_USD
    • and GBP_USD and splits out the equivalent amount in US$.

C++ Project number 2: GPA calculator

The GPA calculator calculates the GPA of a student for a semester for 3 courses (mathematics, biology and physics) based on:

  • grades from A+ to F

  • and ECTS points

  • The user defines the grades on a range from A+ to F and the ECTS points

  • the total GPA is calculated by the formula of

    GPA = ((math_ects * math_grade_in_numbers) + (biology_ects * biology_grade_in_numbers) + (physics_ects * physics_grade_in_numbers))/(math_ects+biology_ects+physics_ects);

C++ Project number 3: RockpaperScissor game

One round of RockpaperScissor game:

  • The user chooses Rock, Paper or Scissor and
  • the computer chooses a random of the three (corresponding to a random number).
  • an If loop compares user input with random computer number and splits out the text who won/lost.

C++ Project number 4: Using function incl. a loop

Let us solve a simple problem:

  • We are given 3 lines of input.
  • Each line consists of 2 space separated integers - A and B
  • For each input - you need to compute and output the following on separate lines:
    • A + B
    • A^2 + 2*AB + B^2

C++ Project number 5: The Fahrenheit Celsius converter using functions

  • The user enters the direction he wants to convert based on the printed out menu.
  • The user enters the amount of grade he wants to convert.
  • The result gets printed out to the console.

C++ Project number 6: The product purchase price calculator using functions

  • The purchase price calculation for a product is based on Listenpreis (list price), der Menge (quantity), dem Skonto (discount), dem Rabatt (discount2) und den Versandkosten (shipping costs)
  • The user enters the all variables, the discounts in %.
  • The result gets printed out to the console.

C++ Project number 7: Tic Tac Toe.

  • The user decides who starts the game (The user or the computer).
  • Grid 3x3 is drawn and defined by rows and columns
  • Game ends with draw or win or lose.

C++ Project number 8: Calculator.

  • Calculator printed out to the console
  • User choosing number1, number2
  • User choosing operation +,-,*,/
  • Calculator printing out the result to the console
  • Calculator asking user for new input as long as user would like to perform a new calculation (while break loop)

C++ Project number 9: Random number guessing game between 0-9.

  • The computer generates a random number between 0-9.
  • The user keeps guessing until he/she didn't guess right.

C++ Project number 10: Odd/Even Number

  • The user enters a number
  • The computer decides if the number is even or not (% 2 != 0).
  • The user can enter a new number if he/she wishes to continue the analysis (y/n).

C++ Project number 11: Factorial Calculation

  • The user enters a number
  • The computer calculates the factorial and print it out.
  • The user can enter a new number if he/she wishes to continue the calculation with a new number (y/n).

C++ Project number 12: Reverse Text.

  • The user enters a string text (char doesnt work for reversal).
  • The computer reads out the reversed text.

cpp's People

Contributors

noracsiszar 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.