Posts
 
Reputation
Joined
Last Seen
Ranked #3K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
67% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements
~14.7K People Reached
Favorite Forums
Favorite Tags
c x 84
Member Avatar for tquiva

** EDIT: sorry, typo in my title. I meant to write 3 pointers instead of 2. I am trying to revise/create a function in which it is given given three pointers to floats and reorders the values pointed to into ascending order. The prototype for the function would be: void …

Member Avatar for larsake27
0
745
Member Avatar for tquiva

Hi everyone. I just finished creating a program similar to minesweeper, but it's called miensfeld. The rule of the game are stated in the intro of the program. I was just wondering if anyone would mind checking it out for me? I just can't seem to compile it. But please …

Member Avatar for jephthah
-1
611
Member Avatar for tquiva

when I try to compile a program, an error of the following comes up: cc -Aa -g -c -o main.o main.c <command-line>: error: missing '(' after predicate make: *** [main.o] Error 1 it indicate no line of where the error is located. has anyone ever came across this type of …

Member Avatar for jephthah
0
3K
Member Avatar for tquiva

I am trying to create a game and tried compiling my program with my makefile, but I keep getting an error stating that there is something wrong in main. I can't seem to find the error, but this is how my main looks like: [CODE]#include "tfdef.h" #include "movement.h" #include "game_utils.h" …

Member Avatar for Banfa
0
2K
Member Avatar for tquiva

I am trying to create a program that reads a data file and computes the water usage for each hour of the day, the average hourly usage for the day, and the time of the highest hourly usage. I already created the main program, and two other functions, along with …

Member Avatar for Adak
0
160
Member Avatar for tquiva

I'm trying to repair a program that computes averages of several values inputted by the user. All values are scanned on one line and taken as an array. My program is nowhere near complete and I'm trying to fix it up little by little. The one part that I am …

Member Avatar for jonsca
0
502
Member Avatar for tquiva

I have a project which is to design a came called Miensfeld. In Miensfeld, the player, Timmy, is located on one side of a 8 by 10 cell area minefield. My task is to move Timmy safely through the minefield to get to the other side, earning points as he …

Member Avatar for Adak
0
3K
Member Avatar for tquiva

I need to create my own function to compute the cos of an angle (given in radians) using the Taylor series. The task is to create a function in which a float value is passed to it, and a double gets returned. My program compiled, but I am getting wrong …

Member Avatar for jephthah
1
280
Member Avatar for tquiva

Can someone please help me with this program? My goal is to create a test driver for the function put_result(). The program compiles and works as intended. However, I came across a bug that I am having an extremely difficult time trying to fix. I tested for several inputs and …

Member Avatar for tquiva
1
219
Member Avatar for tquiva

I am trying to modify this function to read input in a noisy environment, meaning the characters received in the input may have extra characters. A protocol that I am trying to implement is to send each digit twice in a row so that unless the receiver gets two of …

Member Avatar for nezachem
0
112
Member Avatar for tquiva

Please bare with me. I am still a newb at programming and this may seem a bit confusing, but I have many comments and debug lines. This is an extremely long code, but could the advanced programmers out there please help me out? The goal of my program is to …

Member Avatar for WaltP
0
370
Member Avatar for tquiva

I am creating a program that calculates the average for a bunch of numbers. The first input is the number of values, and the second output is/are the numbers. For example, with the inputs of the following, I would get the outputs afterward. 5 10 20 30 40 50 Average …

Member Avatar for Aia
0
2K
Member Avatar for tquiva

I have two for loops that I would like to convert into while loops instead. This is the entire code of the program. This program simply asks a questions and determines whether the input is a yes or no based on the first character of the line. [CODE]#include <stdio.h> #include …

Member Avatar for tquiva
0
130
Member Avatar for tquiva

I know I would first declare the input variable as char. But that just reads in the first letter of the word. How can I print or read each letter of a certain word?

Member Avatar for hkdani
0
162
Member Avatar for tquiva

I'm currently trying to edit this program so that it would read 4 inputs on the first line of data, instead of one. All other lines contains just 1 input. I created a program to assign a letter grade to an integer score. This was my first data file: [CODE]95 …

Member Avatar for Aia
0
149
Member Avatar for tquiva

I am trying to create a program to read a series of input characters representing grades (e.g., an 'a' or 'A' represents an A, a 'b' or 'B' represents a 'B', and so on) and prints the counts of each grade. [CODE]/* A program to count the number of grades …

Member Avatar for WaltP
0
119
Member Avatar for tquiva

I'm trying to figure out a way I can change this program so that I could have a semi-colon ; instead of \n to indicate the end of a command, like this: a ; b The command is: a The command is: b a The command is: a How can …

Member Avatar for jephthah
0
207
Member Avatar for tquiva

When this program prompts the user for input, it works fine for the correct input. But for the wrong inputs, it returns a zero for every character, including the white spaces. My goal of this program is to return a roman numeral as an integer. For the wrong inputs, I …

Member Avatar for WaltP
0
305
Member Avatar for tquiva

I'm trying to get this program to ignore leading tabs and blanks, but I just can't seem to figure out how. What can I further do to improve this program? [CODE]/* Read a command, skipping over leading blanks and any trailing * characters. */ #include <stdio.h> /* Declare functions */ …

Member Avatar for WaltP
0
295
Member Avatar for tquiva

Hi could someone please help me with this problem. I want to find the greatest and least numbers of all current input numbers. My output is wrong. I can't seem to calculate the max/min of all the current input numbers. My code only find the max/min between two inputs. Here …

Member Avatar for tquiva
0
227
Member Avatar for tquiva

I am trying to find the value of a given base and exponent, with the exponent being an integer greater or equal to 0. However, I am getting strange numbers at output. Could someone please take a look at my code ? [CODE]/* File: driver3.c * Date: February 28, 2010 …

Member Avatar for anup375
0
105
Member Avatar for tquiva

Hi could someone please help me with my code? I want to calculate an accumulate investment after a given amount of years, months, or days. I am reading in an annual interest from the user and would like to have this converted into monthly and daily interest based on the …

Member Avatar for WaltP
0
118
Member Avatar for tquiva

Hello, can someone please help me with my code. I'm working on a program to calculate the monthly cost for excess minutes from two different cell phone companies. I still have a lot more to add to my code, but I am stuck on this particular part. I am reading …

Member Avatar for WaltP
0
74
Member Avatar for tquiva

Could someone please help me with this assignment? I am near finishing. It is just one minor problem that is preventing me from finalizing this. I added a comment /* Problem */ above the problem. I just can't seem to add up all the values for JOG_min. When I run …

Member Avatar for tquiva
0
94
Member Avatar for tquiva

Can someone please help me? I am creating a program to calculate the cost of excess minutes with two cell phone companies. I am reading my data in from a file. This is the data from my file. [CODE] 2 32 3 45 1 36 3 15 1 30 1 …

Member Avatar for jonsca
0
122
Member Avatar for tquiva

Could somebody please help me with this program. This is my first time working with an EOF loop. This program simply adds up all the input numbers. My task is to have the last wanted input terminated by an EOF. However, when I run my program, my loop is infinite. …

Member Avatar for biswajit_cs07
0
97