User Tag List

Results 1 to 7 of 7

Thread: Need Urgent Solution of This Problem In C Language

  1. #1
    Member
    • Frankenstein's Gadgets
      • Motherboard:
      • GIGABYTE GA-B75M-D3H (rev1.1)
      • CPU:
      • Intel Pentium Processor G860
      • RAM:
      • ADATA 4GB AD3U1333W4G9-R
      • Hard Drive:
      • Western Digital WD Blue WD5000AAKX
      • Graphics Card:
      • SAPPHIRE HD 7770 GHz Edition OC 1GB GDDR5 (v2)
      • Display:
      • ViewSonic VX2270S-LED
      • Sound Card:
      • Realtek HD ALC887
      • Speakers/HPs:
      • Creative SBS A235
      • Keyboard:
      • oVo K-8002
      • Mouse:
      • A4Tech OP-620D
      • Power Supply:
      • COOLER MASTER GX 450W
      • Optical Drive:
      • ASUS DRW-24B5ST/BLK/G/AS
      • USB Devices:
      • HP Deskjet 1000 Printer - J110a, Canon CanoScan LiDE110, WIMAX USB MODEM
      • UPS:
      • PROLINK PRO700C 650VA
      • Operating System:
      • Windows 7 Ultimate x64 SP1
      • Benchmark Scores:
      • Unigine Valley Benchmark 1.0 [ Score: 700, FPS: 16, Min FPS: 10, Max FPS: 30 ]
      • Comment:
      • Bang for the buck
      • Download Speed:
      • 50 kilo BYTE per second
      • Upload Speed:
      • 10 kilo BYTE per second
    Frankenstein's Avatar
    Join Date
    Jun 2012
    Posts
    22

    Default Need Urgent Solution of This Problem In C Language

    1 PROBLEM STATEMENT(S)


    Design and develop a console program to tell the day of the week of any date between 1900 to 2050.


    2 REQUIREMENTS


    (a)Your program will check the following:

    •The year is between 1900 and 2050.

    •The month is in the range 1 and 12.

    •The day is in the range appropriate for that month. For months other than February, the range of days will be from 1 to 30 or 31 days. The range of days for February is between 1 and 28 or 29 depending on whether the year is a leap year or not.


    (b)All of the ranges are inclusive. You will first prompt the user to enter the year and then check whether the year is in the range specified. If it is not, then you will keep prompting the user to enter the correct year. After that you will prompt the user to enter the month and run a similar check. Lastly, you will prompt the user to enter the day and run a check. For example, the input 29, 2, 2012 is valid, but the input 29, 2, 1900 is not, because 2012 is a leap year and 1900 is not a leap year.


    Sample session are as below:

    Enter year: 1960

    Enter month: 12

    Enter day: 12

    The day is Monday.

    Continue (y/n): y

    Enter year: 2014

    Enter month: 9

    Enter day: 12

    The day is Friday.

    Continue (y/n): n


    (c)You should design your program to perform the required tasks modularly and to in- crease code re-usability. Hence, your program should:

    (i)create one function for each activity ;

    (ii)make use of parameter(s) passing; and

    (iii)make use of return value(s).


    (d)Applying appropriate control structures to handle program logic in your program:

    (i)Includes at least two (2) different types of selection or multiple selection structure; and

    (ii)Includes at least two (2) different types of repetition structures

  2. #2
    Member
    • Syeef's Gadgets
      • Motherboard:
      • ASRock Z77 Extreme6 | Corsair Carbide Air 540 Case
      • CPU:
      • Intel i7 3770k 3.50GHz | Corsair H110 280mm Water Cooler
      • RAM:
      • Corsair Vengeance 8GB (4x2) DDR3 1600MHz
      • Hard Drive:
      • WD 1TB Blue Sata III
      • Graphics Card:
      • MSI GTX680 Twin Frozr III OC
      • Display:
      • Samsung 22-inch LED 1080p
      • Sound Card:
      • N/A
      • Speakers/HPs:
      • Creative SBS 2.1
      • Keyboard:
      • Tt eSports Knucker
      • Mouse:
      • Tt eSports Theron Laser 5700 DPI
      • Controller:
      • Logitech F310 Gamepad
      • Power Supply:
      • Corsair CS750W Modular 80 Plus Gold
      • Optical Drive:
      • Samsung DVD-RAM 24x Sata
      • USB Devices:
      • Transcend JF780 32GB USB 3.0
      • UPS:
      • 650VA
      • Operating System:
      • Windows 8.1 Pro x64 with Media Center
      • ISP:
      • UTurn Broadband | Banglalion WiMAX
      • Download Speed:
      • ~15 Mbps | 128 KB/s
      • Upload Speed:
      • ~5 Mbps | 32 KB/s

    Join Date
    Jun 2011
    Location
    Dhaka
    Posts
    882

    Default

    I don't think we should help him cheat or do his homework for him...
    Quran 6:159 - there is no sunni, shia under Islam.

    NOTE: I'm leaving this forum.. do not quote, tag, mention or PM me... you won't get a response.

  3. #3
    Forum Staff
    • aayman's Gadgets
      • Motherboard:
      • MSI X370 Gaming Pro
      • CPU:
      • Ryzen 1700 @3.7GHz (H100i v2)
      • RAM:
      • 2x8GB Trident Z 3600Mhz
      • Hard Drive:
      • 960 EVO 250GB + SanDisk SSDX 960GB + 1TB WD Black
      • Graphics Card:
      • EVGA 1070 FTW
      • Display:
      • ASUS PG279Q + Dell U2312HM
      • Sound Card:
      • Creative Sound Blaster Zx
      • Speakers/HPs:
      • Sennheiser PC350SE + Phillips SPH9500
      • Keyboard:
      • CM QuickFire Stealth
      • Mouse:
      • FinalMouse Scream One | Logitech G403
      • Controller:
      • Steam Controller
      • Power Supply:
      • Corsair AX850
      • Operating System:
      • Windows 10 1703
      • ISP:
      • AmberIT
    aayman's Avatar
    Join Date
    Jul 2008
    Posts
    13,790

    Default

    Quote Originally Posted by Syeef View Post
    I don't think we should help him cheat or do his homework for him...
    This isn't even close to cheating and you can always help with hw in a productive way, ie not just give the answer.

    There are official sites dedicated to homework help, (coursehero.com) even yahoo answers work for a lot of things.

  4. #4
    Member
    • Syeef's Gadgets
      • Motherboard:
      • ASRock Z77 Extreme6 | Corsair Carbide Air 540 Case
      • CPU:
      • Intel i7 3770k 3.50GHz | Corsair H110 280mm Water Cooler
      • RAM:
      • Corsair Vengeance 8GB (4x2) DDR3 1600MHz
      • Hard Drive:
      • WD 1TB Blue Sata III
      • Graphics Card:
      • MSI GTX680 Twin Frozr III OC
      • Display:
      • Samsung 22-inch LED 1080p
      • Sound Card:
      • N/A
      • Speakers/HPs:
      • Creative SBS 2.1
      • Keyboard:
      • Tt eSports Knucker
      • Mouse:
      • Tt eSports Theron Laser 5700 DPI
      • Controller:
      • Logitech F310 Gamepad
      • Power Supply:
      • Corsair CS750W Modular 80 Plus Gold
      • Optical Drive:
      • Samsung DVD-RAM 24x Sata
      • USB Devices:
      • Transcend JF780 32GB USB 3.0
      • UPS:
      • 650VA
      • Operating System:
      • Windows 8.1 Pro x64 with Media Center
      • ISP:
      • UTurn Broadband | Banglalion WiMAX
      • Download Speed:
      • ~15 Mbps | 128 KB/s
      • Upload Speed:
      • ~5 Mbps | 32 KB/s

    Join Date
    Jun 2011
    Location
    Dhaka
    Posts
    882

    Default

    Quote Originally Posted by aayman View Post
    This isn't even close to cheating
    He posted entire question... saying, "Need Urgent Solution of This Problem" what else do you think it is?
    Quran 6:159 - there is no sunni, shia under Islam.

    NOTE: I'm leaving this forum.. do not quote, tag, mention or PM me... you won't get a response.

  5. #5
    Forum Staff
    • aayman's Gadgets
      • Motherboard:
      • MSI X370 Gaming Pro
      • CPU:
      • Ryzen 1700 @3.7GHz (H100i v2)
      • RAM:
      • 2x8GB Trident Z 3600Mhz
      • Hard Drive:
      • 960 EVO 250GB + SanDisk SSDX 960GB + 1TB WD Black
      • Graphics Card:
      • EVGA 1070 FTW
      • Display:
      • ASUS PG279Q + Dell U2312HM
      • Sound Card:
      • Creative Sound Blaster Zx
      • Speakers/HPs:
      • Sennheiser PC350SE + Phillips SPH9500
      • Keyboard:
      • CM QuickFire Stealth
      • Mouse:
      • FinalMouse Scream One | Logitech G403
      • Controller:
      • Steam Controller
      • Power Supply:
      • Corsair AX850
      • Operating System:
      • Windows 10 1703
      • ISP:
      • AmberIT
    aayman's Avatar
    Join Date
    Jul 2008
    Posts
    13,790

    Default

    Quote Originally Posted by Syeef View Post
    He posted entire question... saying, "Need Urgent Solution of This Problem" what else do you think it is?
    I've seen worse ways, this is pretty normal. Now if you want to help then help otherwise then just stay out of it.

    And stop the useless arguments guys (not pointing at you Syeef). Next OTs will get infractions.

  6. #6

    Default

    Quote Originally Posted by Syeef View Post
    I don't think we should help him cheat or do his homework for him...
    could be an exercise? he might not find any solution that's why posted here.............accusing for cheating is harsh without knowing the real reason from him
    Last edited by slayer420; October 16th, 2014 at 06:25.

  7. #7

    Default

    check PM @Frankenstein.

Similar Threads

  1. Dell Inspiron n5520 Webcam problem!! Need solution badly :/
    By QuadStorm in forum Technical Support
    Replies: 0
    Last Post: February 20th, 2014, 18:42
  2. Replies: 0
    Last Post: April 15th, 2013, 23:47
  3. Replies: 6
    Last Post: October 1st, 2009, 07:34
  4. [Solution] Problem playing WCG '08 demos
    By SenSeiFAR in forum CS 1.6
    Replies: 1
    Last Post: March 3rd, 2009, 06:06
  5. strange problem....any solution?
    By saadbillah in forum Older NFS Games
    Replies: 6
    Last Post: November 16th, 2008, 22:38

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 0.19315 seconds with 14 queries.