CS3361 - Assignment 4
.docx
keyboard_arrow_up
School
Texas Tech University *
*We aren’t endorsed by this school
Course
3361
Subject
Computer Science
Date
Dec 6, 2023
Type
docx
Pages
6
Uploaded by BarristerMooseMaster1059
CS 3361 | Fall 2023 | Assignment #4
Name & R#: _________________________________
Assignment #4
Backus-Naur Form
Instructions
For the questions below, either answer the questions digitally in Word or print out the document to do by hand
and scan in a completed copy.
What to turn in to BlackBoard
A PDF copy of this document, either as a scanned copy when you solve it by hand or a converted copy if you
solve it digitally.
Double check your work before you submit it, missing pages or answers will be counted as
incorrect, and you won’t be allowed to turn them in later for additional credit.
Name your submission
<FirstName>_<LastName>_<R#>.pdf
(example:
Eric_Rees_R123456.pdf).
Do not turn in your answers in any
other format other than .pdf.
Assignment
For the following BNF grammar rules, answer the questions that follow.
<program>
::= <stmts>
<stmts>
::= <stmt>
|
<stmt> ; <stmts>
<stmt>
::= <var> = <expr>
<var>
::= a
|
b
|
c
|
d
<expr>
::= <term>
|
<expr> <op> <expr>
<term>
::= <var>
|
const
<op>
::= +
|
-
|
*
|
/
|
%
1)
(5 pts)
Is this grammar ambiguous?
(Yes / No)
____________
2)
(10 pts)
If this grammar is ambiguous, re-write the rules to remove the ambiguity such that:
a.
You do not add any new grammar rules
b.
You only change 1 nonterminal within 1 grammar rule.
c.
Any previously valid sentence continues to be valid.
If the grammar is not ambiguous, re-write the rules as is from above with no changes.
CS 3361 | Fall 2023 | Assignment #4
Name & R#: _________________________________
3)
(15 pts)
Using your grammar from Question #2, derive the following sentence. You must
show each
sentential form / step for the derivation. If the sentence cannot be derived, stop at the last step that you
could derive and write “Cannot Continue Derivation”.
Sentence:
a = const ; b = a ; c = a + const / const ;
CS 3361 | Fall 2023 | Assignment #4
Name & R#: _________________________________
4)
(15 pts)
Using your grammar from Question #2, derive the following sentence. You must
show each
sentential form / step for the derivation. If the sentence cannot be derived, stop at the last step that you
could derive and write “Cannot Continue Derivation”.
Sentence:
a = a + b - c ; c = d – const ; d = const
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
Microsoft Visual Basic .VB
Complete the following case programming assignment. To upload and submit the program and materials you created, click the Choose File button to find and select your saved documents. Make sure that the files are saved with your last name in the file name (Example: ch4_case1_Jones.doc).DANCE BANDDesign a Windows application and write the code that will execute according to the program requirements in Figure 8-107. Before designing the user interface, create a Use Case Definition. Before writing the code, create an event planning document for each event in the program.
arrow_forward
PYTHON PROGRAMMING
arrow_forward
PYTHON PROGRAMMING
arrow_forward
PYTHON PROGRAMMING
arrow_forward
i need the answer quickly
arrow_forward
PYTHON PROGRAMMING ONLY PLEASE
I am doing a patient portal/record keeping system i already have the layout need help writing the code.
Here is my layout below
Menu:
View personal information
Update personal information
View medical history
Update medical history
Exit
DECISION BLOCKS
View personal information:
View patient personal information( Name, Date of Birth, Address, Phone Number)
Press Console: "You have chosen to view your personal information."
Update personal information:
Ask the patient to update personal information
Update the patient personal information
Print to the console: "You have chosen to update your personal information."
View historical medical information:
View patient medical history (medical history, surgery, medications, allergies, etc.)
Prints to console: "You have chosen to view your medical history."
Update medical history:
Prompt patient to enter updated medical information
Update the patient's medical history
Print to the console: "You have…
arrow_forward
All questions must be resolved quickly
arrow_forward
Html code . Put up code with screenshot
arrow_forward
Text data can be imported into your Excel worksheet and saved in Excel format. Which of the following is not used as a delimiter between elements or columns of text data?
Select one:
a. Semicolon
b. Space
c. Formula
d. Comma
arrow_forward
Please help!!!
arrow_forward
Computer Science
Objective:To add scripting to the existing web page and work with JavaScript Es-6 features. The ES-6 concepts like class, object, getter and setter methods.
Problem Description:Genteel Software Solution is one of the famous software companies. They plan to increase the salary of their employees based on their experience.You being their software consultant have been approached to develop web application to implement the functionality to manage the salary of the employees.
Following are the files that contain code snippets
index.html
HTML for webpage (complete implementation is given for you). You only have to run this. No change needs to be done in this file.
script.js
Add your code to this file for the functions given.
Procedure to complete the exercise
Class
Properties
Methods
Employee
employeeIdemployeeNamesalaryexperience
Include the getters and setters method for all the attributes.
Include a parameterized constructor of three…
arrow_forward
IT Application Tools in a Business Environment This course focused on business productivity software applications and professional behavior in computing, including word processing (as needed), spreadsheets, databases, presentation graphics, business-oriented utilization of the Internet and other applicable tools. In this course project, create an infographic discussing the importance of utilizing IT Application Tools in a business environment. Requirements: Submit in PDF format Include the following details: o Name: [Last name, First Name, M.I] o Student No. o Program: o Date
arrow_forward
ionic programming by Visual Studio Code
Add images:
O User must be able to select their own image
from the phone
O Image must be stored in file system of app
and displayed
arrow_forward
Move the appropriate file types from the list on the left to the correct descriptions on the right.
File Types (Icons)
XE
F
E
4
Answer Area
A file where you create the user interface
allowing you to display information and react to
user input.
A file that contains all the setup information for
your app.
A file that contains coded app logic.
A file that contains a list of available resources
to be used in the project.
arrow_forward
Design an Android application
arrow_forward
Struggling with the code for Programming: HelloWorld Assignment
arrow_forward
Select an advantage of server-side scripting Browser and HTML file compatibility
What is not true about controls?
a. Checkbox list control allows multiple selections
b. Label can be used to display an output
c There is no major difference between a Dropdown list and List box controls
d. Text box can be used for input and output
arrow_forward
MM Image Processing Project
Use your own images that are different than the images in the tutorial file.Include in your report the following only:
1) all the commands producing images,
2) the images produced, and
3) comment briefly on every image showing what was done and describe the result.
All commands and comments MUST BE IN TEXT (NOT IMAGES).You may modify the filters and show the result as well.Compile all commands text that you used in an appendix.Save your WORD file as PDF as well.
arrow_forward
Using C# in Visual Studio:
Create the graphical user interfaces as shown below. Provide appropriate names for all the controls.
I need the design of the form specific not the others please. I have already done them. Thank you.
arrow_forward
Lesson: Visual BasicTopic: Data Files
arrow_forward
Q-3 and Q-4
arrow_forward
Laboratory Exercise Building C# Console Application Objective: At the end of the exercise, the students should be able to: • Create a console application with basic syntax. Materials: ▪ One (1) personal computer with pre-installed Windows Operating System ▪ Visual Studio IDE 2015 or higher Instructions: 1. Create a folder on your local drive with name format of Lastname_FristName (ex. Diaz_Jess). 2. Open Visual Studio IDE. 3. Create new project and named the project as GreetingApp and the class GreetingProgram. 4. Create a console program that will ask the user to enter his/her name, number of enrolled courses, and the price of his/her favorite book. Display the entered information. 5. See Figure 1 of example output.
arrow_forward
Details on how to perform these tasks in Microsoft Office Word The document should now have a title.You may also include a hyperlink pointing to an external file that will be used as a connection.
arrow_forward
All questions must be resolved quickly
arrow_forward
DO NOT COPY FROM OTHER WEBSITES
COde with comments and output screenshot is must for an Upvote. Thank you!!!
arrow_forward
mysql> select * from song;
+-----+
| ID | Title
+-----+-
100 | Hey Jude
--+
| Artist
| GenreCode |
Beatles
| PRC
200 | You Belong With Me
| Taylor Swift
| NULL
300 Need You Now
400 Old Town Road
| Lady Antebellum | COU
| NULL
Lil Nas X
| Pearl Jam
500 | That's The Way Love Goes | Janet Jackson | RAB
600 | Even Flow
+-----+--
6 rows in set (0.00 sec)
mysql> desc song;
| GRU
+
| Field
ID
| Type
| int
| Null | Key | Default | Extra |
-----+-----+-
Title
| NO
varchar(60) | YES
| PRI | NULL
|
| NULL
Artist
| varchar(60) | YES
|
| NULL
| GenreCode | char(3)
| YES
| MUL | NULL
+-
4 rows in set (0.00 sec)
mysql> select * from genre;
+------+--
| Code | Name
+-----
| CLA
artists
| Description
| Classical | Orchestral music composed and performed by professionally trained
|
| COU❘ Country | Developed mostly in southern USA, with roots in traditional folk music,
spirituals and blues |
| DRO | Drone
clusters
GRU | Grunge
Pop Rock
R&B
| PRC
RAB
| TEC | Techno
+
| Minimalist music that emphasizes…
arrow_forward
Hi - Please could you help with the following java application
arrow_forward
The ________ window allows you to navigate among the files in your project.
arrow_forward
docs.google.com/forms/d/e/1FAlpQLScejvASqs2T
Before installing Microsoft Visual Studio, you need to install
Visual studio installer
Visual basic
Integrated Development Environment
O Microsoft Office
The difference between sub a program and a function is
Return value
Program length
Many variables
No constants
ack
Next
Page 3 of 7
Never submit passwords through Google Forms.
This form was created inside of Almaagal. Report Abuse
arrow_forward
Don’t copy / paste from google must be original app
Your task is to design, develop a application basic Your program must be original, user
friendly and efficient.
Requirements:
Your program must be done in C++ or Ps.JS;
arrow_forward
Code to write:
Create JavaScript object array for Students with Id, Name, Program, GPA, Age.
How to submit:
Copy the code in the answer section.
BI
A
三 E
arrow_forward
Proframming language html css java script
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L
Related Questions
- Microsoft Visual Basic .VB Complete the following case programming assignment. To upload and submit the program and materials you created, click the Choose File button to find and select your saved documents. Make sure that the files are saved with your last name in the file name (Example: ch4_case1_Jones.doc).DANCE BANDDesign a Windows application and write the code that will execute according to the program requirements in Figure 8-107. Before designing the user interface, create a Use Case Definition. Before writing the code, create an event planning document for each event in the program.arrow_forwardPYTHON PROGRAMMINGarrow_forwardPYTHON PROGRAMMINGarrow_forward
- PYTHON PROGRAMMINGarrow_forwardi need the answer quicklyarrow_forwardPYTHON PROGRAMMING ONLY PLEASE I am doing a patient portal/record keeping system i already have the layout need help writing the code. Here is my layout below Menu: View personal information Update personal information View medical history Update medical history Exit DECISION BLOCKS View personal information: View patient personal information( Name, Date of Birth, Address, Phone Number) Press Console: "You have chosen to view your personal information." Update personal information: Ask the patient to update personal information Update the patient personal information Print to the console: "You have chosen to update your personal information." View historical medical information: View patient medical history (medical history, surgery, medications, allergies, etc.) Prints to console: "You have chosen to view your medical history." Update medical history: Prompt patient to enter updated medical information Update the patient's medical history Print to the console: "You have…arrow_forward
- All questions must be resolved quicklyarrow_forwardHtml code . Put up code with screenshotarrow_forwardText data can be imported into your Excel worksheet and saved in Excel format. Which of the following is not used as a delimiter between elements or columns of text data? Select one: a. Semicolon b. Space c. Formula d. Commaarrow_forward
- Please help!!!arrow_forwardComputer Science Objective:To add scripting to the existing web page and work with JavaScript Es-6 features. The ES-6 concepts like class, object, getter and setter methods. Problem Description:Genteel Software Solution is one of the famous software companies. They plan to increase the salary of their employees based on their experience.You being their software consultant have been approached to develop web application to implement the functionality to manage the salary of the employees. Following are the files that contain code snippets index.html HTML for webpage (complete implementation is given for you). You only have to run this. No change needs to be done in this file. script.js Add your code to this file for the functions given. Procedure to complete the exercise Class Properties Methods Employee employeeIdemployeeNamesalaryexperience Include the getters and setters method for all the attributes. Include a parameterized constructor of three…arrow_forwardIT Application Tools in a Business Environment This course focused on business productivity software applications and professional behavior in computing, including word processing (as needed), spreadsheets, databases, presentation graphics, business-oriented utilization of the Internet and other applicable tools. In this course project, create an infographic discussing the importance of utilizing IT Application Tools in a business environment. Requirements: Submit in PDF format Include the following details: o Name: [Last name, First Name, M.I] o Student No. o Program: o Datearrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,COMPREHENSIVE MICROSOFT OFFICE 365 EXCEComputer ScienceISBN:9780357392676Author:FREUND, StevenPublisher:CENGAGE L
Microsoft Visual C#
Computer Science
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Cengage Learning,
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:9780357392676
Author:FREUND, Steven
Publisher:CENGAGE L