C/C++

C/C++ Source Code

Free C/C++ Source Code. Download 10 latest C/C++ system's projects with source code for free here.

Water Billing System

Submitted by Seshele on
Water Billing System was aimed to solve problem of water Bill calculations for Maseru and Mafeteng Clients. The reports are produced in the form of written file. Its just a simulation but it works correctly. This programme gives output as 4 files of which 2 files are txt files (Bills and default), and 2 are doc files (Maseru and Mafeteng). Bills file contains information for all clients who

C Program - Working with Sub-arrays

Submitted by davidwachira on
C program with the following specifications : • An array of a variable size (n) • A variable (y) of type integer • The algorithm should divide the array into n/y parts • Calculate the average for each part • Finally find the maximum value among the averages #include /* C Standard Input and Output Library*/ /*Variable declarations*/ int y; /* Declaration of a variable called y of type integer. */

Fibonacci Series in C

Submitted by davidwachira on
A simple implementation of the Fibonacci number series. The Fibonacci series is formed by adding the latest two numbers to get the next one, starting from 0 and 1: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, ... #include /* C Standard Input and Output Library*/ /*Variable declarations*/ int number_of_terms; int pre_term = 0; int post_term = 1; int next_transition; int loop

Coursework Grading Program in C

Submitted by davidwachira on
A program to read data for each student (50) of a course (each line of data consists of the student name, followed by marks (out of 100) obtained in six assignments) , calculate the average mark (out of 50) obtained and output the results under suitable headings. For each student print the name, the six marks, the average and the message pass or fail (use both member operator and arrow operator)

Valid Triangle

Submitted by ashine80 on
This programme will check whether the 3 sides a,b,c of given length will form a Triangle or not ... First we will calculate s=(a+b+c)/2 where a,b,c are the length of given three lines.. Then s(s-a)(s-b)(s-c) then the square root of this . From this we will find Each Angle of supposed triangle. Then we will find a/Sin(A) ,b/sin(B) and c/sin(C) If all are equal then "The 3 lines of lenth a,b,and c

Dictionary using File Processing - C Program

Submitted by davidwachira on
A dictionary written in C that retrieves words from a text file. This is a practical exercise in file processing using text files. If a word that has been searched is not found in the dictionary, it is added at the end. The words in the dictionary are not in alphabetical order. Rather, they are randomly arranged. This is version 2 of a previous Dictionary. Enjoy #include /* C Standard Input and