Skip to content

Alexandru-O/Programming-Challenges

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 

Repository files navigation

Programming Challenges 🤓

C# basic - Table of content

001. Write a C# Sharp program to print Hello and your name in a separate line. ✔️
002. Write a C# Sharp program to print the sum of two numbers. ✔️
003. Write a C# Sharp program to print the result of dividing two numbers. ✔️
004. Write a C# Sharp program to print the result of the specified operations. ✔️
005. Write a C# Sharp program to swap two numbers. ✔️
006. Write a C# Sharp program to print the output of multiplication of three numbers which will be entered by the user. ✔️
007. Write a C# Sharp program to print on screen the output of adding, subtracting, multiplying and dividing of two numbers which will be entered by the user. ✔️
008. Write a C# Sharp program that takes a number as input and print its multiplication table. ✔️
009. Write a C# Sharp program that takes four numbers as input to calculate and print the average. ✔️
010. Write a C# Sharp program to that takes three numbers(x,y,z) as input and print the output of (x+y).z and x.y + y.z. ✔️
011. Write a C# Sharp program that takes an age (for example 20) as input and prints something as "You look older than 20". ✔️
012. Write a C# program to that takes a number as input and display it four times in a row (separated by blank spaces), and then four times in the next row, with no separation. You should do it two times: Use Console. Write and then use {0}. ✔️
013. Write a C# program that takes a number as input and then displays a rectangle of 3 columns wide and 5 rows tall using that digit. ✔️
014. Write a C# program to convert from celsius degrees to Kelvin and Fahrenheit. ✔️
015. Write a C# program remove specified a character from a non-empty string using index of a character. ✔️
016. Write a C# program to create a new string from a given string where the first and last characters will change their positions. ✔️
017. Write a C# program to create a new string from a given string (length 1 or more ) with the first character added at the front and back. ✔️
018. Write a C# program to check two given integers and return true if one is negative and one is positive. ✔️
019. Write a C# program to compute the sum of two given integers, if two values are equal then return the triple of their sum. ✔️
020. Write a C# program to get the absolute value of the difference between two given numbers. Return double the absolute value of the difference if the first number is greater than second number. ✔️
021. Write a C# program to check the sum of the two given integers and return true if one of the integer is 20 or if their sum is 20. ✔️
022. Write a C# program to check if an given integer is within 20 of 100 or 200. ✔️
023. Write a C# program to convert a given string into lowercase. ✔️
024. Write a C# program to find the longest word in a string. ✔️
025. Write a C# program to print the odd numbers from 1 to 99. Prints one number per line. ✔️
026. Write a C# program to compute the sum of the first 500 prime numbers. ✔️
027. Write a C# program and compute the sum of the digits of an integer. ✔️
028. Write a C# program to reverse the words of a sentence. ✔️
029. Write a C# program to find the size of a specified file in bytes. ✔️
030. Write a C# program to convert a hexadecimal number to decimal number. ✔️
031. Write a C# program to multiply corresponding elements of two arrays of integers. ✔️
032. Write a C# program to create a new string of four copies, taking last four characters from a given string. If the length of the given string is less than 4 return the original one. ✔️
033. Write a C# program to check if a given positive number is a multiple of 3 or a multiple of 7. ✔️
034. Write a C# program to check if a string starts with a specified word. ✔️
035. Write a C# program to check two given num where one is less than 100 and other is greater than 200. ✔️
036. Write a C# program to check if an integer (from the two given integers) is in the range -10 to 10. ✔️
037. Write a C# program to check if "HP" appears at second position in a string and returns the string without "HP". ✔️
038. Write a C# program to get a new string of two characters from a given string. The first and second character of the given string must be "P" and "H", so PHP will be "PH". ✔️
039. Write a C# program to find the largest and lowest values from three integer values. ✔️
040. Write a C# program to check the nearest value of 20 of two given integers and return 0 if two numbers are same. ✔️
041. Write a C# program to check if a given string contains ‘w’ character between 1 and 3 times. ✔️
042. Write a C# program to create a new string where the first 4 characters will be in lower case. If the string is less than 4 characters then make the whole string in upper case. ✔️
043. Write a C# program to check if a given string starts with "w" and immediately followed by two "ww". ✔️
044. Write a C# program to create a new string of every other character (odd position) from the first position of a given string. ✔️
045. Write a C# program to count a specified number in a given array of integers. ✔️
046. Write a C# program to check if a number appears as either the first or last element of an array of integers and the length is 1 or more. ✔️
047. Write a C# program to compute the sum of all the elements of an array of integers. ✔️
048. Write a C# program to check if the first element and the last element are equal of an array of integers and the length is 1 or more. ✔️
049. Write a C# program to check if the first element or the last element of the two arrays ( length 1 or more) are equal. ✔️
050. Write a C# program to rotate an array (length 3) of integers in left directi. ✔️
051. Write a C# program to get the larger value between first and last element of an array (length 3) of integers. ✔️
052. Write a C# program to create a new array of length containing the middle elements of three arrays (each length 3) of integers. ✔️
053. Write a C# program to check if an array contains an odd number. ✔️
054. Write a C# program to get the century from a year. ✔️
055. Write a C# program to find the pair of adjacent elements that has the largest product of an given array which is equal to a given value. ✔️

Karan projects - Table of content

001. Find PI to the Nth Digit - Enter a number and have the program generate PI up to that many decimal places. Keep a limit to how far the program will go. ✔️
002. Find e to the Nth Digit - Just like the previous problem, but with e instead of PI. Enter a number and have the program generate e up to that many decimal places. Keep a limit to how far the program will go. ✔️
003. Fibonacci Sequence - Enter a number and have the program generate the Fibonacci sequence to that number or to the Nth number. ✔️
004. Prime Factorization - Have the user enter a number and find all Prime Factors (if there are any) and display them. ✔️
005. Next Prime Number - Have the program find prime numbers until the user chooses to stop asking for the next one. ✔️
006. Numbers 06. Find Cost of Tile to Cover W x H Floor - Calculate the total cost of tile it would take to cover a floor plan of width and height, using a cost entered by the user. ✔️
007. Credit Card Validator - Takes in a credit card number from a common credit card vendor (Visa, MasterCard, American Express, Discoverer) and validates it to make sure that it is a valid number (look into how credit cards use a checksum). ✔️
008. Alarm Clock - A simple clock where it plays a sound after X number of minutes/seconds or at a particular time. ✔️

About

All task from list of Programming Challenges v1.4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages