Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: help me write java program

  1. #1
    Junior Member
    Join Date
    Sep 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default help me write java program

    can anyone help me with the following.

    1. Given marks for a class test. Calculate the average, the median; if you are given the total for the test and the pass mark, calculate the number of failures and for each mark, calculate the percentage achieved.

    2. If you are given a string, write out a function from scratch to copy the string and replace all spaces with tabs. If you are given a substring, remove the substring from the original string. The new "string" should be returned as an array of integers of the correct length. The integers represent the ascii code of each character.

    3.Write a program that takes in three integers as parameters.The fist parameter is the year (4 digits), the second is the month from 0 to 11 and the last the day of the month. If these integers represent a birthdate, calculate the current age. Remember the only date function that you can use is to get today's date.

    4.You are given on array of 1's and 0's of length 16.Convert the array into decimal,and hexadecimal numbers.

    5.Write a program that reads through a program file and checks that the program has the correct number of opening and closing brackets.

    6.In a hotel,sheets and pillowcases need to be changed.You must calculate how many sheets and pillowcases the hotel requires to be changed for a given day. The hotel has an environmental policy, bedding is only changed on a day when a new client is checking in, if a client has requested the sheets changed, otherwise 3 days after the last change. For each room in the hotel, you are given the date of check in, the last sheet change date, whether a request for a sheet change is made by the client for the day. You are also given the date for which the information is relevant.


  2. #2
    Administrator copeg's Avatar
    Join Date
    Oct 2009
    Location
    US
    Posts
    5,261
    Thanks
    176
    Thanked 818 Times in 761 Posts
    Blog Entries
    5

    Default Re: help me write java program

    Please see the following link:
    Stuck on Homework? How to Program

Similar Threads

  1. Implementing .txt readfrom and write to in a current program
    By Gthoma2 in forum What's Wrong With My Code?
    Replies: 0
    Last Post: July 18th, 2011, 09:01 PM
  2. Program to read & write the Employee Records
    By arvindk.vij in forum Member Introductions
    Replies: 1
    Last Post: February 11th, 2011, 12:19 AM
  3. Program to read & write the Employee Records
    By arvindk.vij in forum Java Theory & Questions
    Replies: 1
    Last Post: February 11th, 2011, 12:19 AM
  4. how can i write this program
    By lavudyagopi27 in forum Java Theory & Questions
    Replies: 2
    Last Post: September 17th, 2010, 08:11 AM
  5. Someone please help me write a simple program!!!
    By ocean123 in forum Loops & Control Statements
    Replies: 3
    Last Post: June 14th, 2009, 09:46 PM