11 Topics

Member Avatar for
Member Avatar for sugumarclick

Hi Daniwebbers, can someone help me How to figure out the depth of a dynamic hash (hash of hashes) in perl. If it has consistent structure, we can traverse through while/foreach and find out the depth. Could anyone point me the right and best way to figure it out. my …

Member Avatar for Igor_3
0
744
Member Avatar for Ivzirnalsradeys

a) Program code is often written using procedures. Give THREE advantages of using procedures in programming. b) Write an algorithm (pseudocode or flowchart) for a procedure to validate the input of a date in February in any year. The date should be input in the form ddmmyyyy e.g. 07021998 You …

Member Avatar for rubberman
-2
232
Member Avatar for hypernova

Hi all !! I am new to Fortran. Please see the following code: program exp_realloc implicit none integer,allocatable,dimension(:,:):: array integer::i,j allocate(array(3,3)) write(*,*)size(array,1)," ",size(array,2) do i=1,3 do j=1,3 array(i,j)=i*j write(*,*)array(i,j) enddo write(*,*) enddo CALL func(array) end program exp_realloc subroutine func(array) integer,dimension(:,:),intent(in)::array integer::i,j write(*,*)"********* Inside subroutine **********" write(*,*)size(array,1)," ",size(array,2) write(*,*)array(1,1) write(*,*)array(1,2) write(*,*)array(2,1) …

0
132
Member Avatar for zxzniczxz

using c++ and SubRoutine. Problem1: Design a function-oriented program that computes the total of the squares from 1 to n which n is supplied by a user. ex. 12345=1+4+9+16+25=55 Problem2:Design a function-oriented program that computes the factorial value of an input N by a user ..Display the computed factorial value …

Member Avatar for hag++
0
147
Member Avatar for Aldoody

This is the program I'm working on and I'm completely lost A Pythagorean triple is a set of numbers A, B, C such that A2 + B2 = C2. Write a subroutine that determines if 3 given numbers are a Pythagorean triple. The subroutine should print out an appropriate comment …

Member Avatar for ztini
0
112
Member Avatar for japtech

Hi All, Ok to make it clear from the start I'm a 'noob' with anything complex in computing. Currently I have been asked to look into using the Linpack Benchmark Software to run on computer workstations for Energy Star performance testing. I have spent the last few weeks combing the …

0
147
Member Avatar for Pundia

Hello, I'm new to this forum. Right now I'm developing a software based on Genetic Algorithms. I really have almost none experience, and I have a question. First of, this software is a prototype, a template. So the user can choose between a lot of choices (types of crossing and …

Member Avatar for Oxiegen
0
212
Member Avatar for Griff0527

Another new coder here, and yes, I am a student. I am NOT asking for a solution, but I am asking for guidance to point me in the right direction. I am supposed to write a code that receives input from the terminal as to the temperature in Fahrenheit and …

Member Avatar for Griff0527
0
2K
Member Avatar for flashkarni

hello, i'm having trouble printing arrays to file. each time i run this code, i get only two results max. if the array has 2 genres, i get them but no languages. if the array has 1 genre i get it and only 1 language. if the array has more …

Member Avatar for d5e5
0
127
Member Avatar for dor.marchan

Hi All, I'm a student who really need help in this problem...what I need to do is to call/run/execute a subroutine using a varaible name from a subroutine. [code] Public Sub Main(ByVal subName as String) Call subName ' subName may be contain the value AAA or BBB End Sub '=========================== …

Member Avatar for dor.marchan
0
5K
Member Avatar for orsodani

Hi everybody I have've been asked to do something but I can get only to a point and I am now stuck. Please help. I have written a Sub in VBA for Excel 2003 (see below) in which the top cell of a range (WorkRange) is initially set at Cells(1,2), …

0
154

The End.