Vous êtes sur la page 1sur 3

Ifstream

1.Start.
2. read inData.txt.
2.1. Print “Salesman Name: Amin.”
2.2. Print “Amin total sales in week1“
2.3. Print “Amin total sales in week2“
2.4. Print “Amin total sales in week3“
2.5. Print “Amin total sales in week4“
2.6. for( i = 0; texts[i]; i++ )
2.7. if(texts[i]<100)
2.8. Print “commision Amin week 1:”
2.9. else if(texts[i]<200)
2.9.1. Print “commision Amin week 1:”
2.9.1.11. else if(texts[i]<400)
2.9.1.1.1. Print “commision Amin week 1:”
2.9.1.1.2. else
2.9.2 Print “commision Amin week 1:”
2.1. Print “Salesman Name: Amin.”
2.2. Print “Amin total sales in week1“
2.3. Print “Amin total sales in week2“
2.4. Print “Amin total sales in week3“
2.5. Print “Amin total sales in week4“
2.6. for( i = 0; texts[i]; i++ )
2.7. if(texts[i]<100)
2.8. Print “commision Amin week 1:”
2.9. else if(texts[i]<200)
2.9.1. Print “commision Amin week 1:”
2.9.1.11. else if(texts[i]<400)
2.9.1.1.1. Print “commision Amin week 1:”
2.9.1.1.2. else
2.9.2 Print “commision Amin week 1:”
2.1. Print “Salesman Name: Amin.”
2.2. Print “Amin total sales in week1“
2.3. Print “Amin total sales in week2“
2.4. Print “Amin total sales in week3“
2.5. Print “Amin total sales in week4“
2.6. for( i = 0; texts[i]; i++ )
2.7. if(texts[i]<100)
2.8. Print “commision Amin week 1:”
2.9. else if(texts[i]<200)
2.9.1. Print “commision Amin week 1:”
2.9.1.11. else if(texts[i]<400)
2.9.1.1.1. Print “commision Amin week 1:”
2.9.1.1.2. else
2.9.2 Print “commision Amin week 1:”
2.1. Print “Salesman Name: Amin.”
2.2. Print “Amin total sales in week1“
2.3. Print “Amin total sales in week2“
2.4. Print “Amin total sales in week3“
2.5. Print “Amin total sales in week4“
2.6. for( i = 0; texts[i]; i++ )
2.7. if(texts[i]<100)
2.8. Print “commision Amin week 1:”
2.9. else if(texts[i]<200)
2.9.1. Print “commision Amin week 1:”
2.9.1.11. else if(texts[i]<400)
2.9.1.1.1. Print “commision Amin week 1:”
2.9.1.1.2. else
2.9.2 Print “commision Amin week 1:”
2.1. Print “Salesman Name: Amin.”
2.2. Print “Amin total sales in week1“
2.3. Print “Amin total sales in week2“
2.4. Print “Amin total sales in week3“
2.5. Print “Amin total sales in week4“
2.6. for( i = 0; texts[i]; i++ )
2.7. if(texts[i]<100)
2.8. Print “commision Amin week 1:”
2.9. else if(texts[i]<200)
2.9.1. Print “commision Amin week 1:”
2.9.1.11. else if(texts[i]<400)
2.9.1.1.1. Print “commision Amin week 1:”
2.9.1.1.2. else
2.9.2 Print “commision Amin week 1:”
45 Print “Done read the text files to this output”
3. End.

Vous aimerez peut-être aussi