Skip to content

Solutions of all questions of book - "Fundamentals of Computer programming with C# Nakov"

Notifications You must be signed in to change notification settings

ankitminz/SolutionOfFundamentalsOfComputerProgrammingWithCSharpNakov

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solutions of Fundamentals of Computer Programming with C# by Svetlin Nakov

These are my solution of exercise problems of book Fundamentals of Computer Programming with C# by Svetlin Nakov. For original solutions and book see this github repository.

Tools Used

  • Visual Studio 2022, .NET 6
  • Visual Studio 2019, .NET 5

Solutions

Note - You will not see using directives in source code of console programs made using .NET 6 in Visual Studio 2022 because they are generated automatically like this. To know more about it see - https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/program-structure/top-level-statements

Chapter 1

  1. Hello World
  2. Modified
  3. My Name
  4. Nums
  5. Current Date and Time
  6. Square Root
  7. Sequence
  8. Age Manipulation

Chapter 2

  1. Declaring Variables
  2. Declaring Real Nums
  3. Compare Real Nums
  4. Initialize Int
  5. Declaring and Initializing Char
  6. Is Male
  7. Concatenate
  8. Type Casting
  9. Using Double Quotes
  10. Heart
  11. Isosceles Triangle
  12. Employee Data
  13. Swap Values

Chapter 3

  1. Odd or Even
  2. Divisible by Both Five nd Seven
  3. Third Digit
  4. Third Bit
  5. Area of Trapezoid
  6. Perimeter and Area of Rectangle
  7. Weight on Moon
  8. Within Circle
  9. Within Circle and Outside Rectangle
  10. Four Digit Num Manipulation
  11. Bit on Position P
  12. Bit Checker
  13. Bit Manipulation
  14. Primality Checker
  15. Exchange Some Bits
  16. Exchange Bits Expression

Chapter 4

  1. Sum three number
  2. Perimeter and area of circle
  3. Company info
  4. Number formatting
  5. Divisible by five
  6. Greatest number
  7. Sum five nums
  8. Greatest of five nums
  9. Sum of n nums
  10. One to n
  11. Fibonacci sequence
  12. Sum of sequence

Chapter 5

  1. Exchange
  2. Product sign
  3. Greatest
  4. Descending order
  5. Digit in word
  6. Roots of quadratic equation
  7. Another greatest
  8. Do some stuff
  9. Subsets with sum zero
  10. Bonus points
  11. Num to words

Chapter 6

  1. Numbers from one to n
  2. Divisible by 3 and 7
  3. Find smallest and largest number
  4. Cards
  5. Sum of first n members of fibonacci series
  6. N!/K!
  7. N!*K!/(N-K)!
  8. Catalan number
  9. Sum of series
  10. Matrix
  11. No. of zeros in a factorial
  12. Decimal to binary
  13. Binary to decimal
  14. Decimal to hexadecimal
  15. Hexadecimal to decimal
  16. 1 to n in random order
  17. LCM and GCD
  18. Spiral Matrix

Chapter 7

  1. Create and print array
  2. Array checker
  3. Compare array
  4. Max sequence of consecutive elements
  5. Max sequence of consecutive increasing integers
  6. Max sequence of non-consecutive increasing integers
  7. Consecutive elements with max sum
  8. Selection sort
  9. Sequence with max sum
  10. Most frequent element
  11. Sequence with certain sum
  12. Matrix
  13. Max sum platform
  14. Longest sequence of equal string
  15. Letters to indices
  16. Binary search
  17. Merge sort
  18. Quick sort
  19. Prime numbers
  20. Subset with sum S (repetition allowed)
  21. Subset of K elements with sum S (without repetition)
  22. Sorted remaining array
  23. Permutation
  24. Combination
  25. Largest area

Chapter 8

  1. Convert some +ve decimal nos. to binary
  2. Convert +ve binary to hex and decimal
  3. Convert +ve hex to binary and decimal
  4. Decimal to binary and hex (4 and 6 were done together)
  5. Binary to decimal and hex (5 and 9 were done together)
  6. Decimal to binary and hex
  7. Hex to binary and decimal (7 and 8 were done together)
  8. Hex to binary and decimal
  9. Binary to decimal and hex
  10. Binary to decimal using horner scheme
  11. Roman to arabic
  12. Arabic to roman
  13. Base converter
  14. Precision
  15. Float representation

Chapter 9

  1. Greeting Method
  2. Find Max
  3. English name
  4. Frequency
  5. Check
  6. Greatest
  7. Reverse Digits
  8. Adding big numbers
  9. Sorting array
  10. Factorial
  11. Tasks
  12. Adding polynomials
  13. Multiplying polynomials

Chapter 10 (in progress)

  1. All Paths in Maze
  2. Shortest Path in Maze
  3. Not done
  4. Largest Area of Neighbouring Passable Cells

Chapter 11

  1. Is Leap Year
  2. Ten Random Nums
  3. Which Day of the Week is Today
  4. Time Since Computer is Started
  5. Find Hypotenuse
  6. Area of Triangle
  7. See My Namespace and Creating and Using Objects
  8. Exercise 8
  9. Calculate Working Days
  10. Sequence of Positive Integer Nums
  11. Random Advertising message

About

Solutions of all questions of book - "Fundamentals of Computer programming with C# Nakov"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages