I need help on my assignment

I need help on my assignment

Page 1 of 1

2 Replies - 684 Views - Last Post: 18 October 2009 - 03:56 AM Rate Topic: -----

#1 premck83  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 18-October 09

I need help on my assignment

Post icon  Posted 18 October 2009 - 01:40 AM

1. Construct a program that is capable of printing the multiplication table for two variables. For example if the user enters x as 5, and y as 6, the multiplication table that will be printed out is as follows:

1*6=6
2*6=12
3*6=18
4*6=24
5*6=30

Should the user enter x=4 and y=3, the multiplication table that will be generated is as follows:

1*3=3
2*3=6
3*3=9
4*3=12

x and y are integer variables entered by the user during runtime.
---------------------------------------------------------------------------------

2. Write a program to store the 5 names of students: Ali, Ahmad, Ah Chong, Muthu and Ramasamy in an array. By referencing the array, print out the second name that you typed into the array earlier.

-----------------------------------------------------------------------------------

Modify the program in 2.) by reversing the third name entered into the array. Example, if the third name entered was “Ah Chong”, the result should be “gnohC hA”.

Is This A Good Question/Topic? 0
  • +

Replies To: I need help on my assignment

#2 syfran  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 83
  • View blog
  • Posts: 1,103
  • Joined: 12-July 09

Re: I need help on my assignment

Posted 18 October 2009 - 02:18 AM

[rules][/rules]
Was This Post Helpful? 0
  • +
  • -

#3 TheAKB  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 2
  • View blog
  • Posts: 59
  • Joined: 11-November 08

Re: I need help on my assignment

Posted 18 October 2009 - 03:56 AM

Hey are you doing BTEC for IT Practioners only asking as i was last year andhad an assignment just like that lol.

Anyways with your problem like he said show us your code and we can help you :D

Cheers

This post has been edited by TheAKB: 18 October 2009 - 03:57 AM

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1