Assignment#3-DUE_Nov
.docx
keyboard_arrow_up
School
University of Toronto, Scarborough *
*We aren’t endorsed by this school
Course
06
Subject
Computer Science
Date
Dec 6, 2023
Type
docx
Pages
4
Uploaded by KidBraveryWolverine4
Assignment#3-Fall2023
Syntax I
Due: Nov. 30 (11:59pm)
Instructions
: It is possible to hand in a collective assignment (up to two students). Make sure to
submit your assignment before the due date. Late assignments are NOT accepted. This
assignment consists of
THREE
pages.
Last name____________________First name________________ Student #_______________
Last name____________________First name________________ Student #_______________
Score
/
30
Question#1-Passive Construction [10 points]
Part 1:
Write up the
theta grids
for the verbs in the following sentences. Assume there are two
verbs give (give1 is seen in (c), give2 in (d)).
a)
John bit the apple.
b)
Susan forgave Louis.
c)
Phillip gave the medal to the soldier.
d)
Phillip gave the soldier the medal.
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
Part 2:
English has a suffix –
en
that, when attached to verbs, changes the structure of the
sentence associated with them. This is called the passive morpheme. The following sentences are
the passive equivalents of the sentences in part 1. The bracketed PPs starting with by are
optional.
e)
The apple was bitten (by John).
f)
Louis was forgiven (by Susan).
g)
The medal was given to the soldier (by Phillip).
h)
The soldier was given the medal (by Phillip).
1
Assignment#3-Fall2023
Syntax I
Due: Nov. 30 (11:59pm)
Describe in your own words what the -
en
passive suffix does to the theta grids of verbs. Pay
careful attention to the last two examples, and to the optionality of the by-phrase. You do NOT
have to discuss each sentence. Provide a general statement about passive transformation.
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
Question#2- French Data [10 points]
Consider the following sentences from French:
a.
Je
mange
souvent
des
pommes
I
eat
often
the
apples
“I often eat apples”
b.
J’ ai
souvent
mangé
des
pommes
I
have
often
eaten
the
apples
“I have often eaten apples”.
I.
Based on the above sentences, explain the placement of the adverb ‘often’ in French in
both sentences.
[4 points; 2 points for each sentence].
2
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
c++ task
arrow_forward
Programming Problem 1 – Calculating a
Number
As part of the discussion forum for this unit, you will be
solving a programming problem from the book. This
assignment will have you calculating the chapter and the
number of the programming problem that you will solve for
the online discussion forum.
To calculate the chapter from which you solve the
programming exercise:
• Divide the integer number representing your student ID by
3, consider the remainder and increment it by 3. The
result you obtain represents the chapter number, and it
should be either 2, 3, 4, or 5.
Depending on the chapter number obtained above, consider the
following rules in calculating the problem number to solve:
• If the chapter number is 3, divide your student ID by 34,
consider the remainder and increment it by 1. The result
you obtain represents the number of the programming
exercise you will solve for online discussions, which
should be from chapter 3.
• If the chapter number is 4 (you need to go to chapter 6),…
arrow_forward
Create a simple program for a quiz
Software Requirements:
Latest version of NetBeans IDE
Java Development Kit (JDK) 8
Procedure:
Create a folder named LastName_FirstName (ex. Dahan yoon) in your local
Create a new project named LabExer5B. Set the project location to your own
The program shall:
contain an array of 10 multiple choice questions with three (3) choices each and
require the user to choose among A, B, or C;
Note: Cases are ignored. Lowercase letters are acceptable (a, b, c).
Create a try-catch structure to handle three (3) exceptions. These are when the user inputs the following:
an invalid letter (not A, B, or C)
a number or any special character
blank (no answer)
Prompt the user that he can answer again if any of the three (3) exceptions is
Display the score.
arrow_forward
Additional Notes:
USING C#
You cannot add two flights with the same flight number
When you select “View Flights”, a list containing the Flight number, origin and destination for each flight must be shown.
When you select “View a particular flight”, a list of all flights should be displayed and the user must be allowed to enter a particular flight number. All the information on that selected flight must be displayed. All the customers who are booked on that flight must
SPECIAL NOTE:
A customer can only be deleted if there are no bookings for that customer.
A flight can only be deleted if there are no customers booked on the flight.
You must extend the core design and add the functionality to add customers and booking features to the system.
The information that must be recorded on a customer is as follows:
A customer ID must be assigned to each customer by the system. (NOT entered by the user)
The customer’s first name
The customer’s last name.
The customer’s phone (a string type…
arrow_forward
Q1 Draw uml class diagram
The SUV Rental Provider App has two types of system users namely Client and Admin. The client, who can be Member or Non-Member can search for SUV models and daily rental. Each SUV model consists of SUV model details and daily rental. Thus, the Client can choose to view the SUV model details such as description and images and daily rental based on the types of the selected model. Only Member and Admin are required to log in to access the system. Member gains access to additional services. The additional services for members are: manage a reservation, check membership details, change password, manage credit card and banking information, and log out. Each Member is entitled to reserve up to 10 SUVs. When a member makes a reservation, he/she has to specify the selected SUV model and the number of rental days. The member also can edit and delete a reservation. Based on the reservation, the app generates the rental quotation. The rental quotation includes both the…
arrow_forward
Design a "Car Rental" Visual C# application, which allows the user to search for and book a car rental. It is required to create a database file that contains at least three related tables, the first of which contains the cars data with the data fields, such as: car ID car type car model quantity on stock cost per day Make up at least five records in the first table and save your database file in the default folder of your project. The second table should contain the customer information, such as: customer ID first name last name telephone number credit card data The third table should contain the bookings data, such as: booking ID car ID customer ID pick-up date drop-off date total cost Please note that you can create more tables as well as add more data fields, if necessary. Your program should contain multiple Windows forms as follows: The first form will enable the user to search for a car rental. If a car rental is selected, the second form may provide more into about the car that…
arrow_forward
Design a "Car Rental" Visual C# application, which allows the user to search for and book a car rental. It is required to create a database file that contains at least three related tables, the first of which contains the cars data with the data fields, such as: car ID car type car model quantity on stock cost per day Make up at least five records in the first table and save your database file in the default folder of your project. The second table should contain the customer information, such as: customer ID first name last name telephone number credit card data The third table should contain the bookings data, such as: booking ID car ID customer ID pick-up date drop-off date total cost Please note that you can create more tables as well as add more data fields, if necessary. Your program should contain multiple Windows forms as follows: The first form will enable the user to search for a car rental. If a car rental is selected, the second form may provide more into about the car that…
arrow_forward
Basic list structure, python code
You should allow users to enter information for five employees at the same time, where the first employee information entry is saved in index [0] and the second entry is saved in index [1], and so on. You want to make sure to enforce the user to enter the following employee information: employeeName, employeeSSN, employeePhone, employeeEmail, employeeSalary. After the user finishes entering the last employee information, they should get a message to allow them to print specific employee information from the saved list. The user can enter values between 1 and 5, where 1 will return the employee information saved in the list index [0], 2 will return the employee information saved in the list index [1] and so on.
The printed result should be in the following format:
Mike Smith, 123123,(111)222-3333,mike@gmail.com,$6000
arrow_forward
Python help
arrow_forward
Formatting Customer Names
Build a function that displays a customer's name and location if applicableSuppose that you are building a Customer Relationship Management (CRM) system, and you want to display a user record in the following format: John Smith (California). However, if you don't have a location in your system, you just want to see "John Smith." Create a format_customer() function that takes two required positional arguments, first_ name and last_name, and one optional keyword argument, location. It should return a string in the required format.
Create the customer.py file.
Define the format_customer() function.
Open a Python shell (Or Jupyter Notebook) and import your format_customer() function.
Try running a few examples. The calls should look like this:
from customer import format_customerformat_customer('John', 'Smith', location='California')
and the output should look like this:
John Smith (California)
In [ ]:
arrow_forward
Overloading Operators as Non-members Instructions Grading When you have completed your program, click the Submit button to record your score.
arrow_forward
Marriage
Validity
You were hired by the City Hall of Kulafu as a programmer. Your task is to write
a spreadsheet program that will determine whether two individuals can be married legally or not.
The marriage will be legal depending on the following conditions:
both individuals should be at least 18 years old
the individuals should not have the same gender (same gender marriage is not legal
in Kulafu)
the individuals should not have a married status (in Kulafu, status are single,
widow/widower, divorced and married)
Write a program that will accept via keyboard the information regarding the age,
gender and marital status of the two individuals. The following numeric coding system should
be used: for gender: M or m represents Male and F or f represents Female. For marital status:
S or s represents Single, W or w represents Widow/Widower, D or d represents Divorced and
MA or ma represents Married. The word should output the word "LEGAL" if all the criteria
above are met. Otherwise, the…
arrow_forward
vb program using framework.net synatax please if the program can be solved using text boxes and labels or any beginner way providing detailed steps
arrow_forward
Task Class Requirements
The task object shall have a required unique task ID String that cannot be longer than 10 characters. The task ID shall not be null and shall not be updatable.
The task object shall have a required name String field that cannot be longer than 20 characters. The name field shall not be null.
The task object shall have a required description String field that cannot be longer than 50 characters. The description field shall not be null.
Verify with Juint testing as well
arrow_forward
C++
Project Description
Project Specifications
Input for this project:
Values of the grid (row by row)
Output for this project:
Whether or not the grid is magic square
Programmer’s full name
Project number
Project due date
Processing Requirements
Start from scratch.
Use the following template to start your project:
#include<iostream>
using namespace std;
// Global constants
const int ROWS = 3; // The number of rows in the array
const int COLS = 3; // The number of columns in the array
const int MIN = 1; // The value of the smallest number
const int MAX = 9; // The value of the largest number
// Function prototypes
bool isMagicSquare(int arrayRow1[], int arrayRow2[], int arrayRow3[], int size);
bool checkRange(int arrayRow1[], int arrayRow2[], int arrayRow3[], int size, int min, int max);
bool checkUnique(int arrayRow1[], int arrayRow2[], int arrayRow3[], int size);
bool checkRowSum(int arrayrow1[], int arrayrow2[], int arrayrow3[], int size);…
arrow_forward
Programming language C#
arrow_forward
date () Function
Lab Exercise
Two Formats
Write a PHP script named two_formats.php, under the functions
folder. The script should display two formatted dates. The current date,
formatted like Nov 21, 2016 and the date four days before the
current date, formatted like 21-10-2016 01:19 AM. Make sure to
use “Muscat" timezone.
arrow_forward
using access file
in visual c#
arrow_forward
School Voting Age IN C#Problem DescriptionThe DPCDSB recently announced that all students who are, or have been, in high school as of 2022 are allowed to vote on whether or not all schools across the peel region should mandate a pineapple-pizza day wherein every 7th Tuesday of every 3rd month all students must eat at least one slice of Hawaiian Pizza. The rule in DPCDSB is that you need to be 13 on September 6th, 2022 to be allowed to be a high school student that year (it's not, but it makes this problem easier ;) ). Therefore, given someone's birthday, you must determine whether that person will be 13 years or older on the first day of school thereby granting them permission to vote on this very important decision. If they turn 13 on the first day of school, they can vote.Input SpecificationThe input will consist of a line of the form y m d, where y is the year of a potential voter's birth (0 ≤ y ≤2030), m (1 ≤ m ≤ 12) is the month of birth, and d (1 ≤ d ≤ 31) is the day. It is…
arrow_forward
Personal library softwareTo develop a software that would be used by individuals to manage their personal collection of books.A person can have up to a few hundreds of books. The details of all the books such as name of the book,year of publication, date of purchase, price, and publisher would be entered by the owner. A book shouldbe assigned a unique serial number by the computer. This number would be written by the owner usinga pen on the inside page of the book. Only a registered friend can be lent a book. While registering afriend, the following data would have to be supplied—name of the friend, his address, land line number,and mobile number. Whenever a book issue request is given, the name of the friend to whom the book isto be issued and the unique id of the book is entered. At this, the various books outstanding against theborrower along with the date borrowed are displayed for information of the owner. If the owner wishesto go ahead with the issue of the book, then the date of…
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Related Questions
- c++ taskarrow_forwardProgramming Problem 1 – Calculating a Number As part of the discussion forum for this unit, you will be solving a programming problem from the book. This assignment will have you calculating the chapter and the number of the programming problem that you will solve for the online discussion forum. To calculate the chapter from which you solve the programming exercise: • Divide the integer number representing your student ID by 3, consider the remainder and increment it by 3. The result you obtain represents the chapter number, and it should be either 2, 3, 4, or 5. Depending on the chapter number obtained above, consider the following rules in calculating the problem number to solve: • If the chapter number is 3, divide your student ID by 34, consider the remainder and increment it by 1. The result you obtain represents the number of the programming exercise you will solve for online discussions, which should be from chapter 3. • If the chapter number is 4 (you need to go to chapter 6),…arrow_forwardCreate a simple program for a quiz Software Requirements: Latest version of NetBeans IDE Java Development Kit (JDK) 8 Procedure: Create a folder named LastName_FirstName (ex. Dahan yoon) in your local Create a new project named LabExer5B. Set the project location to your own The program shall: contain an array of 10 multiple choice questions with three (3) choices each and require the user to choose among A, B, or C; Note: Cases are ignored. Lowercase letters are acceptable (a, b, c). Create a try-catch structure to handle three (3) exceptions. These are when the user inputs the following: an invalid letter (not A, B, or C) a number or any special character blank (no answer) Prompt the user that he can answer again if any of the three (3) exceptions is Display the score.arrow_forward
- Additional Notes: USING C# You cannot add two flights with the same flight number When you select “View Flights”, a list containing the Flight number, origin and destination for each flight must be shown. When you select “View a particular flight”, a list of all flights should be displayed and the user must be allowed to enter a particular flight number. All the information on that selected flight must be displayed. All the customers who are booked on that flight must SPECIAL NOTE: A customer can only be deleted if there are no bookings for that customer. A flight can only be deleted if there are no customers booked on the flight. You must extend the core design and add the functionality to add customers and booking features to the system. The information that must be recorded on a customer is as follows: A customer ID must be assigned to each customer by the system. (NOT entered by the user) The customer’s first name The customer’s last name. The customer’s phone (a string type…arrow_forwardQ1 Draw uml class diagram The SUV Rental Provider App has two types of system users namely Client and Admin. The client, who can be Member or Non-Member can search for SUV models and daily rental. Each SUV model consists of SUV model details and daily rental. Thus, the Client can choose to view the SUV model details such as description and images and daily rental based on the types of the selected model. Only Member and Admin are required to log in to access the system. Member gains access to additional services. The additional services for members are: manage a reservation, check membership details, change password, manage credit card and banking information, and log out. Each Member is entitled to reserve up to 10 SUVs. When a member makes a reservation, he/she has to specify the selected SUV model and the number of rental days. The member also can edit and delete a reservation. Based on the reservation, the app generates the rental quotation. The rental quotation includes both the…arrow_forwardDesign a "Car Rental" Visual C# application, which allows the user to search for and book a car rental. It is required to create a database file that contains at least three related tables, the first of which contains the cars data with the data fields, such as: car ID car type car model quantity on stock cost per day Make up at least five records in the first table and save your database file in the default folder of your project. The second table should contain the customer information, such as: customer ID first name last name telephone number credit card data The third table should contain the bookings data, such as: booking ID car ID customer ID pick-up date drop-off date total cost Please note that you can create more tables as well as add more data fields, if necessary. Your program should contain multiple Windows forms as follows: The first form will enable the user to search for a car rental. If a car rental is selected, the second form may provide more into about the car that…arrow_forward
- Design a "Car Rental" Visual C# application, which allows the user to search for and book a car rental. It is required to create a database file that contains at least three related tables, the first of which contains the cars data with the data fields, such as: car ID car type car model quantity on stock cost per day Make up at least five records in the first table and save your database file in the default folder of your project. The second table should contain the customer information, such as: customer ID first name last name telephone number credit card data The third table should contain the bookings data, such as: booking ID car ID customer ID pick-up date drop-off date total cost Please note that you can create more tables as well as add more data fields, if necessary. Your program should contain multiple Windows forms as follows: The first form will enable the user to search for a car rental. If a car rental is selected, the second form may provide more into about the car that…arrow_forwardBasic list structure, python code You should allow users to enter information for five employees at the same time, where the first employee information entry is saved in index [0] and the second entry is saved in index [1], and so on. You want to make sure to enforce the user to enter the following employee information: employeeName, employeeSSN, employeePhone, employeeEmail, employeeSalary. After the user finishes entering the last employee information, they should get a message to allow them to print specific employee information from the saved list. The user can enter values between 1 and 5, where 1 will return the employee information saved in the list index [0], 2 will return the employee information saved in the list index [1] and so on. The printed result should be in the following format: Mike Smith, 123123,(111)222-3333,mike@gmail.com,$6000arrow_forwardPython helparrow_forward
- Formatting Customer Names Build a function that displays a customer's name and location if applicableSuppose that you are building a Customer Relationship Management (CRM) system, and you want to display a user record in the following format: John Smith (California). However, if you don't have a location in your system, you just want to see "John Smith." Create a format_customer() function that takes two required positional arguments, first_ name and last_name, and one optional keyword argument, location. It should return a string in the required format. Create the customer.py file. Define the format_customer() function. Open a Python shell (Or Jupyter Notebook) and import your format_customer() function. Try running a few examples. The calls should look like this: from customer import format_customerformat_customer('John', 'Smith', location='California') and the output should look like this: John Smith (California) In [ ]:arrow_forwardOverloading Operators as Non-members Instructions Grading When you have completed your program, click the Submit button to record your score.arrow_forwardMarriage Validity You were hired by the City Hall of Kulafu as a programmer. Your task is to write a spreadsheet program that will determine whether two individuals can be married legally or not. The marriage will be legal depending on the following conditions: both individuals should be at least 18 years old the individuals should not have the same gender (same gender marriage is not legal in Kulafu) the individuals should not have a married status (in Kulafu, status are single, widow/widower, divorced and married) Write a program that will accept via keyboard the information regarding the age, gender and marital status of the two individuals. The following numeric coding system should be used: for gender: M or m represents Male and F or f represents Female. For marital status: S or s represents Single, W or w represents Widow/Widower, D or d represents Divorced and MA or ma represents Married. The word should output the word "LEGAL" if all the criteria above are met. Otherwise, the…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningProgramming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageC++ Programming: From Problem Analysis to Program...Computer ScienceISBN:9781337102087Author:D. S. MalikPublisher:Cengage Learning
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrNp Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:9781337102124
Author:Diane Zak
Publisher:Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
C++ Programming: From Problem Analysis to Program...
Computer Science
ISBN:9781337102087
Author:D. S. Malik
Publisher:Cengage Learning
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage