zyBooks My library> COP 1220: Introduction to Programming in C home > 6.43: LAB: Toll calculation E zyBooks catalog ? He

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899604
Joined: Mon Aug 02, 2021 8:13 am

zyBooks My library> COP 1220: Introduction to Programming in C home > 6.43: LAB: Toll calculation E zyBooks catalog ? He

Post by answerhappygod »

Zybooks My Library Cop 1220 Introduction To Programming In C Home 6 43 Lab Toll Calculation E Zybooks Catalog He 1
Zybooks My Library Cop 1220 Introduction To Programming In C Home 6 43 Lab Toll Calculation E Zybooks Catalog He 1 (79.5 KiB) Viewed 41 times
Programming in C, add notes if you can. Thank you!
zyBooks My library> COP 1220: Introduction to Programming in C home > 6.43: LAB: Toll calculation E zyBooks catalog ? Help/FAQ 16.42 LAB: Calculate average Students: Section 6.43 is a part of 1 assignment: Final Programs Requirements: zyLab Due: 05/03/2022, 11:59 PM EDT 6.43 LAB: Toll calculation Toll roads have different fees based on the time of day and on weekends. Write a function CaloToll that has three parameters: the current hour of time (int), whether the time is morning (boolean), and whether the day is a weekend (boolean). The function returns the correct toll fee (double), based on the chart below. Weekday Tolls . Before 7:00 am ($1.15) • 7:00 am to 9:59 am ($2.95) • 10:00 am to 2:59 pm ($1.90) • 3:00 pm to 7:59 pm ($3.95) • Starting 8:00 pm ($1.40) Weekend Tolls • Before 7:00 am ($1.05) • 7:00 am to 7:59 pm ($2.15) • Starting 8:00 pm ($1.10) Ex: The function calls below, with the given arguments will return the following toll fees: Calctoll(8, true, false) returns 2.95 Calctoll(1, false, false) returns 1.90 Calctoll(3, false, true) returns 2.15 Calctoll(5, true, true) returns 1.05 363096 2422986.0x3say? LAB ACTIVITY 6.43.1: LAB: Toll calculation 0 / 10
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply