Count station and price C++

Раздел
Программирование
Предмет
Просмотров
261
Покупок
0
Антиплагиат
Не указан
Размещена
26 Мая 2021 в 11:46
ВУЗ
Не указан
Курс
Не указан
Стоимость
100 ₽
Демо-файлы   
1
png
Снимок Снимок
1.3 Кбайт 1.3 Кбайт
Файлы работы   
1
Каждая работа проверяется на плагиат, на момент публикации уникальность составляет не менее 40% по системе проверки eTXT.
zip
Station
8.9 Мбайт 100 ₽
Описание

The program accepts two inputs, namely: a train station number indicating where the passenger will board the train, a second train station number indicating where the passenger will get off from the train. Train stations are numbered consecutively from 1 to 100. The train fare is computed based on the number of stations that the passenger will pass through. Included in the counting are the stations where he/she boarded and the station where he/she got off. For example, if the passenger boarded at station 51 and got off at station 85, then the passengers passed through a total of 35 stations. A fixed fare of 30.00 Pesos should be paid by the passenger for the first 20 stations. An additional 1.25 Pesos is charged for every additional station. The program should output the the count or number of stations passed through by the passenger and the train fare.

Вам подходит эта работа?
Похожие работы
Другие работы автора
Технологические процессы в строительстве
Дипломная работа Дипломная
2 Мая 2022 в 12:41
308
0 покупок
C/C++
Задача Задача
2 Мая 2022 в 12:29
305
0 покупок
C/C++
Задача Задача
9 Апр 2022 в 19:23
370
0 покупок
C/C++
Курсовая работа Курсовая
8 Апр 2022 в 13:35
371 +1
1 покупка
C/C++
Задача Задача
7 Апр 2022 в 13:33
296
0 покупок
C/C++
Задача Задача
7 Апр 2022 в 13:30
292 +1
0 покупок
C/C++
Задача Задача
7 Апр 2022 в 13:18
339
0 покупок
C/C++
Задача Задача
7 Апр 2022 в 12:48
336
0 покупок
C/C++
Задача Задача
7 Апр 2022 в 12:34
346 +1
0 покупок
MatLab
Задача Задача
7 Апр 2022 в 12:29
242 +1
0 покупок
Pascal
Задача Задача
7 Апр 2022 в 12:15
298 +1
0 покупок
Web-разработки
Отчет по практике Практика
7 Апр 2022 в 11:08
214
0 покупок
Web-разработки
Задача Задача
7 Апр 2022 в 10:59
169 +1
0 покупок
C/C++
Задача Задача
7 Апр 2022 в 09:42
321
0 покупок
C/C++
Задача Задача
11 Фев 2022 в 19:22
260
0 покупок
Microsoft Excel
Задача Задача
11 Фев 2022 в 19:11
247
0 покупок
C/C++
Лабораторная работа Лабораторная
11 Фев 2022 в 19:05
229
0 покупок
Web-разработки
Курсовая работа Курсовая
11 Фев 2022 в 18:54
257 +1
1 покупка
C/C++
Задача Задача
11 Фев 2022 в 18:42
272
0 покупок
Темы журнала
Показать ещё
Прямой эфир