Forum: C++ Apr 28th, 2009 |
| Replies: 3 Views: 312 I am supposed to be working on this problem that stores info in a 2x20 array of characters where the row indicates the month and the column indicates teh day. We have to read in from a file and... |
Forum: C++ Apr 28th, 2009 |
| Replies: 8 Views: 432 did you figure this problem out by the way? |
Forum: C++ Apr 22nd, 2009 |
| Replies: 5 Views: 311 [TEX]
Write a program that calculates and displays the total travel expenses of a business person on a trip. The program should have functions that ask for and return the following:
• The total... |
Forum: C++ Apr 22nd, 2009 |
| Replies: 5 Views: 311 I think that the time should be displayed in military time format. |
Forum: C++ Apr 22nd, 2009 |
| Replies: 5 Views: 311 I have 2 functions: one has to calculate the total number of days spent on a trip and the other has to calcualte the time of departure on the first day of the trip and the arrival back home on the... |
Forum: C++ Mar 29th, 2009 |
| Replies: 6 Views: 531 #include <iostream
#include <iomanip>
using namespace std;
//function prototypes
double patientcharges(int, double, double, double);
//in- patient double
patientCharges(double,double);... |
Forum: C++ Mar 28th, 2009 |
| Replies: 6 Views: 531 // This program computes and displays patient hospital charges.
// It uses overloaded functions.
#include <iostream>
#include <iomanip>
using namespace std;
// Function prototypes double... |
Forum: C++ Mar 28th, 2009 |
| Replies: 6 Views: 531 I have to write a program that must compute and display the charges for a patients hospital stay. first the program should ask if the patient was admitted as an in patient or an out patient. If the... |
Forum: C++ Mar 15th, 2009 |
| Replies: 5 Views: 432 Okay now i'm confused....each time i run my loop i want it to go from day1..day 2...day 3...with the total number of cents doubling each time....my for statements are very squirly |
Forum: C++ Mar 14th, 2009 |
| Replies: 5 Views: 432 I tried to get rid of that loop but i cant seem to figure out how to display the days with penny pay in a table and to increment the number of pennies each day |
Forum: C++ Mar 14th, 2009 |
| Replies: 5 Views: 432 I am writing a program that is supposed to calculate how much a person earns in a month if the salary is one penny for the first day, two pennies for the second day, four pennies for the third day,... |
Forum: C++ Feb 22nd, 2009 |
| Replies: 22 Views: 612 thank you soooo much for your help. I really appreciate it |
Forum: C++ Feb 22nd, 2009 |
| Replies: 22 Views: 612 i'll stick with the switch statement. so would the same formula for package A apply to packages b and C? because im getting squirly answers |
Forum: C++ Feb 22nd, 2009 |
| Replies: 22 Views: 612 i see where you're going with it.....
package A--9.95 for 10 hours per month additonal hrs 2.00
package B--14.95 for 20 hours per month additonal hrs 1.00
package C was 19.95 with unlimited... |
Forum: C++ Feb 22nd, 2009 |
| Replies: 22 Views: 612 here's what i have but its not working
if(hours ==10)
{
packageACharge = PACKAGE_A_RATE;
cout <<packageACharge<<endl;
... |
Forum: C++ Feb 22nd, 2009 |
| Replies: 22 Views: 612 yes but it cant exceed 744 hours |
Forum: C++ Feb 22nd, 2009 |
| Replies: 22 Views: 612 Two questions---
1) if i have a package that is 19.95 per month for unlimited access, how do figure that into the equation?
2) when im ready to output the bill, do i need to output it in every if... |
Forum: C++ Feb 22nd, 2009 |
| Replies: 22 Views: 612 For example, if the user uses 12 hours and the package calls for 9.95 per month 10 hrs of access, my answer on the calculator came out to be 13.95 |
Forum: C++ Feb 22nd, 2009 |
| Replies: 22 Views: 612 can i do the same format for packages b-c? |
Forum: C++ Feb 21st, 2009 |
| Replies: 22 Views: 612 The problem that i am working asks to calculate a customer's monthly bill. The customer has to input their name, which package they purchased, and how many hours were used. For example package a is... |
Forum: C++ Feb 13th, 2009 |
| Replies: 7 Views: 438 Maybe what i said wasnt clear. I am trying to modify the code i originally posted so that it writes to an output file instead of to teh screen. I'm having trouble figuring out how to do this... |
Forum: C++ Feb 13th, 2009 |
| Replies: 7 Views: 438 what im having problem understanding is if i should use the output file stuff first then the input file...because the user has to input certain information and then i have to display those results to... |
Forum: C++ Feb 12th, 2009 |
| Replies: 7 Views: 438 If i want to wirte this code to a file, how do i do that? Im having a hard time figuring out if i need to put the outfile first and then do the infile stuff but then when i run it, it doesn't display... |
Forum: C++ Feb 12th, 2009 |
| Replies: 9 Views: 793 whatever im doing isn't working....here's my code for that section:
cout << fixed << setprecision(2);
cout <<endl;
cout << "Movie Name: " << setw(22) << movieTitle <<... |
Forum: C++ Feb 12th, 2009 |
| Replies: 9 Views: 793 I have a title that is read in from the keyboard. I need to put it in quotation marks but i dont know how to do that...for instance, my program asks the user to put in a movie title and they input... |
Forum: C++ Feb 12th, 2009 |
| Replies: 7 Views: 438 I am trying to right align my numbers to make them look like this:
Total Collected: $ 26572.89
Sales: $ 25068.76
County Sales... |
Forum: C++ Jan 24th, 2009 |
| Replies: 9 Views: 875 My friend and i were having a discussion the other day and we were having a heated argument about how to make that dang diamond pattern in C++ code...does anyone remember how to make that thing? like... |
Forum: C++ Jan 24th, 2009 |
| Replies: 9 Views: 875 My friend and i were having a discussion the other day and we were having a heated argument about how to make that dang diamond pattern in C++ code...does anyone remember how to make that thing? like... |
Forum: C++ Jan 23rd, 2009 |
| Replies: 11 Views: 785 I just started out in C++, so im having trouble understanding how things really work in this language...i got a totally different answer in working it out on the calculator...I got like... |
Forum: C++ Jan 23rd, 2009 |
| Replies: 11 Views: 785 Does this look kind of better?
#include <iostream>
using namespace std;
int main()
{
//Declare variables
double |
Forum: C++ Jan 23rd, 2009 |
| Replies: 11 Views: 785 Thats the problem...it looks all wrong to me...the numbers look way off..ive tried everything and i dont know how to fix it |
Forum: C++ Jan 23rd, 2009 |
| Replies: 11 Views: 785 I am writing a program that computes the tax and tip on a restaurant bill for a patron with a $44.50 meal charge. The tax is 6.75 of the meal cost. The tip is 15 percent of the total after adding the... |
Forum: VB.NET Dec 9th, 2008 |
| Replies: 1 Views: 354 I'm trying to make a base form which will be inherited by 3 other forms..Problem is the wrong information is in the form. How can you pick which information goes in the inherited forms? |
Forum: VB.NET Dec 8th, 2008 |
| Replies: 6 Views: 508 Since i'm using two forms, how would i get the streamwriter to appear first? My plan was to have the createForm (streamwriter) to have a menu strip so that when the user selects like Open Summary or... |
Forum: VB.NET Dec 7th, 2008 |
| Replies: 6 Views: 508 Here is the code that i have so far, but my .txt file won't execute:
Imports System.IO
Public Class createForm
'Declare module level variables.
Dim autoStreamWriter As New... |
Forum: VB.NET Dec 7th, 2008 |
| Replies: 6 Views: 508 Since i'm storing my information in a file, do i need to make a .txt file first and then write the program? Also, Since i'm creating two projects under the same thing, how would i go about making my... |
Forum: VB.NET Dec 2nd, 2008 |
| Replies: 6 Views: 508 I am writing a project that stores vehicle information such as the model,manuf., year, etc.
I have to create a second project that loads the data from the file into memory and loads a drop down... |
Forum: PHP Nov 20th, 2008 |
| Replies: 3 Views: 371 the errors are as follows coming from wdg html validator:
Errors and Warnings
Line 5, character 6:
<html>
^Error: element html not allowed here; check which elements this element may be... |
Forum: PHP Nov 20th, 2008 |
| Replies: 3 Views: 371 can someone tell me what's wrong with my code?My instructions say that i dont need to add any html elements to this document since it wont display in the web browser but i dont know what to do.... |
Forum: PHP Nov 17th, 2008 |
| Replies: 2 Views: 447 How do you format color anchor tabs for colors so they'll format themselves in stylesheets? |