Student Work(Project)|CS101 Programming Project:Lex-Based Tiny Calculator in C/C++|MIT

2 months ago
7

Student | Client Work(Project)|CS101 Programming Project:Tiny Arithmetic Calculator using Unix (f)lex Tool Output Video | Massachusetts Institute of Technology

If you want to get this work or code knock us
Whatsapp/Telegram:+8801772432396
Whatsapp/Telegram:+8801750264761
whatsapp profile link: https://wa.me/+8801772432396

🎓 University: Massachusetts Institute of Technology (MIT)
💻 Program: Bachelor of Science in Computer Science and Engineering
📚 Course: CS101 – Introduction to Programming and Software Development
📂 Project: Tiny Arithmetic Calculator using Unix (f)lex Tool

This project explores the fundamentals of lexical analysis and C/C++ programming by implementing a tiny calculator that supports:

➕ Addition
➖ Subtraction
✖️ Multiplication
➗ Division
🔺 Exponents

📌 Main Features:

Regular expression handling for numbers, operators, and identifiers
Lex integration using flex to tokenize arithmetic expressions
User-friendly CLI: Input expression → Press RETURN → Output result
Catches common input errors like invalid characters, missing operands, or incorrect syntax
Accepts integers, floating-point numbers, and scientific notation

📋 Sample Outputs:

2+3 → ✅ 2.00 + 3.00 = 5.00
3 * abc → ❌ abc - ERROR in the expression!!
123.0 * 12 → ✅ 1476.00
big_num/15 → ❌ Error detected on each token

🛠️ Tech Used:

C or C++
flex (lex tool)
Command-line interface
Compiler: gcc or g++

📢 This project showcases a hands-on intro to compilers, interpreters, and token scanning.
--------------------------
𝐖𝐞 𝐚𝐫𝐞 𝐡𝐞𝐥𝐩𝐢𝐧𝐠 𝐬𝐭𝐮𝐝𝐞𝐧𝐭𝐬 𝐨𝐮𝐭! 𝐏𝐫𝐨𝐯𝐢𝐝𝐢𝐧𝐠 𝐬𝐞𝐫𝐯𝐢𝐜𝐞𝐬 𝐟𝐨𝐫 𝐬𝐜𝐡𝐨𝐨𝐥/𝐜𝐨𝐥𝐥𝐞𝐠𝐞/𝐮𝐧𝐢𝐯𝐞𝐫𝐬𝐢𝐭𝐲 𝐚𝐬𝐬𝐢𝐠𝐧𝐦𝐞𝐧𝐭𝐬, 💻 𝐜𝐨𝐮𝐫𝐬𝐞𝐰𝐨𝐫𝐤,𝐥𝐚𝐛 𝐩𝐫𝐨𝐣𝐞𝐜𝐭𝐬/𝐫𝐞𝐩𝐨𝐫𝐭𝐬, 𝐞𝐱𝐚𝐦𝐬, 𝐪𝐮𝐢𝐳𝐳𝐞𝐬, 𝐝𝐢𝐬𝐬𝐞𝐫𝐭𝐚𝐭𝐢𝐨𝐧𝐬,𝐭𝐡𝐞𝐬𝐢𝐬; 𝐚𝐬 𝐰𝐞𝐥𝐥 𝐚𝐬 𝐩𝐫𝐨𝐨𝐟𝐫𝐞𝐚𝐝𝐢𝐧𝐠, 𝐞𝐫𝐫𝐨𝐫 𝐜𝐨𝐫𝐫𝐞𝐜𝐭𝐢𝐨𝐧, 𝐚𝐧𝐝 𝐛𝐮𝐠-𝐟𝐢𝐱𝐢𝐧𝐠. 𝐀𝐥𝐬𝐨 𝐝𝐨𝐢𝐧𝐠 𝐬𝐨𝐟𝐭𝐰𝐚𝐫𝐞 𝐜𝐨𝐦𝐩𝐚𝐧𝐲, 𝐚𝐠𝐞𝐧𝐜𝐢𝐞𝐬 𝐩𝐫𝐨𝐟𝐞𝐬𝐬𝐢𝐨𝐧𝐚𝐥 𝐩𝐫𝐨𝐣𝐞𝐜𝐭𝐬📊

