Find Jobs
Hire Freelancers

bowling program

$10-15 USD

Berlangsung
Dibuat lebih dari 21 tahun yang lalu

$10-15 USD

Dibayar ketika dikirim
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.
ID Proyek: 2888296

Tentang proyek

8 proposal
Proyek remot
Aktif 21 tahun yang lalu

Ingin menghasilkan uang?

Keuntungan menawar di Freelancer

Tentukan anggaran dan garis waktu Anda
Dapatkan bayaran atas pekerjaan Anda
Uraikan proposal Anda
Gratis mendaftar dan menawar pekerjaan
Diberikan kepada:
Avatar Pengguna
See private message.
$7 USD dalam 14 hari
5,0 (3 ulasan)
0,8
0,8
8 freelancer menawar dengan rata-rata $10 USD untuk pekerjaan ini
Avatar Pengguna
See private message.
$10,20 USD dalam 14 hari
4,9 (167 ulasan)
5,8
5,8
Avatar Pengguna
See private message.
$4,25 USD dalam 14 hari
4,7 (54 ulasan)
5,3
5,3
Avatar Pengguna
See private message.
$12,75 USD dalam 14 hari
4,8 (34 ulasan)
4,4
4,4
Avatar Pengguna
See private message.
$12,75 USD dalam 14 hari
4,7 (17 ulasan)
3,0
3,0
Avatar Pengguna
See private message.
$8,50 USD dalam 14 hari
5,0 (4 ulasan)
1,1
1,1
Avatar Pengguna
See private message.
$12,75 USD dalam 14 hari
0,0 (0 ulasan)
0,0
0,0
Avatar Pengguna
See private message.
$8,50 USD dalam 14 hari
0,0 (0 ulasan)
0,0
0,0

Tentang klien

Bendera UNITED STATES
United States
5,0
2
Anggota sejak Nov 26, 2002

Verifikasi Klien

Terima kasih! Kami telah mengirim Anda email untuk mengklaim kredit gratis Anda.
Anda sesuatu yang salah saat mengirimkan Anda email. Silakan coba lagi.
Pengguna Terdaftar Total Pekerjaan Terpasang
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuat pratinjau
Izin diberikan untuk Geolokasi.
Sesi login Anda telah kedaluwarsa dan Anda sudah keluar. Silakan login kembali.