Total members 11893 |It is currently Tue Nov 05, 2024 1:29 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





There are two arrays of length 50 each. Each of these has initially m (m<50) elements. First array contains names and the second array contains numbers such that jth name in arr1 corresponds to jth number in arr2. Write a program which asks the user to enter a name prints its corresponding number in arr2. And if that name is not present in arr1, ask the user to input a number and then if the size permits, add the name and number to arr1 and arr2 respectively at the end and update the size(m) list.




Author:
Newbie
User avatar Posts: 2
Have thanks: 0 time

Can you please post the code that we can check it ?

_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 2 posts ] 

  Related Posts  to : java program
 java program     -  
 email through JAVA program     -  
 java chat program.     -  
 Executing a Java Program     -  
 compiling and getting of a java program     -  
 Elements of a Java Program     -  
 Java Chat Program between two computers     -  
 Need Java program for display the CPU usage     -  
 Java Program for communicate PC and Mobile     -  
 uploading text file to java program     -  



cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com