Skip to main content

Write a program that ask a user to input passenger name, number of tickets and destination .The program calculates and displays total bus fare on the basic of following rate.

Destination        Rate(Rs.Per Person) 

Pokhara                350

Ilam                      1030

Birgung                  325

Biratnagar              780


# Qbasic Program

CLS

INPUT " Passenger Name";PA

INPUT " Number Of Ticket "; TA

INPUT " Destination"; D

IF DA$="kathmandu" OR DA$= "KATHMANDU" THEN

R= 350

ELSEIF DA$= "ilam" OR DA$="ILAM" THEN

R=1030

ELSEIF DA$="birgung" OR DA$="BIRGUNG" THEN

R= 325

ELSEIF DA$="biratnagar" OR DA$=" BIRATNAGAR" THEN

R=780


TM=TA*R

PRINT " You Have To Pay=";TM

ENDIF

END

Comments

Popular posts from this blog

Speech (Narration)

Narration  Any event or condition which was done in past . If we are talking about that action then that is callled narration . 1. Direct Speech Any extract word which is said by oneone is called Direct Speech. 2. Indirect Speech ( Reported Speech) If You said something by doing backshifting tenses and verbs then that is called Inddirect speech. Example: She said that she was not felling well that day . Some Rules Of Tenses in Narration. Present Indefinate 👉      Past Indefinate Present Contionous  👉 Past Continous Present Perfect 👉 Past Perfect Present Perfect Contionous 👉Past Perfect Contionous Will 👉Would Past Indefinate 👉 Past Perfect Past Continous 👉 Past Perfect Continous

Writa a program to sum two numbers in Qbasic

 CLS INPUT " Enter firs digit";N1 INPUT " Enter Second digit";N2 SUM= N1+N2 PRINT" Sum Of two Number";SUM END #Program in Qbasic #Output in Qbasic

Write the necessary HTML codes to prepare a web page to describe about your school.

<HTML> <HEAD> <TITLE> My School </TITLE> </HEAD> <BODY> <BODY BGCOLOR="blue" TEXT="WHITE"> <CENTER> <H2> My School</H2> </CENTER> <HR> <HR> <IMG SRC="https://www.collegenp.com/uploads/2020/04/Ratna-Rajya-Secondary-School.jpg" WIDTH=100 HEIGHT=100 ALIGN="Right" <p>My School Name is Vidya Slc . It is Situated in Kathmandu. (write about your school) </p> <H2> Our School Features</H2> <P> Vidya Slc is a govermental school having all the necessary features to be a good school . There is a clean and pure enviroment  for study for student . There is a computer lab in school so, the intreseted student can learn computer . There is seprate Girls and  Boys Toilet rooms. There is a canten inside the school. All the teachers in the school are well qualified and Exrinced  . In Overall this school is one of the best school of Nepal. </p> </BO...