- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 5
- Posts with Upvotes
- 4
- Upvoting Members
- 4
- Downvotes Received
- 4
- Posts with Downvotes
- 2
- Downvoting Members
- 4
28 Posted Topics
[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 "); … | |
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 … | |
[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 = … | |
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] … | |
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] | |
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?., … | |
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 … | |
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 … | |
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 … | |
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 … | |
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; … | |
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 … | |
![]() | Re: [QUOTE=koh;108465]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 … |
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 … | |
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"}; … | |
Does anyone know how to prevent Conficker Variants to infect your PC?.. | |
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); … | |
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 … | |
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 … | |
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 … | |
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 … | |
//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 … | |
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 … | |
Re: The codes were okay except 2nd printf. That should be lowercase. And also for your fresult1. It should be like this. [ICODE]#include<stdio.h> int main() { float foperand1 = .0725; float foperand2 = .075; float foperand3 = .0775; int iPurchase = 0; float fresult1; printf("\nEnter Purchase Amount: "); scanf("%i", &iPurchase); [COLOR="Red"]fresult1=foperand1*iPurchase;[/COLOR] … | |
//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 ? … | |
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. … | |
[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 … | |
Re: Right!. You need to show some effort... Before asking for help... |
The End.