I'm still trying to enter LINES and PRINT to a Printer

I need so help! I'm a Beginner and I have ONE project! Grade USA Notes

I need to separate some of this data! It's all jumbled up!

This code is no where near some of the code I have read on this Forum so please help the struggling old guy
thanks



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
  #include <iostream>
#include <iomanip>
#include <cmath>
#include <fstream>

using namespace std;


/**
	as of May 8th 2015
 An one can grade a USA Currency all you have to do is Practice.
 The attributes are very similar to the Grading Companies. The exception this FREE system uses a Scale from 1 to 100
 Please only enter the values that are indicated or there will be an error.  
 
	This program is WORK IN PROGRESS!  
 As time goes on, I will improve it but right now it's pretty RAW
 This is a way to grade your USA Notes.... It's your grade!  It's a Value just for YOU.
 Be Honest, it's your system
 
 Watch for upgrades to this program 
 
 
 Thank you for Collecting USA Currency
 *********/
 
int main() 
{   	int corners;
		int tears;         
		int ink;
		int holes;
		int color;		
		int dirt;
		int smears;
		int margins;
		int folds;
		int overall;
		int stains;
		int score;
		int ironed;
		int stop;
		int x;
		int y;
			int corners2;
		int tears2;         
		int ink2;
		int holes2;
		int color2;		
		int dirt2;
		int smears2;
		int margins2;
		int folds2;
		int overall2;
		int stains2;
		int score2;
		int ironed2;
		int lprint;
		
// need to start on the Obverse side of the note

    cout << "Are you looking at the OBVERSE side of a note: 0=yes  ";
		cin >> x; 
			
	cout << "Look at the CORNERS on a scale from 0 to 5 look at the corners:"; 
		cin >> corners; ".\n";
		
    cout <<"Look to see if there any Tears -scale 0 to 5 enter TEARS:";  	
		cin >> tears; ".\n";
  		
      cout <<"For Pencil or INK scale from 0 to 10 enter:"; 
		cin >> ink; "\n";
  	  	
	cout <<"Look to see if the Note had been Pressed or IRONED scale from 0 to 5 enter:"; 
			cin >> ironed; '\n';
  		
  	 cout <<"Look to determine Crinkles or Holes scale from 0 to 10 enter:"; 
		cin >> holes; '\n';
  		

    cout <<"Look at the Color scale from 0 to 10 enter:";	
	cin >> color; '\n';
  		
	cout <<"Look at note if it's DIRTY scale from 0 to 5 enter: " ;  '\n';	
	cin >> dirt; '\n';
  	
	cout <<"Look for INK Smears scale from 0 to 5 enter: " ; '\n'; 	
	cin >> smears; '\n';
  		
	cout <<"Look for Stains  scale from 0 to 10 enter: " ; '\n'; 	
	cin >> stains; '\n' ;
  		
	cout <<"Look to see if the Margins are EVEN scale from 0 to 5 enter: " ; '\n'; 	
	cin >> margins; '\n';
  	
	cout <<" Look to see how many Folds scale from 0 to 10 enter: " ; '\n'; 	
	cin >> folds; '\n';
  	
	cout <<"Determine the Overall condition scale from 0 to 20 enter: " ;  '\n';	
	cin >> overall; '\n';
  		
	score += corners + tears + ink + ironed + holes + color + dirt + smears + stains + margins + folds + overall ; ".\n";   
	cout << "Total Condition>>OBVERSE is " << score; "./n";

// for the reverse

cout << "Are you looking at the REVERSE side of a note: 0=yes  ";
		cin >>y; 
			
		
	cout << "Look at the CORNERS on a scale from 0 to 5 look at the corners:"; 
		cin >> corners2; '\n';
		
	    cout <<"Look to see if there any Tears scale 0 to 5 enter TEARS:";  	
		cin >> tears2; '\n';
  	  		
    cout <<"For Pencil or INK scale from 0 to 10 enter:"; 
		cin >> ink2; '\n';
  		
  		cout <<"Look to see if the Note had been Pressed or IRONED scale from 0 to 5 enter:"; 
			cin >> ironed2; '\n';
  		
  		cout <<"Look to determine Crinkles or Holes scale from 0 to 10 enter:"; 
		cin >> holes2; '\n';
  	
    cout <<"Look at the Color scale from 0 to 10 enter:";	
	cin >> color2; '\n';
  		
	cout <<"Look at note if it's DIRTY scale from 0 to 5 enter: " ;  '\n';	
	cin >> dirt2; '\n';
  	
	cout <<"Look for INK Smears scale from 0 to 5 enter: " ; '\n'; 	
	cin >> smears2; '\n';
  		
	cout <<"Look for Stains  scale from 0 to 10 enter: " ; '\n'; 	
	cin >> stains2 ; '\n' ;
  		
	cout <<"Look to see if the Margins are EVEN scale from 0 to 5 enter: " ; '\n'; 	
	cin >> margins2 ; '\n';
  		
	cout <<" Look to see how many Folds scale from 0 to 10 enter: " ; '\n'; 	
	cin >> folds2; '\n';
  	

	cout <<"Determine the Overall condition scale from 0 to 20 enter: " ;  '\n';	
	cin >> overall2; '\n';
  		
	score2 += corners2 + tears2 + ink2 + ironed2 + holes2 + color2 + dirt + smears2 + stains2 + margins2 + folds2 + overall2 ; '\n';   
	cout << "Total Condition> REVERSE =" << score2; ".\n";
 
 
cout << "Max of 5 for Corners:" << "=" << corners; ".\n";;
        
		cout << "Max of 5 for Tears:" << "=" << tears; ".\n";; 
	      
		cout << "Max of 10 for Pencil or Ink:" << "=" << ink; ".\n";; 
	
		cout << "Max of 10 for Crinkles or Holes:" << "=" << holes; ".\n";; 
	
		cout << "Max of 10 for Color" << "=" << color; ".\n";
   

			// cin.get();   got check this
	
	
	        // lprint << "total condition"	 << score2; 	
	        // default: cout<<"Invalid item!" << endl;
		return 0; 
}
Come on GUYS! (& gals) can someone help this old guy create a FREE exe file alittle.
....
I just want to get this program to run in DOS..... Then I'll try to run it in Windows and then I should be at least a little more smarter to make it an APP.

Problem 1 -- HOW do I get the screen to skip a line? or acouple lines???

Problem 2 -- How do I get the TEXT at the top to Print out on the screen so it tells the user what the file is for? The guy who had it on his file, it printed out fine, and I tried everything and it does NOT print out on mine? weird???

problem 3 IS it possible to make it print to a printer! I have search everybody's code on the site (no I haven't) and nobody is trying to print to a printer.??? isn't Possible? (I don't know, I'm new at this C++)

WHAT ABOUT this idea! SNIP the dos window! print it out and then CUT out the data? I can make that work? what do you think???

tony

that's it for now!

problem 3 IS it possible to make it print to a printer! I have search everybody's code on the site (no I haven't) and nobody is trying to print to a printer.??? isn't Possible? (I don't know, I'm new at this C++)


Write the data to a text file, then just print the text file.
Topic archived. No new replies allowed.