Search

Solution Cart

Remove item Thumbnail image Product Price Quantity Subtotal
× For this lab, you will implement a simple To Do List application. The program must include a GUI that looks like this: ToDos must provide the following features: Adding items: To add a new item: Click the "New Item" button, at which point all of the input fields clear Enter the following fields: Item - Required field - Cannot be blank - Must be unique -- there must not exist another item with this name Priority - Required field - Cannot be blank - Must be an integer > 0 - Items with a lower priority value have a higher priority. For example, an item with priority 1 has higher priority than an item with priority 5. Deadline - If checked, this item has a deadline, and the Month, Day, and Year drop-downs are enabled. If not checked, these drop-downs are disabled. - The Year drop-down shows years for the next 10 years (2022-2031) - The Day drop-down must always show the correct options based on the month and year selected. For example, if "January," it must show 1-31 days. If "June", it must show 1-30 days. If "February" in a leap year, it must show 1-29 days. If "February" in a non-leap year, it must show 1-28 days. Notes - Optional field, can be left blank - Scrollable text area Click the "Save Item" button - If any of the input is invalid, a warning dialog pops up, stating, "Invalid input!" - If all input is valid, a dialog pops up, stating, "Item saved!" The new item then appears in the list on the left, and it is selected. View item: To view an existing item, click on the name in the list, and that item's info will show up on the right. Edit item: To edit an existing item: - Select the item in the list - Edit any info in the field on the right - Click the "Save Item" button If any of the input is invalid, a warning dialog pops up, stating, "Invalid input!" - Take care of the case in which the user attempts to change an existing item's name to one that already exists in the list. This should not be allowed. - If all input is valid, a dialog pops up, stating, "Item saved!" Delete item: To delete an item: - Select the item in the list - Click the "Delete" button Toggle done: To mark an item as "done", click this button. It will cause the item to appear with strikethrough text in the list. Click the button again and it will mark the item as not done, and cause the strikethrough to disappear. Program exit: The program must exit through the "Exit" menu item in the "File" menu in the menu bar. Other Requirements/Details - The order in which ToDo items appear in list is determined based on the following: - It is first ordered by done/not done (all not done items come before all done items) - Then by priority (lower priority value comes before higher priority value) - Then by name lexicographically For this lab, you will implement a simple To Do List application. The program must include a GUI that looks like this: ToDos must provide the following features: Adding items: $40.00
$40.00
× Between a Rock and a Hard Place Given a string in a variable named text, write code that finds the substring that lies between the substring 'rock' and the substring 'hard place'. For example, if text contains 'here is a rock and here is a hard place', then the result would be ' and here is a'. Assign the result to a variable named between. Assume that text already has a value that contains the substrings 'rock' and 'hard place' in that order. Print the Longer String Write code that prints the longer of two strings that are stored in the variables str1 and str2. If both strings are equal in length, print the value of str1. Assume that both variables have already been given values. Print Product Id Write code that examines a string stored in a variable called product_id and prints an appropriate version of the id. If the id is composed of only numeric digits, print it as is. If it is composed of a combination of alphabetic letters and digits, print the id with all alphabetic letters in uppercase. Otherwise (if there are any other types of characters in the id), print it with all alphabetic letters in lowercase. Assume that the product id has already been initialized. Double Word Write code that constructs a string made up of each character in a string variable named word repeated twice. For example, if word contains 'Python', the resulting string would be 'PPyytthhoonn'. Store the constructed string in a variable called double_word. Assume that word has already been initialized. How Do You Spell That? Write code that produces a string made up of each character in a string variable named word separated by a dash. For example, if word contained the string 'Python', the resulting string would be 'P-y-t-h-o-n'. Do NOT include a dash after the last character. Store the resulting string in a variable named spell_string. Assume that the variable word has already been initialized. Generate Acronyms Given a phrase stored in the variable phrase, write code to construct an acronym made up of the first letter of each word in the phrase. For example, the phrase 'Portable Network Graphics' would produce the acronym 'PNG'. Store the result in a variable named acronym, ensuring that it is composed of all uppercase letters. Assume that there is no whitespace on either end of the phrase and that one space character separates each word. Back to Front Write code that constructs a string made by flipping the front and back halves of a string stored in a variable named flip_me. For example, if flip_me is 'bookmark', the resulting string is 'markbook'. Store the result in a variable named flipped. Assume that the variable flip_me has already been given a value and that it contains an even number of characters. Count It Write code that determines how many times the string 'it' appears in the character string stored in a variable named sentence. Store the result in the variable it_count. Assume that sentence has been initialized. Ideas and Thoughts Write code that prints a string made up of the string stored in the variable sentence with all instances of the word 'idea' replaced with the word 'thought'. Assume the sentence variable has already been initialized. Between a Rock and a Hard Place Given a string in a variable named text write code that finds the $5.00
$5.00

Cart totals

Subtotal $45.00
Total $45.00

You may be interested in…

Free Worldwide shipping

On all orders above $50

Easy 30 days returns

30 days money back guarantee

International Warranty

Offered in the country of usage

100% Secure Checkout

PayPal / MasterCard / Visa