Coder Social home page Coder Social logo

csc212's Introduction

Assignments

Assignment 1

  • Develop a c++ program that computes the total payment for purchases made by a customer given the following discount amount based on the following purchases.

  • If amount is b/w 200k and 1m, discount = 3%.

  • If amount is above 1m, discount = 7%.

Assignment 2

  • Modify assignment 1 in such a way that the user can use it for as many customers as possible without shutting down the program.

Exercise 1

  • Write a function that determines the number of days in February, given that only leap years have 29 days in Feb, otherwise it's 28 days.

Exercise 2

  • Write a function that changes a 24-hour time format to a 12-hour format.

Assignment 3

Question 1

  • Write a C++ program that computes the area and perimeter of any time of parallelogram of choice.
  • Define separate functions for the computation of the area and perimeter.

Question 2

  • Write a C++ function that computes the standard deviation of four scores, and write a function to call it.

Assignment 4

  • Write a recursive function that displays a set of integers in the reverse order the integers are entered.

Assignment 5

  1. Develop a full program for all functions developed today and display the result.
  2. Write a function that determines the product of two matrices, then write a program that invokes the function.

Assignment 6

  • Define a class for employee, person, permanent staff and casual staff.

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.