Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
59% Quality Score
Upvotes Received
5
Posts with Upvotes
4
Upvoting Members
4
Downvotes Received
4
Posts with Downvotes
2
Downvoting Members
4
1 Commented Post
0 Endorsements
Member Avatar for DoEds

[CODE]#include <stdio.h> #include <stdlib.h> #define SIZE 31 int main() { int array[SIZE]={0}; int i,j; int startDay=0,numDays=30; printf(" S M T W TH F S\n"); for (i=1;i<=1+ startDay*5;i++) printf(" "); for (i= 1; i <= numDays; i++) { printf("%2d",i); if ((i+startDay)%7 > 0) { printf(" "); system("color 6");} else printf("\n "); …

Member Avatar for John_167
2
6K
Member Avatar for DoEds

Is it okay to apply patch even if the Conficker Virus was not remove? I tried scanning using MSRT v3.9 but nothing was found yet still have the problem on visiting a websites. When view my "Network Connection" there is a new connection "Internet Connection" appeared. I tried disabling it …

Member Avatar for Agapelove68
0
160
Member Avatar for DoEds

[CODE]String[] myArray = {"Player 30","Player2 35"};[/CODE] This statement [CODE]Arrays.sort(scoreArray);[/CODE] will sort myArray by Letters. Output: [CODE]aPlayer 30 bPlayer 35[/CODE] Problem: Is there a way to sort myArray by numbers from highest to lowest? The output should be: [CODE]bPlayer 35 aPlayer 30[/CODE] I even tried foolish things like. [CODE]String[] myArray = …

Member Avatar for JamesCherrill
0
122
Member Avatar for DoEds

I have this txt file containing names and scores. "[COLOR="red"]ex. Player1 35[/COLOR]". My program able to read it and store it to an Array of String. Here's my question. Is possible to separate the name and the score and store them in different Arrays? [CODE]ex. myArray = {"Player1 35","Player2 30"};[/CODE] …

Member Avatar for DoEds
0
101
Member Avatar for DoEds

Why am i getting this error? Can someone help me? You can compile it. I'll post all the necessary codes. Because i dont have enough time. Please this is really urgent. *argg my head hurts*** I put in an archive. [CODE]http://h1.ripway.com/Caterwauler/findTheCheese.rar[/CODE]

Member Avatar for JamesCherrill
0
121
Member Avatar for DoEds

Can anyone give me some ideas on how to find the middle value between 3 numbers.? I really dont know how to start... I know how find minimum and maximum but finding the Middle value is kinda hard for me... For those C Wizards give me some idea advice please?., …

Member Avatar for krutarth
0
3K
Member Avatar for DoEds

Arg... Guys can you correct my code? 'coz it gives me a wrong output if i input "3 , 1, 2 or 1, 3, 2 or 3, 2 ,1" [CODE]import javax.swing.*; public class OutputGreatest { public static void main(String[] args) { int uInput1,uInput2,uInput3; int maxValue; uInput1 = Integer.parseInt(JOptionPane.showInputDialog(null,"<1>Input a number …

Member Avatar for DoEds
0
123
Member Avatar for DoEds

AV: Norton 360 OS: Windows 7 (64bit) Adapter: Marvell Yukon 88E8040 PCI-E Fast Ethernet Controller IDP: PLDT myDSL ph I tried a full scan of Norton 360 but it wont detect any malicious files or whatsoever. MBAM always detect and blocking this IP [COLOR="Red"]222.65.29.209[/COLOR]. My main problem here is that …

Member Avatar for crunchie
0
128
Member Avatar for DoEds

OS: Windows 7 (64bit) Adapter: Marvell Yukon 88E8040 PCI-E Fast Ethernet Controller AV: Norton 360 ISP: PLDT myDSL ph Problem: I regularly get disconnected to the network. I got errors in my ping. Like "Destination Unreachable" sort of... i cant remember and "Request timeout" when there is a yellow alert …

Member Avatar for DoEds
0
312
Member Avatar for DoEds

Actually this is not an assignment or anything... School days are done... Still there's lot of things that i don't know... I just need some ideas on how to make an inventory using files... Basically, the file contains the name of the "Items" "Prices" and the "Amount"... I want to …

Member Avatar for Adak
0
1K
Member Avatar for DoEds

I found this code somewhere on the net... But i dunno how to stop this...Its keeps animating and i dont know when will this stop... [CODE]#include <stdio.h> #include <time.h> void sleep ( long milli ) { clock_t end, current = clock(); for( end = current + milli; current < end; …

Member Avatar for jonsca
0
112
Member Avatar for DoEds

Can u help me with this? Here's the problem. Everytime i input just 1 word...it works fine. [URL=http://img148.imageshack.us/i/26168475.jpg/][IMG]http://img148.imageshack.us/img148/2503/26168475.jpg[/IMG][/URL] but when i enter 2 words this will happen... [URL=http://img706.imageshack.us/i/49110093.jpg/][IMG]http://img706.imageshack.us/img706/6625/49110093.jpg[/IMG][/URL] [CODE]#include <stdio.h> struct Student{ char course[5]; char subject[5]; char name[20]; float units[8]; float grade[8]; float qpi[3]; }Stud[3]; int main() { float grade …

