ssharish2005
amazingly I didn't get one
i think i understand what your saying about an array but how would one write this in order to keep all the values i need to print the correct tabulated...
Type: Posts; User: jms318
ssharish2005
amazingly I didn't get one
i think i understand what your saying about an array but how would one write this in order to keep all the values i need to print the correct tabulated...
ok i've played around with my code and here is the new code without any errors
#include <stdio.h>
double calculateCharges (double charge);
int main()
{
This is the program
A parking garage charges $2 for minimum fee to park up to 3 hours and then a $.50 per hour charge after the 3rd hour. write a program that calculates and prints the parking...
thanks sl4nted
here is the corection to the code it works like a charm
while (worker != -1) // start whole loop
{
worker = 0;// reset paycode
printf ("Thank You.\n"); // menu prompt...
that helps with the infinte looping changing all inner whiles to ifs
but if i use break it exits the program completly
is their like a way to use the return command to start the program back to...
ok each part of this code works fine but i neeed it to retturn to a certian user prompt and have tried everything i know.
/* payroll program to calculate weeks pay */
#include <stdio.h>
...
thank you thank you thank you kennedy and salem
i guess i over thought this one and had to many int's lol
and had everything equaling
joe
i see but even if i remove this from the code and then recompile it it still hase the effect of saying
Our smallest number is "whatever the last number i entered"
so if i tell it 3 on...
ok here i tried new code
#include <stdio.h>
int main() // start execution
{
int enter; // the number that determains specific vaulues remaining
int counter = 1; // counter used in while...
salem i did change it and it aways give the answer of the last number i entered
ok but how would i go about setting anumber outsdie this loop to be entered
i'm sorry i meant to type
compare = number;
hope that makes sense now
but i've been known to be way off before. lol
I'm to write a program that finds the smallest of several intagers. the first vaulue read specifies the number if values remaing for caculation.
here is my code that seems to work put gives me a...
thank you so much it works perfect sl4nted
the only part of your code i do not understand 100% is
while (column > 0)
{
if ((column == x) || (column == 1))
...
Ok here is my exercise ive wrote code that doesn't work prints a square on the screen but not as the patren described below
Exercise 1: Display a Square Learning Objectives: To verify data entry,...
ok here is my fix i was overlooking
#include <stdio.h>
/* function main begins program execution */
int main()
{
int row; /* initialize row */
int column; /* define column */
i get my code to print columns and row at the number i enter at prompt put the program never breaks the loop. What am I doing wrong??
#include <stdio.h>
/* function main begins program...
thanks sl4nted your code correction worked perfect
My homework was to write a program that reads two integers and determines and prints if the first is a multiple of the second. hint use the reminder operator.
here is my code that compiles with no...
Thanks Adak :-)
that extra break code makes for a smooth program.
Joseph
thank you DWK found the problem it was in the last if function on the fomula it should be
if ( counter != 0 ) {
total = ( float ) total / counter; /* grand total */
...
i did the mpg in the loop fixed some of it and i've exited the program with a total but its way off
any ideas here is the new code
/* miles per gallon on each tank full */
#include <stdio.h>
...
ok all I'm a new c student. So I need eveeryone who post not to use advanced functions I haven't been instructed in.
here is the homework exercise:
develop a program that will input the miles...