Preview

Lazarillo de Tormes and the Swindler

Satisfactory Essays
Open Document
Open Document
779 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Lazarillo de Tormes and the Swindler
/*Class.Project 1*/ import java.io.BufferedReader; import java.io.FileReader; import java.util.StringTokenizer; import java.io.*; import java.math.BigDecimal; import java.util.*;

/** * * @author: Huma UmmulBanin Zaidi * @Project:Project1, Data Structure. * Running program looks like: This program finds sum or product of a LARGE numbers of integers. Enter as many integers > 0 as you would like. Enter the numbers: 1 3 5 7 7 5 3 1 Please select the number of one of these options: 1. Sum the numbers in the list 2. Multiply the numbers in the list Your choice: 1 Answer is: 16 Exiting program... */

public class Project1 { //public class ReadFile { // Read lists of numbers from a specified text file. public static void main(String[] args){

if(args.length == 0) System.out.println("No file specified."); else { FileReader theFile; BufferedReader inFile; String oneLine; int s; try{ // file not found exception must be caught theFile = new FileReader(args[0]); inFile = new BufferedReader(theFile); while((oneLine = inFile.readLine()) != null) { String numbers[] = oneLine.split(","); // " " for space s = 0; for (int i=0; i<numbers.length; i++) s=s+Integer.parseInt(numbers[i]); System.out.println(numbers.length + "numbers Processed. There Sum equals" +s+ "."); } //end while } // else catch (Exception e) {System.out.println(e); } System.out.println("Test"); BigDecimal n1 = new BigDecimal("123"); System.out.println(n1); BigDecimal n2 = new BigDecimal ("345"); LargeNumbers a = new LargeNumbers(n1); LargeNumbers b = new LargeNumbers(n2); System.out.println(a.toString()); System.out.println(b.toString()); LargeNumbers.AddNumbers (a,b);

You May Also Find These Documents Helpful

  • Satisfactory Essays

    cout << num1 << " + " << num2 << " = " << num1+num2;…

    • 426 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    POW 9 IMP3

    • 1192 Words
    • 5 Pages

    Create 2 formulas, one that will calculate the last number in terms of the first number and a constant increase in rate as well as the total amount of numbers. The second formula will add ass of the resulting numbers from the first formula together after the last number is calculated.…

    • 1192 Words
    • 5 Pages
    Powerful Essays
  • Powerful Essays

    System.out.println("i = " + i + " f = " + f + " d = " + d);…

    • 2338 Words
    • 10 Pages
    Powerful Essays
  • Good Essays

    On November 19th I attended an opera by the Auburn University’s Department of Music Opera Workshop. The opera was titled “The Art of Deception” and consisted of 6 marvelous pieces, numerous with sub-pieces that summed it up as a whole. The opera’s intent was to deceive you as well as create wondering in your imagination, with numerous illusions and mysteries portrayed in the performance itself.…

    • 585 Words
    • 3 Pages
    Good Essays
  • Good Essays

    In the essay, “The Fake Trade,” Dana Thomas makes a direct statement, “Most important, we need to spread the word on the devastating effects counterfeiting has on society today.” She also goes on to say, “But the reality is that we’re all victims of counterfeiting, whether from the loss of jobs or of tax revenue that could fund our schools and our roads…” Since this is her belief her purpose is to inform readers about counterfeit goods. She gives many statistics on how bad counterfeiting goods can be. “Since 1982, the global trade in counterfeit and pirated goods has grown from an estimated $5.5 billion to approximately $600 billion annually.” She continues to give a few examples of counterfeit goods. “The Food and Drug Administration has…

    • 382 Words
    • 2 Pages
    Good Essays
  • Better Essays

    The late 19th century industrial leaders have often been called "industrial statesmen" for the great economic power they brought to America. However, they have also been called "robber barons” since they built this great wealth by abusing the system, their employees, and destroying their competitors. These kings of industry displayed characteristics of both industrial statesmen and robber barons. But which would better describe them? They had their faults, but overall these leaders should be respected for all they have done.…

    • 929 Words
    • 4 Pages
    Better Essays
  • Powerful Essays

    The Thief Lord

    • 1272 Words
    • 6 Pages

    All this time a detective named Victor Getz had been looking for Prosper and Bon by the orders of their Aunt Esther and Uncle Max. Prosper and Riccio were walking home from the exchange when they ran into Victor. Prosper knew right away as soon as he gave him a strange look that he was going to follow him. They ran and jumped onto a ferry to cross the great canal and as they looked back they saw Victor on the shore.…

    • 1272 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    monologue on crooks

    • 359 Words
    • 2 Pages

    Life is really hard at the moment. I was ‘aving the time of me life on Saturday night wiv that big bindlestick whats his name? ( scratch back, stroke chin, sigh) Ahhhh Lennie thats it. Well anyway we was just sittin’ and talkin’ and talkin’ and sittin’ ‘bout this amazing place that George and Lennie was going to hav’. It gave me hope it did to get out this bloody place, start a fresh life and maybe just maybe be treated like a real guy for a change. (imagine it, rest chin on hands) I really thought this would happen I really did and Candy perked up as well saying he would pay for it with his compensation for his hand. But then blommin’ Lennie has to go and mess it all up that crazy bastard... He goes (sigh) and has to kill Curley’s wife. I heard it all happenin’ from inside me shed, Curley’s wife was bragging on about bloody anything to try and get Lennie into trouble! Then starts talking about her hair and Lennies touchin’ it and strokin’ it and I start hearin’ these muffled screams and I thought they was in me head but then there was a little snap and he must of snapped her neck! (sigh) Curley went bloomin’ crazy and started shouting an’ swearin’ and throwing things.They had all gone to find Lennie and sort him out. It was all silent and I closed me eyes for a little nap when from a distance I heard a single, muffled but still there, gun shot. Candy came shufflin’ back into my place scratchin’ his stump and tells me things I didn’t want to here. ‘ He’s dead Crooks they killed him. He didn’t know what he was doing poor little sod and now George has gone and shot him I thought they were friends Crooks I really did and I thought George was better than that Lennie even ‘ad Carlton’s gun an’ George just took it off him like a lamb. Anyways I’d better be off’ And Candy left me in deep thought...…

    • 359 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    The activities of the king and the duke show us as much about the victims of fraud as it does about the perpetrators. Discuss, making close reference to the text. Include a detailed discussion of one of these characters' scams.…

    • 915 Words
    • 4 Pages
    Good Essays
  • Good Essays

    There are six sins that can keep you from going to heaven if committed. These sins include gluttony, envy, pride, laziness, anger and lechery. Greed can blind a man to taking the evil path and thinking it is the right one. It can also make it hard to differentiate between right and wrong. The Pardoner’s Tale by Geoffrey Chaucer is a tale showing gluttony taking the life of three so called faithful friends. The desire for money and wealth makes one discourteous, greedy and sinful as portrayed by the three friends stabbing each other in the back. These three men got their share of consequences accordingly to their unmannerly behavior. The first act will show the three rioters coming to ignorant conclusions while being drunk. The next act will show how the three companions act with the old man. Then the last act will show how the greediness for treasure and wealth takes over the three companions and makes them stab one another in the back.…

    • 711 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Grano's Fraud Case

    • 283 Words
    • 2 Pages

    Tanner can get his funds back Fraud. When Tanner was getting information over the hotel, Grano, the owner, stated that the motel netted $30,000 during the previous year and that it will net at least $45,000 for the next year. When Grano turns over the motel books, which had all the information of the motel, and is where Grano could have gotten the information of the numbers that he told Grano during negotiation. But, he committed an element of fraud which is silence because in the motel books it CLEARLY shows that Grano’s motel netted only $15,000 the previous. Based on the numbers, it shows that he clearly lied because if the number was clear shown and half the price when stated, it is considered to fraud. As well, during this one year period,…

    • 283 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Some people who want to get revenge often go to extents even to cheat people through hypocrisy. . "The Cask of Amontillado" recounts the last meeting between two aristocratic gentlemen, the narrator Montresor and the wine connoisseur Fortunato. While Fortunato remains joyful ignorant of Montresor's true intentions for most of the story, the visible pleasure Montresor takes in relating his story, proudly recalling every detail fifty years after the fact, suggests a state of mind free of remorse and detached from any sense of conscience. All Montresor thinks about of is killing Fortunato and he takes advantage of him. Montresor’s hypocrisy is shown by his the speech he uses to make Fortunato blind to reality. Fortunato does not have a clue…

    • 1064 Words
    • 5 Pages
    Good Essays
  • Good Essays

    It is evident that a license is required to manage a professional boxer. The fact that Castillo was not licensed may make the contract voidable not only this, but Castillo ultimately failed to execute the writing requirement which is crucial in this case because, the contract falls under the Statue of Frauds. With the existence of contract laws it is crucial for the employer to be aware of all the laws and theories that surround a contract. In this case Jose Castillo who does not hold a management license, orally agreed to assume Barrera’s management and after Castillo helped Barrera settle a few lawsuits and financial problems Barrera stopped communicating with Castillo. With no surprise this case brings up a lot of issues and legal questions.…

    • 977 Words
    • 4 Pages
    Good Essays
  • Better Essays

    In the book The Art of Deception by Kevin D. Mitnick I chose chapter 9 to summarize and relate it a current news article. Chapter 9 is about the reverse sting and how it is used by con artists to pull of major scams. Mitnick also tells us solutions on how to prevent such scams and how to be wary of the social engineer.…

    • 1284 Words
    • 6 Pages
    Better Essays
  • Better Essays

    Pablo Escobar the man who Colombia will always remember. How they remember him is totally different depending on each person. He was a humble person who came from one of the poorest parts of Colombia. He was at the bottom, but his dream was higher than any other kid his age. At the end of the day people saw him as two things only The Robin Hood of Colombia or the Terrorist of Colombia.…

    • 1279 Words
    • 6 Pages
    Better Essays