Pinned Repositories
A-phone-company-bill
A phone company bills the customer in a specific policy so that customers with heavy usage pay less per minute. According to this policy, if customer spoke x minutes in total for the month:
All-even-squares-between-1-and-n
Write a program that prompts the user to enter a number n, then prints all even squares between 1 and n.
Area-of-triangle
Dİsplays the area of a triangle given its base and height
Area-of-triangle-data-from-user
Displays the area of a triangle such that it takes the base and height values from the user
Area-of-triangle-if-
The area of a triangle with sides a, b and c can be computed using Heron’s formula. area = s(s − a)(s − b)(s − c) where s = (a + b + c)/2.
Area-of-triangle-semi-perimeter-
the area of the triangle can be calculated with the following formula: 𝐴𝑟𝑒𝑎 = √𝑠(𝑠 − 𝑎)(𝑠 − 𝑏)(𝑠 − 𝑐) using semi-perimeter
Converting-decimal-to-binary
Write a C program that converts a decimal number into its binary representation. Sample Run: Enter a number: 44 The binary representation for 44 is: 101100
Converting-km-from-miles
One mile equals 1.609 kilometers. Write a program that takes the user input distance in miles and converts it to kilometers
expert-lamp
Write a C program that takes the speed of a car (in km/h) as an integer input and determines whether the car is going very slowly, slowly, medium speed, fast speed or very fast speed.
Find-maximum-number
Write a C program that finds the largest in a series of numbers entered by the user. The program must prompt the user to enter numbers one by one. When the user enters 0 or a negative number, the program must display the largest nonnegative number entered.
iclalakman's Repositories
iclalakman/A-phone-company-bill
A phone company bills the customer in a specific policy so that customers with heavy usage pay less per minute. According to this policy, if customer spoke x minutes in total for the month:
iclalakman/All-even-squares-between-1-and-n
Write a program that prompts the user to enter a number n, then prints all even squares between 1 and n.
iclalakman/Area-of-triangle-if-
The area of a triangle with sides a, b and c can be computed using Heron’s formula. area = s(s − a)(s − b)(s − c) where s = (a + b + c)/2.
iclalakman/Area-of-triangle-semi-perimeter-
the area of the triangle can be calculated with the following formula: 𝐴𝑟𝑒𝑎 = √𝑠(𝑠 − 𝑎)(𝑠 − 𝑏)(𝑠 − 𝑐) using semi-perimeter
iclalakman/Converting-decimal-to-binary
Write a C program that converts a decimal number into its binary representation. Sample Run: Enter a number: 44 The binary representation for 44 is: 101100
iclalakman/expert-lamp
Write a C program that takes the speed of a car (in km/h) as an integer input and determines whether the car is going very slowly, slowly, medium speed, fast speed or very fast speed.
iclalakman/Find-maximum-number
Write a C program that finds the largest in a series of numbers entered by the user. The program must prompt the user to enter numbers one by one. When the user enters 0 or a negative number, the program must display the largest nonnegative number entered.
iclalakman/Gpa-Calculator-in-C
Gpa Calculator in C programming using pointers
iclalakman/Heart-Rate
The formula for calculating the maximum heart rate in beats per minute is 220 minus your age in years. Your target heart rate is a range that is between 50 - 85 of your maximum heart rate. Write a program that takes the user’s birthday and the current day (in terms of day, month and year).
iclalakman/Hospital-patients-
#of treated and #of untreated patients
iclalakman/iclalakman
iclalakman/Loop-of-10-number
Write a program using a loop to print out the following sequence exactly, including commas. Sample Run: 10, 9, 8, 7, 6, 5, 4, 3, 2, 1
iclalakman/Loop-of-10-numbers
Write a program using a loop to print out the following sequence exactly, including commas: Sample Run: 10, 9, 8, 7, 6,\n 5, 4, 3, 2, 1
iclalakman/Mortgage-Calculator
Mortgage calculator is used to estimate customer’s mortgage payments. Write a program that gets customer’s account number, the mortgage amount, the mortgage term and the interest rate, then your program will compute the total interest and required monthly payment.
iclalakman/not-finished
iclalakman/passed-by-references-
iclalakman/Pointers--Multidimensional-Arrays-
iclalakman/Prime-number-or-not
The following is an algorithm that determines whether or not a given a number n is prime. Write a C Program that implements this algorithm. Your program needs to get an integer number (n) from the user and will inform the user if it is a prime number or not.
iclalakman/Random-grades-to-given-students-using-pointers
Write a program that asks the user for the number of students, n, in the class, dynamically allocates enough space in memory for n grades and generates n random grades (using rand()) between 0 and 100 (minimum 0 and maximum 100) which it stores in this space. Display the stored grades.
iclalakman/Random-number-in-an-array
Create an array of 10 elements and initialize it with integer random numbers in your program. Then ask user to enter a number and search this number in the array you have created.
iclalakman/Random-Number-in-an-array---Create-your-own-array
Random Number in an array - Create your own array
iclalakman/Reverse-of-a-number
Write a C program that prints the digits of the decimal representation of an integer value in reverse order, i.e. the digits will be printed from least to most significant digit.
iclalakman/Right-triangle-or-not-if-
A triangle can be determined to be a right triangle if the side lengths are known. If the lengths satisfy the Pythagorean Theorem (a2+b2=c2) then it is a right triangle. Write a C program that gets the sides of triangle, a,b,c and check whether the triangle is right-angled or not.
iclalakman/Salary-of-salesperson-if-statements-practice-
iclalakman/Semitones-if-statements-practice-
iclalakman/Sentinel-loop
Write a program that calculates and prints the average of several integers. Assume that the last value to read with scanf() is sentinel number 9999.
iclalakman/Sum-of-two-matrices-using-pointers
Write a program that includes a function that takes three int type array input arguments and their corresponding size, and sum the corresponding elements of the first two arrays, and put the results into the third array. In your program make sure that you get the size of the arrays from the user and creates the arrays in the main.
iclalakman/The-straight-line-distance-of-two-points
The straight line distance of two points (x1, y1) and (x2, y2) in a cartesian plane can be calculated by the formula 𝑑=√(𝑥1−𝑥2)2+(𝑦1−𝑦2)2
iclalakman/Toss-a-coin
Toss a coin.
iclalakman/Toss-a-coin-1000-times
Toss a coin 1000 times