we provide all type of academic services
🟩Assignments
🟩Projects
🟩Exams
🟩Quizz
🟩Lab
🟩Thesis
🟩Dissertation
🟩Reports
🟩Final year projects
🟩Programming
🟩Coursework
🟩Proposal Writing
🟩Essay writing
🟩Article writing
🟩LSAT exam
🟩Research paper writing
🟩Term paper
🟩Conference Paper
🟩Case study
🟩Proofreading
🟩DATA Analysis
🟩Stata Analysis
🟩Spss
🟩Review articles
🟩Referencing
🟩Correction
🟩Questionnaries
🟩Formatting
🟩Presentation
🟩Synopsis
🟩Ai Removal
🟩Paraphrasing
For take our services contact with us
Whatsapp/Telegram:+8801772432396
whatsapp profile link: https://wa.me/+8801772432396
https://wa.me/message/PYHN7PIZEHNQO1
Email 1:academiccourseworkservices@gmail.com
Email 2:programmingassignmentsservices@gmail.com
Discord username:programmingassignmenthelperbd
or Discord username:academiccourseworkservices
Discord Server profile link:https://discord.com/invite/C6DQUbgH2w
Instagram:https://www.instagram.com/programmingassignmenthelperbd/
Instagram Username:programmingassignmenthelperbd
Website:https://academiccourseworkservices.com/

Our Student Review /Client Feedback:https://drive.google.com/file/d/16Ametl8UY-RehW3Q4jYZmM1DxioCG3J8/view?usp=sharing

𝐎𝐮𝐫 𝐰𝐨𝐫𝐤 𝐩𝐨𝐫𝐭𝐟𝐨𝐥𝐢𝐨 𝐥𝐢𝐧𝐤:
https://www.youtube.com/channel/UCyOlJCraJuVs6oBUIYOoz0Q?sub_confirmation=1

𝗔𝗹𝗴𝗼𝗻𝗾𝘂𝗶𝗻 𝗰𝗼𝗹𝗹𝗲𝗴𝗲 𝗮𝗽𝗽𝗹𝗶𝗲𝗱 𝗮𝗿𝘁𝘀 𝗮𝗻𝗱 𝘁𝗲𝗰𝗵𝗻𝗼𝗹𝗼𝗴𝘆 𝘄𝗼𝗿𝗸 𝗽𝗼𝗿𝘁𝗳𝗼𝗹𝗶𝗼 𝗹𝗶𝗻𝗸:https://www.youtube.com/playlist?list=PL16VzvGeViA0g1ql7OVnoaNCGgZCZG0Lx

Regards
Assignment Helper

MITCS101# #LexTool #TinyCalculator #CProgramming #LexicalAnalysis #IntroToProgramming #RegexProject #CLICalculator #MITComputerScience #LexWithC #CSProject #MITReels
#ProgrammingInC #ScannerGenerator #FlexTool

─────────
Keywords :
#BeginnerProgramming #CodingAssignment #ReplitProject #PythonBasics #ComputerScienceMIT #ProgrammingProject #StudentWork #CSFundamentals #CodeDemo
#MassachusettsInstituteOfTechnology #MITUSA #MITProjects
#AIResearchMIT #InnovationSupportUSA #MITCapstone #DeepLearningMIT #DissertationHelpMIT#MLProjectsMIT
#PythonCodingUSA #NLPResearchMIT #DataScienceMIT #AIModelsMIT
#StartupMIT #MITEntrepreneurship #InnovationSloanMIT #BusinessAnalyticsUSA #StrategyProjectsMIT

Loading 1 comment...