Member Avatar for DoEds
1
262
Member Avatar for kohkohkoh

can i know how to save a file name based on the user's input for example: Enter your name : Derrick then i save this input to a file .txt named derrick (derrick.txt) how can i do it? i only know how to use the rename() and delete() function...in the …

Member Avatar for DoEds
0
123
Member Avatar for DoEds

I'm new to structures, our instructor haven't discussed it yet... Im trying to make a program that will ask the user 5 "fruits". Ex. The user input: Mango Apple Mango Grapes Grapes Output: Fruits entered: 2 Mango 1 Apple 2 Grapes I've trying to see some tutorials but i can't …

Member Avatar for WaltP
0
109
Member Avatar for DoEds

Im trying to make a program that will sort the the list according to its cost...from least to expensive... here's my code: [CODE]#include <stdio.h> #include <string.h> typedef struct resto RESTO; struct resto{ char *name; char *address; float cost; char *food; }; void output(RESTO r1); int main() { RESTO r1= {"Coras","Agora",60,"BBQ"}; …

Member Avatar for abhimanipal
0
80
Member Avatar for DoEds
Member Avatar for DoEds

I dont know how to pass a value from the function [ICODE] total();[/ICODE] to [ICODE]main()[/ICODE]...i want get the value of the [ICODE]prod[/ICODE] and assign its value to bill...But this code i have will only redo the function [ICODE]total() [/ICODE]...Anyone can help please?. [ICODE]#include <stdio.h> #include <conio.h> int header(); int choices(int); …

Member Avatar for DoEds
0
132
Member Avatar for DoEds

Am i writing the correct pseudocode? Im confuse in pseudocode for while statement. [CODE] Start declare variables; print “choose account types”; read choice; if choice = ‘a’ then while n<=3 print userid and password; read userid1 and password; a = strcmp(u,userid1); b = strcmp(p,password); if a = 0 and b …

Member Avatar for ksj
0
117
Member Avatar for DoEds

I just found this example in my book. After running the program in will only ready the first line of my file. Ex. inside my file "PhoneBook.txt" Mine 12345678 Hers 1234567 Them 123456 It will only read "Mine 12345678" ignoring "Hers 1234567 and Them 123456" How will i'll make this …

Member Avatar for DoEds
0
111
Member Avatar for DoEds

I wonder what's the final values of the variables "a, b and c" after this program... It is in pseudocode.... [ICODE]start a = 2 b = 4 c = 10 while c > 6 perform changeBandC() endwhile if a = 2 then perform changeA() endif if c = 10 then …

Member Avatar for Aia
0
111
Member Avatar for DoEds

In this program i want to ask the cashier if the customer wants to buy anything else. Typically, Ask customer what beef product he wants to buy. Ex. 1 //Chicken Liver Ask customer how many kilo(s) he will buy. Ex. 2 //2kg (problem) Then ask the customer if he wants …

Member Avatar for abhi.navale
0
466
Member Avatar for DoEds

//Make an interactive program that will ask for hourly rate of the employee and the number of hours worked in a day. As DOLE mandates, more than 8 hours of work a day is considered OT (overtime) so the wage will be 1.5 * hourly rate after the 8 hours …

Member Avatar for DoEds
0
166
Member Avatar for DoEds

I have a problem here. Can anyone help me out.? I cannot surf to the internet in our internet shop but i can play Online Games in my PC. I can only surf to internet every morning for at least 1h+... and Every night starting 9:30~~... I already tried different …

Member Avatar for hughv
0
133
Member Avatar for dknoebber

This is my first C program. I am modifying an existing program to have input and when I added two lines of code to 1) print "Enter Purchase Amount" and 2) scanf to capture the data my other printf statement received a compile error that it has the wrong # …

Member Avatar for DoEds
0
190
Member Avatar for DoEds

//This program will ask the user for k, m and n. //k should not be equal to 1. //Output all numbers multiple by k between m and n. (ex. k=2,m=5,n=20 output should be 6 8 10...18) *problem* How to exit this program when the user assigned k to 1 ? …

Member Avatar for DoEds
0
97
Member Avatar for DoEds

this is our homework... // make a c program that will ask any number from the user. //Output all numbers multiples of 3 from number to 30. [ICODE]// make a c program that will ask any number from the user. //Output all numbers multiples of 3 from nuber to 30. …

Member Avatar for mvmalderen
0
104
Member Avatar for DoEds

[i][color=#33CCFF]/*Help me finished this code.I trying to make a program that will ask 2 choices. 1 is for converting dollars to peso and 2 is for converiting peso to dollars. Im trying my best but i dont seem to get the right code for it. Im just a beginner in …

Member Avatar for Tom Gunn
0
323
Member Avatar for kissiwat

Apparently this was originally posted in the wrong area :rolleyes: :rolleyes: Anyway.... bit of a cheek I know but if you're feeling ultra generous with your knowledge but can anyone write some code in C using if statements for the following: "A car costs a certain amount. If it is …

Member Avatar for Ancient Dragon
0
102