Thread: C++ Questions Help

  1. #1
    Registered User
    Join Date
    Oct 2011
    Posts
    2

    Unhappy C++ Questions Help

    1) Write a program that accepts the minutes worked from a user and converts it into hours and
    minutes. For example if the user enters 145 minutes, your program should display the value in hours
    and minutes; for example, of 2 hours and 25 minutes. Be sure to use a named constant
    here appropriate.

    2) Write a program that calculates and displays the conversion of an entered numbered of dollar
    (assumed user enter 28.88) into currency denominations-50s, 20s, lOs, 5s and ls. (10).
    Based on the input, the output should be as follow:

    57 50s
    1 20s
    1 10s
    1 5s
    3 1s


    3) Write a program that declares variables to represent the length and width of a room in meter. Use Room as the class name. Assign appropriate values to the variables-for example length=15 and
    width=22.5. Compute and display the floor space of the room in square meter (area= length*width).
    Display more than just a value as output; also displays explanatory text with the value-for
    example, The floor space is 337.50 square meters.

    4) Write a program that prompt the user to enter the year the University was founded, the current

    student population, and the average annual tuition fees and display the information entered
    Sample output may look like below.

    what year was the university founded?
    1978

    how many students go there?
    13600

    what is the annual tuition for your course?
    16880

    the university was founded in year 1978.
    13600 students go to the university.
    the average annual tuition is MYR16880.00
    press any key to continue....

  2. #2
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    You need to ask a specific question. I hope you do not believe someone is just going to do your homework assignment for you.
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  3. #3
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  4. #4
    Registered User
    Join Date
    Oct 2011
    Posts
    2
    GOSH why does everyone think is a ........ing homework assignment and it not an homework assignment its past year papers n i am home studying gosh. and by the way i know whats a homework policy and plagiarism gosh by the way thanks for your help which wasnt even help full i have already finished the questions that i dont know thanks to my friends and lecture for guiding me and correction me. what a non help full website thank your very much bye

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Hey, you can call it whatever you want - the point is, you set yourself up to answer the question and you made ZERO effort to answer it.

    Any random passing bot could just copy/paste questions from anywhere and leave, so why should we spend any effort when you plainly haven't.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. questions....so many questions about random numbers....
    By face_master in forum C++ Programming
    Replies: 2
    Last Post: 07-30-2009, 08:47 AM
  2. C Questions
    By am2007 in forum C Programming
    Replies: 1
    Last Post: 09-30-2007, 12:05 PM
  3. two questions
    By Nero_Martin in forum C++ Programming
    Replies: 3
    Last Post: 09-22-2007, 07:55 AM
  4. Some questions concerning smp and md5
    By keira in forum C Programming
    Replies: 6
    Last Post: 08-31-2007, 03:03 PM
  5. A few questions
    By beene in forum Game Programming
    Replies: 9
    Last Post: 04-18-2007, 10:11 AM