How to resolve the algorithm Date format step by step in the TUSCRIPT programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm Date format step by step in the TUSCRIPT programming language

Table of Contents

Problem Statement

Display the   current date   in the formats of:

Let's start with the solution:

Step by Step solution about How to resolve the algorithm Date format step by step in the TUSCRIPT programming language

Source code in the tuscript programming language

$$ MODE TUSCRIPT
SET dayofweek = DATE (today,day,month,year,number)

SET months=*
DATA January
DATA Februari
DATA March
DATA April
DATA Mai
DATA June
DATA July
DATA August
DATA September
DATA October
DATA November
DATA December

SET days="Monday'Tuesday'Wendsday'Thursday'Fryday'Saturday'Sonday"

SET nameofday  =SELECT (days,#dayofweek)
SET nameofmonth=SELECT (months,#month)

SET format1=JOIN (year,"-",month,day)
SET format2=CONCAT (nameofday,", ",nameofmonth," ",day, ", ",year)

PRINT format1
PRINT format2

  

You may also check:How to resolve the algorithm Hofstadter Q sequence step by step in the Kotlin programming language
You may also check:How to resolve the algorithm Read a specific line from a file step by step in the PARI/GP programming language
You may also check:How to resolve the algorithm Reverse words in a string step by step in the Julia programming language
You may also check:How to resolve the algorithm Langton's ant step by step in the Ruby programming language
You may also check:How to resolve the algorithm Set puzzle step by step in the Perl programming language