775 Posted Topics
Re: You could store the numbers in an array of integers then compare them to know which is the highest number | |
Re: You should have used your previous thread for clarifications [B]dsoto[/B] | |
Re: Could you post which part of your code you're having a problem with Also wrap your codes in in code-tags | |
Re: You could store the input numbers in an array and use a loop again to check if the current number has been entered before | |
Re: Correct me if I'm wrong but shouldn't you use fscanf or fgetc since he needs to read a file? | |
Re: It would be better if you explain more elaborately the desired output of your code | |
Re: You could search the forum and learn from others like [URL="http://www.daniweb.com/software-development/c/threads/384385"]this[/URL] | |
Re: Well basically you can't and only a mod can do something about it if they want | |
Re: 1. The instructions are unclear 2. try to post your code | |
Re: You could use ctype.h functions like tolower and toupper | |
Re: You can start by asking two inputs from the user namely the word and letter then use a for loop and if else statement to get the index position example [CODE] for(i=0;i<strlen(word);i++){ if(word[i]==letter){ printf("The position of the letter is %d\n",i); break; } }[/CODE] Of course there are missing pieces of … | |
Re: Does it really need to be a String function? Because you can use a simple for loop , if/else statement and a counter to output the consecutive character Though if (any) String Function is required at all you can use strcmp on each index(a letter) and the index after that(next … | |
Re: When you ask for help here you usually post your code for us to make suggestions and check which part has an error thus should help you figure out how to solve your own code | |
Re: Firstly, When I click on the link it requires a login to continue Also it would be better to put some parts of the code in a new class to make it efficient and lessen the lines of code plus it can help us pinpoint what part of the code … | |
Re: When I compile it the squares that you said that is suppose to be in the top right quadrant appear in the bottom right quadrant [CODE]while(b<51) { g.setColor(new Color(r.nextInt(COLOR), (0), (0))); g.fillRect(MIDX+50, MIDY-50, r.nextInt(48)+2, r.nextInt(48)+2); b++;[/CODE] the y value coordinate in computers has the opposite value from the regular cartesian … ![]() | |
Here is a complete and working code that 1. Adds the numbers(input) to get a sum(output) 2. Sorts the numbers in a descending order Can you post any suggestions on how I can improve my code :) main.c [CODE]#include <stdio.h> #include "header.h" main (){ int sum, x, y, z,choices; input(&x, … | |
Re: can you post which part of your code do you need help or wish to add something? and like what stevanity said, please post what the program is for, its hard for us to pinpoint exactly what part of the code needs a change or something | |
Re: Please post your code so we can see your effort on trying to solve your own problem It's like your asking us for an immediate answer the way you say it :( | |
Re: One thing I notice is that you dont have a main method Is this on purpose? [CODE] public static void main(String[] args){ //... } [/CODE] | |
Re: Here's my Example [CODE] public double calcinsDeduct() { String cmdString = JOptionPane.showInputDialog("M-Male or F-Female: "); if(cmdString == ("M")){ JOptionPane.showMessageDialog(null,"50.00 - deducted"); //shows the message...you can edit this insDeduct = 50.00; } else if(cmdString == ("F")){ JOptionPane.showMessageDialog(null,"100.00 - deducted"); insDeduct = 100.00; } else{ JOptionPane.showMessageDialog(null, "enter either M or F"); } … | |
Re: all you need to do is to store the numbers in another class help.java [CODE]import java.util.Scanner; import java.util.*; public class help { public static void main(String[] args) { int num; int total=0; int i=0; help2[] entries=new help2[100]; int counter=0; Scanner sc = new Scanner(System.in); do { System.out.print("Input an integer. Input … | |
The program should change a sentence to pig Latin. [B]Rules[B][/B][/B] A word starting with a vowel should start with a capital letter and the rest with small letters and end with "way". If a word starts with a consonant the first letter will move to the last until it starts … | |
Re: there is an anagram in this code , i dont know the anagram Is it so hard to search the net for an anagram solver? Answer | |
Re: Start your own thread instead of replying to this old one and post it in the right forum in detail |
The End.