I am looking for help in this assignment

Assignment 3, Concatenation and Logic ITP - 100, Fall 2020 Written and Adapted by Bryce Summers on 6.20.2020 Last Updated on 6.29.2020 ============================================================= Warning: The problem descriptions and directions are in the pdf assignment document. This file is just a place where you can organize your work.

============================================================= /* * I am a programmer and my name is * ______________________________ * You should put your name in the blank or the name * of this file.

*/ +-----------------------------------------------+ | | | Problem 1: Woodchucks Concatenation Problem | | | | - Write your solution using only identical | | copies to the allowed lines of code. | | | | - use each of these lines only once. | | | | String message = input(); | | String wood = input(); | | String chuck = input(); | | String the = input(); | | String would = input(); | | String as = input(); | | print message; | | | | - You may use each of these lines more | | than once. | | | | message = message + wood + chuck; | | message = message + Input(); | | message = message + chuck; | | message = message + as; | | message = message + the; | | message = message + would; | | message = message + wood; | | | | | | - Input Sequence as String literals: | | | | 1. "If a " | | 2. "wood" | | 3. "chuck " | | 4. "could " | | 5. " then " | | 6. "the " | | 7. "would", | | 8. " ", | | 9. "as " | | 10. "much " | | 11. " " | | 11. "!" | | | | | | - Output is a single String: | | | | "If a woodchuck could chuck wood then the woodchuck would chuck as much wood as the woodchuck would!"| | | | OR | | | | "If a woodchuck could chuck wood " + | | "then the woodchuck would chuck as " + | | "much wood as the woodchuck would!" | | | | Note: I've bro | | ke | | n the output up because | | it is too long to write on a single | | line in this text editor. This line | | breaking has nothing to do with the | | exact manner you will be | | concatenating your Strings. | | | | | +-----------------------------------------------+ |--START OF CODE--| String message = Input(); // "If a" // First line.

String wood = Input(); // "wood" // Second line.

... Your code ...

message = message + Input();// + "!" // 2nd to last line.

print message; // Last line, prints entire output string.

|--END OF CODE--| ============================================================= ============================================================= PROBLEM 2 ------------------------------------------------------------- Don't submit any code for problem 2, instead go understand the sea shells program and create a memory diagram!

============================================================= PROBLEM 3 ------------------------------------------------------------- Example Problem:

Output the value true iff the 1st input String is "Waldo" Output false otherwise.

problem 3 example.

declare String s declare boolean isWaldo s = input() isWaldo = (s == "Waldo") print isWaldo Problem 3 example print input() == "Waldo" -------------------------------------------------------------- Problem 3a (1st String is NOT "Waldo") ---------- ---------- Problem 3b (All of the first 5 Strings are "Waldo") ---------- ---------- Problem 3c (ANY of the first 5 Strings are "Waldo") ---------- ---------- Problem 3d (An odd number of the first 5 Strings are "Waldo") (i.e. exactly 1, 3, or 5 of them are "Waldo") (Hint: Use the XOR operator: ^) ---------- ---------- ============================================================ ============================================================ Problem 4 ------------------------------------------------------------ Partner?: (Will you form an official group with 1 other person for this project?) Topic:

Sources:

Prompts: (The questions you will ask the user) Logic: (How will you make a prediction using the information you've gathered?) ------------------------------------------------------------- Your Program:

(Use at least 1 OR, 1 AND, and 1 NOT operator) (Use all of the information the user has given you, do not ignore their inputs!) (Make sure to tell the user the prediction at the end!) -------------------------------------------------------------- Have fun, you can take this as seriously or as quickly as you wish. Please meet the minnimum requirements.

-------------------------------------------------------------