User Profile
Collapse
Profile Sidebar
Collapse
alireza6485
Last Activity: Apr 18 '10, 06:21 PM
Joined: Jan 24 '09
Location:
-
Please help me to modify my code...
Hi,
I have the following code,it prints out a 5 by 5 matrix and puts "-" in each location.
I need to ask user for the number of * they like to put in the matrix and based on the number they enter replace a random "-" by a "*".
It would be great if you modify my code and help me:
Here is an example:
How many * you want in the matrix?
3
-*---
*----
----*... -
C to Java...
Hi,
Could sme one please translate the following code from C to Java for me?
Code :
Code:/* Polytechnic University of the Philippines Sta.Mesa, Manila College of Computer Management and Information Technology A CASE STUDY in DATA STRUCTURES AND ALGORITHM */ #include<stdio.h> #include<conio.h>
-
Source Code for Game of Life...
Hi,
Do you know any website that has the source code for Game of life???
I tried looking for it on google and all I get is the applet code.I am looking for Java application code.
Thanks -
Do While loop...Please take a look at my code...
Hi,
Could you please rewrite the program for me?I tried my best and the program still does not do what it has to do.
I have to write a code that generates random speed and distance .it ask the user for angle and start calculating the vertical and horizantal positions.
when the vertical position gets negative program should stop and check the horizantal position and print out different messeges based on the value... -
Using class and methods for updating information...
Hi,Please help me to answer this question.I tried my best and I am not sure if my code is good or useless.
I am writing a program that calculates projectile motion.
so the ball is thrown with initial speed ,angle in postion x=0 and v=0
location and vertical velocity are changing while horizental velocity is constant.DELTA= 0.01 and G=9.8
the formulas are :
The formula for updating the y-position is y = y + vy * DELTA... -
Why does not my Do-While work...
Hi,
This program prints Hi and ask the user "Print again" if user types"yes" the program should priny "Hi" and ask the question again.
This is the code I wrote,for some reason the program does nothing when the user enter "yes",Pleas e fix the problem for me.
Code:import java.util.Scanner; public class sample { public static void main(String [] args) {
Last edited by Frinavale; Oct 15 '09, 03:28 PM. Reason: Please post code in [code] ... [/code] tags. Added code tags. -
-
Polymorphism ....Up-casting ....need help to understand a code....
Hi,
can u help me with polymorphism and up-casting please.
Bipeds scream
birds fly
bird bd =new bied;
Bipeds bp
bp=bd(upcasting )//what does this line do?is it saying that the biped we have is a bird?
bp.scream
bd.scream
bd.fly
bp.fly (ERror) // why there is an error???bp=bd should not bp acts the same as bd??? -
Can you please help me with Abstract and Interface...
Hi,
Can you please help me with my assignment.I coded it and it runs I just need someone to help me a bit.
The behaviour of monekys and human beings are Similar (Breeding and breathing are Identical and walking ,communication and eatng are common but non-identical)here is my code:
Code:using System; using System.Collections.Generic; using System.Text; namespace Project1 { public
-
-
No overload for method 'Formula1'takes'1' arguments....
Hi would you please help me to fix this error...Thank a lot.
Code:using System; using System.Threading; namespace Car { class UseMyCar2 { static void Main(string[] args) { Car myFirstCar = new Car("Toyota"); Formula1 mySecondCar = new Formula1("Formula1"); //this is where i get the error
-
what is happening with my program output
I run the following code
Code:
Code:int i; int j=2 i=j+3 int k=i/2 k++ k=i*j+1 Console.Write..... Console.Write..... Console.Write..... i=j<<2 Console.Write.... int L=k+1 j=j+1 k=i*j+1 Console.Write... Console.Write... Console.Write... Console.Write...
Code:i=5 j=2 k=11 i=8
-
C# ...1 beep 1 second silence
I need to write a C# program that asks for a pattern and for each pattern beeps one and goes silence for 1 second.
This is my code:
for (int i=0;i< pattern; i++)
{
Console.Beep();
*************** ** //I have no idea what to put for 1 sec of silence
}
any suggestions??? -
Help please... instance reference; qualify it with a type name instead
Hi:
I have 3 class/Methods:
the first one:just beeps
the second one:ask the user to Enter the number of beep
The last one:Activate and runs.
I get the following Error:"instance reference; qualify it with a type name instead "
Can you please re-write the code and fix it for me,Thanks.
First One:
[code=c#]
using System;
public class AmbulanceSiren
{
... -
Help Please...Sub Cipher C#...Arrays and nested for loops
I am a C# begginer.I have to write a program that asks the user to enter a word,then it encodes it and after encoding it ,it decodes it again(by using Arrays to make sure that weget the right answer).
my code runs the encoding part ,but the decoding it outputs is not the same as what user enters ,Can you please fix the code for me(I have been working on it for 2 days now ,and no results:( )
[code=c#]
using System;
public... -
help please...Unreachable code detcted...
Hi,
I am getting "Unreachabl e code dected " for my cariable n.Can you please let me know how to fix the problem.Thanks
Console.WriteLi ne();
Console.Write(" Decoded word :");
for (int k = 0; k <len; k++)
{
for (int m = 0; m < 26; m++)
{
for (int n = 0; n < 26;n++ )
... -
I figure it out.All i needed to do was finding the length of the string and use in in the loop,Leave a comment:
-
C#...Writing a progrm that reverse the string name you enter...
Hello every one:
I have to write a program that reverse and displays the charactors of a pharase typed from the keyboard.
This is what I wrote:Code:using System; public class YourName { public static void Main(string[] args) { Console.WriteLine("Enter a word"); string word = Console.ReadLine(); for (int i; i >0; i--) {
No activity results to display
Show More
Leave a comment: