Find Jobs
Hire Freelancers

bowling program

$10-15 USD

In Bearbeitung
Veröffentlicht vor mehr als 21 Jahren

$10-15 USD

Bezahlt bei Lieferung
Write a program that will calculate and print the frame-by-frame totals for bowling games given an input sequence representing the number of balls knocked down by each ball. Your program must be well structured and documented and must meet all of the conditions described below. The input for the program will come from a file named [login to view URL] and will consist of an unknown number of lines. Each line will contain a sequence of integer values representing the number of pins knocked down by each ball during a game. For example, a line might look like this: 7 2 9 1 10 10 8 2 7 3 6 2 10 7 2 10 7 2 As your program reads the data from each line of the input file it should output the frame-by-frame score to an output file. For example, given the data above the output would be: 9 29 57 77 94 110 118 137 146 165 The name of the output file must be your last name with a .txt extension, such as [login to view URL] Since computing scores for a single game essentially consists of repeatedly calculating the score for a particular frame, and since the calculations, input and output for a frame depend on whether it was a strike, spare or open frame, you should be able to extract this work into three separate functions. The work in main() should then be limited to managing files, input of initial data, determination of the type of frame (strike, spare, open) and calling the appropriate function. ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. ## Platform C++ ## Deadline information homework project, if your interested, there are certain restrictions of the kinds of processes that can be used, mainly only very simple language, like iostream, fstream, string, things like that.
Projekt-ID: 2888296

Über das Projekt

8 Vorschläge
Remote Projekt
Aktiv vor 21 Jahren

Möchten Sie etwas Geld verdienen?

Vorteile einer Ausschreibung auf Freelancer

Legen Sie Ihr Budget und Ihren Zeitrahmen fest
Für Ihre Arbeit bezahlt werden
Skizzieren Sie Ihren Vorschlag
Sie können sich kostenlos anmelden und auf Aufträge bieten
Vergeben an:
Avatar des Nutzers
See private message.
$7 USD in 14 Tagen
5,0 (3 Bewertungen)
0,8
0,8
8 Freelancer bieten im Durchschnitt $10 USD für diesen Auftrag
Avatar des Nutzers
See private message.
$10,20 USD in 14 Tagen
4,9 (167 Bewertungen)
5,8
5,8
Avatar des Nutzers
See private message.
$4,25 USD in 14 Tagen
4,7 (54 Bewertungen)
5,3
5,3
Avatar des Nutzers
See private message.
$12,75 USD in 14 Tagen
4,8 (34 Bewertungen)
4,4
4,4
Avatar des Nutzers
See private message.
$12,75 USD in 14 Tagen
4,7 (17 Bewertungen)
3,0
3,0
Avatar des Nutzers
See private message.
$8,50 USD in 14 Tagen
5,0 (4 Bewertungen)
1,1
1,1
Avatar des Nutzers
See private message.
$12,75 USD in 14 Tagen
0,0 (0 Bewertungen)
0,0
0,0
Avatar des Nutzers
See private message.
$8,50 USD in 14 Tagen
0,0 (0 Bewertungen)
0,0
0,0

Über den Kunden

Flagge von UNITED STATES
United States
5,0
2
Mitglied seit Nov. 26, 2002

Kundenüberprüfung

Danke! Wir haben Ihnen per E-Mail einen Link geschickt, über den Sie Ihr kostenloses Guthaben anfordern können.
Beim Senden Ihrer E-Mail ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.
Registrierte Benutzer Veröffentlichte Jobs
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Vorschau wird geladen
Erlaubnis zur Geolokalisierung erteilt.
Ihre Anmeldesitzung ist abgelaufen und Sie wurden abgemeldet. Bitte melden Sie sich erneut an.