- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 3
- Posts with Downvotes
- 2
- Downvoting Members
- 3
- Interests
- children,sport events,movies
36 Posted Topics
Question: I have to do a program on alternating sums using vectors. I am not sure how to start this program. I thought about using an array and every even index add the value and every odd index subtract the value. Does that sound right? Any ideas? | |
Below is my code for printing prime numbers up to a given input by user. However, my calculations are not working correctly and my output is printing twice. Any idea? :sad: #include <iostream> #include <cmath> using namespace std; void prime_num(int); int main() { cout << " Enter a number and … | |
I am new to both ASP and HTML. I am trying to create a questionnaire on the web for students to view and fill out. I am almost done with the form in HTML but not sure what to do after that. I was told that I need to know … | |
Below is my code for Fibonacci sequence, however when I use a large number such as 100 or more it takes forever to produce output. Why? any help would be appreciated. :( [code]#include <iostream> using namespace std; long fib_num ( long ); int main() { long num = 0; long … | |
| |
I was wondering is there anyway to wrap the text in the columns? Also, is there a way to adjust the column width automatically? I know how to do it manually, just wondering if it would adjust on its own. :?: | |
I have a DVD burner on my computer. I am creating this PowerPoint show to put on DVD for my mother in law. I am using Microsoft Office 2003. I tried copying the show to DVD but would not play in the DVD player. [QUOTE]Question1: I cannot get the song … | |
I am creating this PowerPoint show to put on DVD for my mother in law. I am using Office 2003. I have a DVD burner on my computer. [QUOTE]Question1: I cannot get the song to play as soon as the slide show begins. It always starts after the first slide. … | |
Is there another way to make a column in a table the primary key if you already assigned it to the autonumber column? I would like to make either the student id or the social security number the primary key. | |
Question: when I run reports using crystal reports with parameters. The time it takes to run is extremely slow when loading, printing the report, etc.. Any idea what I should be looking for with this kind of problem? | |
Below is my source code for a tictactoe program. However, my output after first move always states invalid choice, no matter what number I enter? [code] #include <iostream> #include <string> #include <cmath> using namespace std; class TicTacToe { public: TicTacToe(); // constructor int Pick_Player(); // member function int Pick_Row(); // … | |
Hi, Below is code to gather information from a beg and end date but hwo would I generate information on each day of the week. Sunday - Saturday for a set of specific date ranges? [code] Select Count(b.max) From lm.dw a, lm.bw b Where (a.Start_dt <= getdate() and a.End_dt >= … | |
Okay I have a problem where the name of my vector is highlighted in yellow throughout my code and my output. I changed the name of the vector but on the output the word list is still highlighted in yellow, why? Below is my code: [code] #include <iostream> #include <string> … | |
My program is suppose to read in numbers and tokens. However, it will only read in the first number and go into a loop. Never reads the next number or does the computations. Can't figure out what's wrong. [code] #include <iostream> #include <string> #include <iomanip> #include <fstream> #include <cmath> #include … | |
I keep getting this error message and the code below: I can't figure out why any help would be appreciated. Line 51 is this statement in my code: Element* Stack::Element::Prev(void) error message: [code] In file included from Stack03.cpp:28: Stack03.h:81:7: warning: no newline at end of file Stack03.cpp:51: syntax error before … | |
What am I doing wrong I am not getting these values from the input file to even display correctly or sort in order. Give me some direction? [code] #include <iostream> #include <string> #include <cmath> #include <iomanip> #include <fstream> #include <cmath> #include <vector> using namespace std; class CommandLineException { public: CommandLineException(int … | |
I am receiving error messages for this palindrome problem. I am reading in a file and outputting the results if it is a palindrome or not using stacks. Any ideas as to why I am receiving error messages below. [code] include <iostream> #include <string> #include <cmath> #include <iomanip> #include <fstream> … | |
What is a two way templatized linked list in C++? Does it mean using syntax below for classes and member functions definitons? [code] template<typename type_variable> [/code] | |
I am trying to write a program that reads in a file of numbers, writes to a file and displays the numbers in correct order. I don't fully understand how to read the file and pass that information into my class declarations in order to output before and after the … | |
Below is my source code for a questionnaire I created using HTML and ASP. It contains radio buttons for the selections. I coded it using ASP and HTML. However, when I click the submit button the selections made by user are not displayed on the screen. What am I missing? … | |
My question is many parts. Below is the code I have done so far in HTML. I have tried to create this form that prints a certificate when someone completes a course. However, the first row labeled Certificate of Training..... is also supposed to have the words "Date of Issuance" … | |
Here is new code for my problem with this questionnaire. I am still not getting an output for the choices selected. Any ideas? [code] <html> <% Option Explicit Dim reason Dim response Dim resolved Dim rate Dim offer <head> <title> eLMS Feedback Form Process </title> <body bgcolor = "white"> reason … | |
Below is my source code combined with HTML and ASP. It is a questionnaire but once I click the submit button the choices selected from the radio buttons are not displayed on the screen. What am I doing wrong? [code] <html> <h1><STRONG><var>eLMS </var>Helpdesk</STRONG></h1> <form> <% reason=Request.Form("reason") %> <!--<td><STRONG>Dear<%=cookie.username%></STRONG><br>--> <td><STRONG>You recently … | |
I am new to both ASP and HTML. I am trying to create a questionnaire on the web for students to view and fill out. I am almost done with the form in HTML but not sure what to do after that. I was told that I need to know … | |
Exactly how do you create multi-file project and how do you compile it in C++ using Linux? | |
I must ask user number of students who took test, then create a dynamic array and then get the scores for each student. Then calculate the sum,average of the scores. My problem is that once it calculates it continues to ask user for student scores. I am confused with this … | |
Below is the start of my source code for a program I am trying to figure out. We have to compute the approximate value of PI with random throws at a dartboard. It is considered a hit if it lands inside unit circle (0,0) and radius 1. Any help on … | |
Below is my code to calculate interest and balances and how many months to get there. However, my months calculations are way off by the thousands. Any idea? #include<iostream> #include<string> #include<cmath> using namespace std; class Account { public: Account(); Account (double bal); void deposit(double amount); void withdraw(double amount); double get_balance() … | |
Below is a program that determines if one address comes before another address using classes. One constructor takes an apartment parameter and the other doesn't. My errors are invalid conversion from int to const and among others. Any ideas? [code]#include <iostream> #include <stdlib> using namespace std; class Address { public: … | |
Below is my new code for this julian day program. I have fixed some of the errors I mentioned earlier. However, the day is still one short for the julian day and my conditional if statement seems to be the problem. I have tried a couple of ways to fix … | |
Below is my Julian day program. I have to convert a day into julian and then get todays date and tell how many days from the julian date it is. I am having problems with the output of the julian date is off by 1 day and my difference output … | |
Need help with the C++ programming. I am trying to compute the count of values, the average, and the standard deviation of the input given by user. My output is correct except for the standard deviation. My code is below: Thanks [code]#include <iostream> #include <string> #include <cmath> using namespace std; … | |
Below is my code for a class car efficiency program but I have some errors with the get_gas function. if you can help would appreciate it. [code] #include <iostream> #include <cmath> #include <cstdlib> using namespace std; class Car { public: Car(); Car(double); ~Car(); void add_gas(double); double get_gas(double); void drive(double); private: … | |
I have to write a program that reads in playing card values and translates them to the correct output. For example if a user enters:QS then the output would be a queen of spades. I am using a switch statement but how can I read the second character. Right now … |
The End.