Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~2K People Reached
Favorite Forums
Favorite Tags
c++ x 16
c x 1
Member Avatar for dal4488

This is a question on one of my homework assignments and I have it narrowed down between these two but I'm not sure which one it is. Anyone know it? To avoid an infinite loop make sure the loop body: alters the exit condition or contains at least one output …

Member Avatar for thedk
0
106
Member Avatar for dal4488

I'm having quite a difficult time with this program. I'm trying to write a program that calculates the average of the GPAs for male and female students. Each line of my file has an f or an m followed by a GPA. I have to use a sentinel controlled while …

Member Avatar for Dave Sinkula
0
182
Member Avatar for dal4488

I'm have a really hard time with this program and am totally lost. I'm trying to write a program that reads a set of integers and then finds the sum of the even and odd integers. So far this is all I have come up with, but I'm sure it's …

Member Avatar for dal4488
0
170
Member Avatar for dal4488

I'm not understanding the error I'm getting. #include <iostream> using namespace std; const double rServiceCost = 10.00; const double rPerMinuteCharge = .20; const double pServiceCost = 25.00; const double pDayPerMinuteCharge = .10; const double pNightPerMinuteCharge = .05; int main() { int minutes; int dayMinutes; int nightMinutes; double dayMinuteCharge; double nightMinuteCharge; …

Member Avatar for dal4488
0
91
Member Avatar for dal4488

Here's what I have so far and here's my response from my teacher. I'm not exactly sure what or where the problem is. Anyone else see it? Have you run this project with many different test cases, and does it work? At first glance, it seems to me that the …

Member Avatar for Narue
0
120
Member Avatar for dal4488

I'm trying to write a code that calculates a cell phone bill. There are two different services: a regular service that is $10.00 and the first 50 minutes are free and charges over 50 minutes are $.20 per minute and the other a premium service that's $25 and the first …

Member Avatar for Narue
0
146
Member Avatar for dal4488

I'm trying to write a program that mimics a calculator where the user inputs two integers and the operation to be performed. Then I want it to output the numbers, the operator, and the result. I need to use a switch statement and I'm very confused on what to do …

Member Avatar for Narue
0
318
Member Avatar for dal4488

This is what I have so far and I can't figure out how to get the converted length in my output file so that 312 inches converts to 3 yards, 1 foot, and 3 inches. #include <iostream.h> #include <fstream.h> using namespace std; int main() { ofstream outfile; int centimeters; int …

Member Avatar for blackdove
0
102
Member Avatar for dal4488

Hi, I'm totally new to C++ and so far am extremely confused. I was wondering if anyone could give me any help with one of my assignments. Basically I don't know where to even start. I think if maybe someone can help me get started maybe I can figure this …

Member Avatar for vegaseat
0
599
Member Avatar for dal4488

Ok this is what I have so far. I believe this is correct, but how do I find the number of yards, feet and inches in the user input? Any clue? #include <iostream.h> using namespace std; int main() { ofstream outfile; const double conversion = 2.54; double centimeters; double inches; …

Member Avatar for Narue
0
101