CSE106 - Fundamentals of Web Design

Assignment 4

Details of the Student:

  1. Name: Thashan Anil Dasashish
  2. Enrollment ID: SAU/FET/BTECH(CSE)/2025/213
  3. Section: D
  4. Branch: B. Tech. CSE - Semester 2
  5. Email: thashan.dasashish2025@students.sau.ac.in

Index


Question 4:

Fare Calculator

A ride fare is computed as follows: Input Format: Take base, distance, minutesLate, and seed using prompt().
Output Format: Print the final fare using alert().
Constraints: 1 ≤ base ≤ 1000, 0 ≤ distance ≤ 100, 0 ≤ minutesLate ≤ 120, 0 ≤ seed ≤ 9


Solution:

Press the button to execute JS solution of the question.