- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
I have to make a program that simulates a shopping cart, I have it done, it's just that the shopping cart wont print. Please help me in fixing this, this is due for me tomorrow and is worth 40% of this chapter grade. The files are attached below. The main … | |
I made this applet for my APCOMPSCIA class, it due tomorrow but I cant get it working. I need to show the animation of a sort, but it just does sort once that it, please help. I will be very great full. [CODE]import java.applet.Applet; import java.awt.*; import java.awt.event.*; import java.util.Random; … | |
Please help me, I need to turn this in tomorrow. I need to do it so I can make my stick figure move using arrow keys. I've made everything, but I don't know how to implement the keys. Can someone please guide me? And give me sample code and where … | |
I have attached the file with the sorts. I have to show 2 sorts insertion, and selection sorts demonstration in bars. I should show the position of the bars after each run. How do i go on about doing that? | |
I'm trying to do selection sort for objects...But it wont work, please help. We were told to change the first one to do objects. Any help appreciated [ICODE] public static void selectionSort (int[] numbers) { int min, temp; for (int index = 0; index < numbers.length-1; index++) { min = … | |
Hello everyone, I am AP COMPSCI A for my school and I trouble with this program. In the program you have to enter numbers from 1-100. And print a chart of how many numbers were between 1-10, 11-20 and so on. Like this: 1 - 10 |* 11- 20 |**** … | |
When I run the follwing code: [code] #include <iostream.h> #include <string.h> #include <vector.h> #include <fstream.h> using std::string; using std::vector; void exchange(vector <int> &array,vector<string>&array1); void main() { ifstream fin,f2,f3,f4; //First name input vector <string> fname(25); fin.open("firstname.dat", ios :: in); for( int i= 0;i<25;i++) fin>>fname[i]; fin.close(); //Second name input vector <int> fnum(25); … | |
[code]#include <iostream.h> #include <string.h> #include <vector.h> #include <fstream.h> using std::string; using std::vector; void function(vector<string>&fn,vector<string>&fnum,vector<string>&ln,vector<string>&lnum); void main() { ifstream fin,f2,f3,f4; //First name input vector <string> fname(25); fin.open("firstname.dat", ios :: in); for( int i= 0;i<25;i++) fin>>fname[i]; fin.close(); //Second name input vector <string> fnum(25); f2.open("firstnum.dat", ios :: in); for(int i= 0;i<25;i++) f2>>fnum[i]; f2.close(); … | |
This works and shows the factors or tells if the number is a prime number but doesn't show ODD factors please help!! I need to turn this tomorrow [CODE] #include <iostream> using namespace std; int prime(int num); int main() { int num; cout<<"Enter number: "; cin>>num; if(prime(num)==1) cout<<"The number is … |