Demonstrate event-controlled loop using boolean flag to present a menu.
Get college assignment help at Smashing Essays Question Demonstrate event-controlled loop using boolean flag to present a menu. Use nested decision structure to process each choice including invalid response.*/#include#includeusing namespace std;const char QUIT = ‘0’; // constants for menu optionsconst char INPUT = ‘1’;const char PROCESS = ‘2’;const char OUTPUT = ‘3’;int main(){ char userSelection; // input for menu choice bool done; // flag for loop control // TODO: Initialize the loop control variable (done). // Think about what an appropriate value for ‘done’ would be. // Are we done at the beginning of the program? // TODO: Begin loop here. Test the loop control variable // Do NOT test the userSelection variable // display the menu cout << endl << setw(25) << " Program Menu " << endl << setw(25) << "———————" << endl << setw(25) << "1 …… Input " << endl << setw(25) << "2 …… Process " << endl << setw(25) << "3 …… Output " << endl << setw(25) << "0 …… Quit Program" << endl << setw(25) << "———————" << endl; // get user response cout << setw(20) <> userSelection; // TODO: Process menu responses using If-Then-Else-If. // For each option, print appropriate message as shown // in sample output below, including invalid choice. // Also, be sure to use the provided constants when // you are testing values. // TODO: End loop here. cout << "nEnd Program – ";}/* Sample Program Interaction and OutputProgram Menu———————1 …… Input2 …… Process3 …… Output0 …… Quit Program———————Enter option: 1Do INPUT stuffProgram Menu———————1 …… Input2 …… Process3 …… Output0 …… Quit Program———————Enter option: 2Do PROCESS stuffProgram Menu———————1 …… Input2 …… Process3 …… Output0 …… Quit Program———————Enter option: 3Do OUTPUT stuffProgram Menu———————1 …… Input2 …… Process3 …… Output0 …… Quit Program———————Enter option: 4Invalid choice, please try again.Program Menu———————1 …… Input2 …… Process3 …… Output0 …… Quit Program———————Enter option: qInvalid choice, please try again.Program Menu———————1 …… Input2 …… Process3 …… Output0 …… Quit Program———————Enter option: 0End Program – Press any key to continue . . .*/How do i program this properly in C programming. Also match it with the assignment therefore I can plug in the information in the right TODOs
Game Zone Part 1In the last assignment, you created a
Question Game Zone Part 1In the last assignment, you created a card class. Modify the card class so the setValue() method does not allow a card’s value to be less than 1 or higher than 13. If the argument to setValue() is out of range, assign 1 to the card’s value. You also created a PickTwoCards application that randomly selects two playing cards and displays their values. In that application, all card objects were arbitrarily assigned a suit represented by a single character, but they could have different values, and the player observed which of two card objects had the higher value. Now, modify the application so the suit and the value both are chosen randomly. Using two card objects play a very simple version of the card game War. Deal two cards – one for the computer and one for the player – and determine the higher card, then display a message indicating whether the cards are equal, the computer won, or the player won. (Playing cards are considered equal when they have the same value, no matter what the suit is). For this game, assume the Ace (value 1) is low. Make sure that the two cards dealt are not the same card. For example, a deck cannot contain more than one card representing the 2 of spades. If two cards are chosen to have the same value, change the suit for one of them. Save the application as War.javapublic class Card{//declare variablesprivate String cardSuit;private int cardValue;//default constructorpublic Card(){cardSuit = “”;cardValue = 0;}//constructor that takes two argumentspublic Card(String cardSuit, int cardValue){this.cardSuit = cardSuit;this.cardValue = cardValue;}//setter method for private char variable cardSuitpublic void setCardSuit(String cardSuit){this.cardSuit = cardSuit;}//getter method for private char variable cardSuitpublic String getCardSuit(){return cardSuit;}//setter method for private int variable cardValuepublic void setCardValue(int cardValue){//if statement – if cardValue is outside range of 1-13 set value to 1if(cardValue 13){this.cardValue = 1;}//else statement – otherwise use setter method for cardValueelse{this.cardValue = cardValue;}}//getter method for private int variable cardValuepublic int getCardValue(){return cardValue;}//return the String value of the Card objectpublic String toString(){return cardValue ” of ” cardSuit;}}*****************************************************public class War{ /** *The main method *@return void *@param args the command line arguments */ public static void main(String []args) {//define a constant variable final int cardsSuit = 13;//generate random number from 1-13int myCardValue = ((int)(Math.random() * 100) % cardsSuit 1);//instantiating the Card class – creating the userCard user = new Card();//set cardSuituser.setCardSuit(“Diamonds”);//set cardValueuser.setCardValue(myCardValue);//instantiating the Card class for a second time – creating the computerCard computer = new Card();//set setCardSuitcomputer.setCardSuit(“Clubs”);//generate random number from 1-13myCardValue = ((int)(Math.random() * 100) % cardsSuit 1);//set cardValuecomputer.setCardValue(myCardValue);//display (print) the cards to the consoleSystem.out.println(“Who’s Gunna Win?”);System.out.println(“User = ” user.toString());System.out.println(“Computer = ” computer.toString());//check to see if the user won the game, if true then display congratsif(user.getCardValue() > computer.getCardValue()){System.out.println(“Congratulations to the User, You WIN!”);}//check to see if the computer won the game, if true then display the whompelse if(user.getCardValue() < computer.getCardValue()){System.out.println("The Computer Wins, WHOMP! WHOMP!");} //else statement – if neither the user nor the computer win, write it's a draw else{System.out.println("It's a Draw!!");//set cardSuit 1user.setCardSuit("Spades");//set cardValue 1user.setCardValue(myCardValue);System.out.println("User = " user.toString());//set cardSuit 2user.setCardSuit("Diamonds");//set cardValue 2user.setCardValue(myCardValue);System.out.println("User = " user.toString());//set cardSuit 3user.setCardSuit("Hearts");//set cardValue 3user.setCardValue(myCardValue);System.out.println("User = " user.toString());//set cardSuit 4user.setCardSuit("Clubs");//set cardValue 4user.setCardValue(myCardValue);System.out.println("User = " user.toString());//set cardSuit 5user.setCardSuit("Hearts");//set cardValue 5user.setCardValue(myCardValue);System.out.println("User = " user.toString());//set cardSuit 6user.setCardSuit("Spades");//set cardValue 6user.setCardValue(myCardValue);System.out.println("User = " user.toString());//set cardSuit 7user.setCardSuit("Diamonds");//set cardValue 7user.setCardValue(myCardValue);System.out.println("User = " user.toString());//set cardSuit 8user.setCardSuit("Clubs");//set cardValue 8user.setCardValue(myCardValue);System.out.println("User = " user.toString());//set cardSuit 9user.setCardSuit("Spades");//set cardValue 9user.setCardValue(myCardValue);System.out.println("User = " user.toString());//set cardSuit 10user.setCardSuit("Hearts");//set cardValue 10user.setCardValue(myCardValue);System.out.println("User = " user.toString()); } }}*************************************************************************************(the above code is what i have so far)********************(the question below is what i need help with***************************************************************************************Game Zone Part 2Now modify the game using the newly modified card class so that when a tie is declared, that each player "puts down 10 cards each" and compares the 11th card to see if there is a clear winner. If there is a tie, repeat the process until there is a clear winner. The table below shows four typical executions. Recall that in this version of War, you assume that the ace is the lowest-valued card. Save the game as War2.java. So I expect a Card.java, War.java and War2.java file; Each working off the other. No need to reinvent the wheel! Lastly I expect, when WAR is called, to see all ten cards displayed.
How can a professor monitor and evaluate the overall effectiveness
Question How can a professor monitor and evaluate the overall effectiveness and quality of their respective programs to be sure its a program worth keeping?
This question was created from Instructions_SC_EX16_2a https://www.coursehero.com/file/17931247/Instructions-SC-EX16-2a/ How do i
Question This question was created from Instructions_SC_EX16_2a https://www..com/file/17931247/Instructions-SC-EX16-2a/ How do i get the number in cell b 22? i know it has to do with cells b9 and b19 ATTACHMENT PREVIEW Download attachment 17931247-323685.jpeg A Rough 2 3 4 Department 2018 5 Women’s 150,200 6 Men’s 123,615 7 Children’s 85,680 8 Babies 75,000 9 Total 434,495 10 Average 108,624 11 Highest 150,200 12 Lowest 75,000 13 14 2018 15 Items Cost 148,500 16 Payroll 52,689 17 Rent 68,900 18 Other 15,230 19 Total 285,319 20 21 2018 22 Amount $ 149,176.00Read more
Your assessment task will use JES to manipulate images of
Question Your assessment task will use JES to manipulate images of a very specific type: QR codes. Somebody with too much time to spare has written a program to vandalise QR codes in various ways so that they are no longer readable, and your task is to a program that will restore the codes to their original forms. Journal As programming is a complex task, you are required to maintain and submit a journal, a separate word-processed document in which you record when and for how long you work on which aspects of the assignment, and which bits are done by which member of the pair; briefly list questions that arise, difficulties that you encounter, and how you overcome them; summarise lessons that you learn. By the time you’ve finished the program your journal will probably be many pages long. The journal is intended to record your design thoughts, your programming thoughts, and the time you spend on the task, so you must keep it up to date at all times. A ‘journal’ that is thrown together the day before the assignment is due is not a journal at all. When you hand in your files, your journal must be a pdf file. Files and folders When you hand in the assignment you will be handing in two files: your Python program and your pdf journal. There is a particular structure that you are required to follow. Both files (and no other files) will be in a folder whose name is your names, without spaces, followed by the abbreviation Assgt2. If Abby Archer and Zeke Zammit are working together, their folder will be called AbbyArcherZekeZammitAssgt2. Within that folder, your Python program will have your names followed by Assgt2.py (eg AbbyArcherZekeZammitAssgt2.py); and your journal will have your names followed by Journal.pdf, (eg AbbyArcherZekeZammitJournal.pdf). Remember that the journal is to be a pdf file. Problem-solving Several aspects of this assignment involve problem-solving. This is not unusual: it is difficult to specify programming tasks that do not require problem-solving. While you might be tempted to just write some code and hope that it will eventually do what you want it to do, in the end it will be far more effective to first work out exactly what you want the code to do, and only then start writing the code. Based on past experience, students who believe that they are having trouble with their program code are generally having trouble with their program design, their algorithm. If your program isn’t doing what you want it to do, this is probably because you haven’t solved the problem and clearly worked out how the program should do what you want it to do. You are most unlikely to get the program working correctly if you haven’t correctly solved the problems and designed the solutions. When you need to problem-solve, the key is not to search the web for inspiration, it is not to randomly try things in the hope that one of them will work: it is to write down what you have, to write down what you want, and to think about how to get from the first to the second. It often helps to draw diagrams. It definitely helps to discuss the problem, and possible solutions, with your partner. If you actually solve the problem for yourself, rather than finding something somewhere that you might be able to bend into a solution, it will be a huge step in your development as a programmer. QR codes QR (quick response) codes are images that contain coded information in an array of square dots. The images are generally white with black dots, but some variation is possible, as we shall see later. The codes are designed to be read by an image scanner, such as the camera on a mobile phone, and decoded into a text message (which is often a url, an email address, a social media link, etc). Here is a sample QR code, with some of the important features labelled: The code consists of a number of dark modules (square dots) on a light background. The additional light area around the code itself is called the quiet zone, and is provided to clearly separate the code from whatever surrounds it. The three positioning squares help the decoding software to identify the image and orient it correctly. There are many other structural features (eg alignment squares, timing patterns, format information), but for this assignment we don’t need to consider those. For the purposes of this assignment, we will use the term cells to mean all the dark and light dots that make up the image, and active cells to mean all the dark and light dots that are not part of the quiet zone or the three positioning squares. We consider the lines of light cells between the positioning squares and the active cells to be part of the squares, not active cells. Careful examination of the code above will show you that it is a 25×25 code: it is 25 cells across from the start of the top left positioning square to the end of the top right positioning square, and 25 cells down from the start of the top left positioning square to the end of the bottom left positioning square. QR codes come in many different sizes, but all of the codes used in this assignment will be 25×25 codes, so they will all have the same basic structure as the illustration above. If you have a QR scanner and decoder it will be easy to check whether your program is working correctly, because the images that it produces will be valid QR codes that produce suitable messages. Free QR scanning apps are available for most smartphone platforms. Quiet zone around code Positioning squares (3) with clear margins Inft1004 Introduction to Programming Assignment 2 Minimal images Most manipulation of QR codes is easiest if each cell (square dot) is represented by a single pixel, and there are no quiet zones. This makes an image that isn’t very easy to see, that might not be easy for QR scanners to resolve, but it is a lot easier to work with. Here is an example: Because we are working only with 25×25 QR codes, every minimal image will be 25 pixels wide by 25 pixels high. A lot of the work of your program will be done using minimal images. Provided images and the media path A number of image files are provided, zipped together in a folder called VandalisedQRCodes. You will need to unzip these files into a folder in a suitable location, then set the media path to that folder. Your program will then access the files by using getMediaPath(“filename.png”). Do not put the folder inside your assignment folder, or you will end up including it in your submission, something that we do not want you to do. Note well: when you set the media path to your folder, do so in the command area of JES (the bottom pane), not in the program area. If you set it as part of your program, your program won’t work when we come to mark it, because that file location won’t exist on our computers. Or, at the very least, you’ll be forcing us to reset the media path when we shouldn’t need to. Some general suggestions It’s really important to tackle one task, one function, at a time. At first the whole assignment will seem overwhelming. But doing one function at a time you will find it much easier to come to grips with – although of course some functions are tougher than others. So long as you start early enough, you should complete many, if not all, of the functions. Remember, though a colour looks white to you, it might not be exactly white; and though a colour looks black to you, it might not be exactly black. If you check whether pixels are equal to white or equal to black, your code will fail on pixels that are close but not exactly the specified colours. The distance() function might be useful here. However, the fixed images that you produce should be exactly black and white – except for the image in task 11, where this would be too difficult. Remember, it can be frustrating when you’re developing a function and it keeps changing the image you’re using it on. As a general principle, your functions should create new images, leaving the original images unaltered, and thus avoiding side effects. Remember, there’s not a lot of point in having a function create new image unless that image can be used by other functions. As a general principle, a function that you write should return the new image that it creates. Assignment tasks fixCodes() – 5 marks When we mark your program, the first thing we will do is run a function called fixCodes(). This function will call functions for all of the other tasks in turn, and will save all of the resulting images. You will find some initial code for fixCodes() listed later in this assignment. Each time you finish writing the function for a task, add suitable lines to fixCodes(). When you hand in your assignment, all of the functions that work will be called by fixCodes(), which will save all of the images that your program produces. Note that the function takes a single argument, the Inft1004 Introduction to Programming Assignment 3 number of pixels per module in the resulting QR code; fixCodes(3) will display quite small QR codes, while fixCodes(25) will display much bigger ones. Your assignment should eventually do tasks 1-10, below, so if you complete of the tasks, fixCodes() will save ten images. Remember, the cells in these images must be black or white, no matter what colour they are in the vandalised images. Every new image should be expanded and saved using the file naming scheme shown in the initial code: your name and the task number. Task 11 is an extra challenge for those who want one, but is not worth any marks. Task 1: expand images: expand(smallPic, moduleSize) – 5 marks While it might be easier to manipulate minimal images, bigger ones are easier to look at, and generally easier to scan. The function expand(smallPic, moduleSize) will take a picture representing a minimal QR code and will return a picture that is an expanded version of the same code, with moduleSize giving the module size in pixels, and with a quiet zone of twice the module size. So, for example, if smallPic is the minimal QR image shown on the previous page, expand(smallPic, 7) will produce a larger image, like this one, of size 203×203 pixels. When your function is working, call it from fixCodes(), as in the code near the end of this assignment. Task 2: invert minimal images: invert(smallPic) – 5 marks When a QR code has been inverted – all black(ish) cells made white(ish) and all white(ish) cells made black(ish) – a scanner will no longer recognise it as a QR code. This has been done to image2.png. Your function invert(smallPic) will invert it again, restoring its original form. As you can see, fixCodes()then expands it before saving it. Task 3: add positional squares to an image: addSquares(smallPic) – 7 marks One easy way to confuse a QR scanner is to replace the three positioning squares of a code with random cells. This has been done to image3.png, which is in minimal form. Your function addSquares(smallPic) will add the three positioning squares and the white cells separating them from the active cells. Then fixCodes()will expand the resulting image and save it. Task 4: invert just the active cells: invertActive(smallPic) – 7 marks When inverting QR codes, the vandal noticed that they no longer look like QR codes, because the positioning squares, the most obvious features, are destroyed. So she decided to invert just the active cells, leaving the positioning squares and their margins untouched. How would you undo this? It could be quite fiddly to access just the active cells. Maybe there’s a way that works by combining functions you’ve already written. Try it on image4.png. Task 5: merge three images: merge(smallPic1, smallPic2, smallPic3) – 7 marks Another idea that occurred to the vandal was to split a QR code into three images, none of which is a valid code, but which can be combined to produce a valid code. Here’s what you need to do to merge image5a.png, image5b.png, and image5c.png (which we’ll just call A, B, and C now). For every cell of the combined image, if the corresponding cells of A and B are both the same colour, that’s the colour to use in the combined image; but if the corresponding cells of A and B are not the same colour, use the colour of the corresponding cell in C. So, for example, if cell(3, 15) of A is Inft1004 Introduction to Programming Assignment 4 white and cell(3, 15) of B is white, cell(3, 15) of the combined image should be white; but if cell(3, 15) of A is white and cell(3, 15) of B is black, cell(3, 15) of the combined image should be the same colour as cell(3, 15) of C. Remember, don’t assume that the ‘black’ cells are pure black and the ‘white’ cells are pure white. Task 6: produce minimal images: reduce(qrPic) – 10 marks So far we’ve only worked with minimised images, where each pixel corresponds to a single black or white cell of the QR code. The images provided from here on are ‘normal’ sized QR codes, with multiple pixels per cell, so your program will need to take a normal QR code and reduce it to minimal form. Before doing that, your program needs to know how wide the quiet zone is (so as to remove it) and how wide a single module is (so as to reduce each cell to a single pixel). If every image had a top left positioning square, these widths would be quite easy to find. Unfortunately, the vandal has removed the positioning squares in some of the images, so we have to be a little more resourceful. In the picture on the right, three pixels have been made grey so that you can count the rows of pixels in the quiet zone: you should see that there are 6 (represented by three grey and three white pixels). One way to find the size of the quiet zone is to search the outside layer of the image (the outermost line of pixels) for any pixel that isn’t the same colour as the one in the top left. If all the pixels in that layer are the same colour, search the next layer, one pixel in from the edge. Keep searching in this way until you first find a pixel that is a clearly different in colour from the top left one. That pixel is not part of the quiet zone, so the quiet zone must be all the pixels outside that one. In the example here (minus the grey pixels), you start to encounter differently coloured pixels in the seventh layer from the edge, so the quiet zone must be six pixels wide. When you’ve found the size of the quiet zone, a little subtraction and division should give you the cell size. Once you know this, you should be able to work out (after a lot of thought!) how to produce the minimal version of this or any other QR image – so long as all of its cells are exactly the same number of pixels wide and high, which they certainly should be. Remember, when you need to repeat some process, and you don’t know how many times it will be repeated, a while loop will be very useful. The function reduce(qrPic) will take a picture representing a QR code and will return a picture representing the corresponding minimal image. While developing this function you can test it on any of the bigger QR code images, but for this task fixCodes2() should run it on image6.png – then expand it again and save it. Task 7: shift cells along rows: rowShift(smallPic, shiftSize) – 6 marks In lecture 9 we briefly describe how to shift array elements, using the modulo operator (%) to work out the new position of each element, wrapping them around to the beginning if the shift would push them off the end. Our QR code vandal has done this with image7.png: in every row the elements have been shifted 12 positions to the right. Because the elements wrap around, you don’t need to write something to shift them backwards: you just write the same sort of code that the vandal used, and shift the elements by 13. This will make a total shift of 25, which will put all the cells back where they started. Then fixCodes() will expand the resulting image and save it. Task 8: progressively shift cells along rows: progressiveRowShift(smallPic) – 6 marks Was that too easy? The same principle can be applied to make a much bigger mess of the QR code. Instead of shifting each row by the same amount, each row has been shifted by its row number. So, Inft1004 Introduction to Programming Assignment 5 for example, row 0 hasn’t shifted at all, but row 10 has shifted by 10 positions. The vandal has performed these shifts leftward to produce image8.png, so to restore the QR code you will need to shift each row to the right by its row number. It should then be expanded and saved. Task 9: reflect rows: rowReflect(smallPic) – 6 marks Another thing covered in lecture 9 is reflecting an array about its middle element. The QR code vandal has done this to every row of image9.png, so you will need to do the same to restore the code, and then to expand and save it. Note that what we call reflecting is different from what Guzdial
Design a class named, contact, in namespace sict. This class
Question Design a class named, contact, in namespace sict. This class holds information about a person and their phone numbers. THe maximum character in the person’s name is stored in an modifiable variable name MAX_CHAR. The type contact contains the following information an array of characters of size MAX_CHAR ( excluding the null byte)What does that mean in side the namespace sict
Brute Force Code Cracker. It will take a cipher for
Question Brute Force Code Cracker. It will take a cipher for input, and run through all possible shift-cipher keys for it. There are only 26 possible keys for a shift cipher. After taking in a cipher input, need to, one-by-one, convert the characters that make up the string into numbers, shift them based on the key you’re currently testing, then shift them back to characters. Characters, when converting to numbers, take their ASCII values. Lower-case ‘a’ is 97, while lower-case ‘z’ is 122. Upper-case ‘A’ is 65, while upper-case ‘Z’ is 90. All the letters between them, have the numbers ranging between them.need to use modulo to take into account letters that might shift past the end of the group, such as trying to shift ‘y’ five letters to the right. The following cipher decodes as ‘Testing the System’ and may be used to verify code.Whvwlqj wkh VbvwhpTry these inputs1: Wkh qljkw lv orqj dqg zh doo suhwhqg wr vohhs2: F xrfqq hnyd mfx gjjs inxhtajwji zsijw ymj gtbqnsl fqqjd3: Yx Drebcnki dro vslbkbi gsvv lo exuxygklvo4: Epht bsf opu bmmpxfe jo uif eph qbsl5: Jrypbzr gb Avtug Inyr
Hi there, I need this question to be answered in
Question Hi there, I need this question to be answered in python please! I want to ask a user how many dice they want to roll (1-5) And then I want to ask a user how many times they want to roll the dice (1 )Based on these answers I need to make a list that counts the number of rolls its currently on, the sum of the faces of the die rolled, and the faces of the die rolled (random).So let’s say a user wants to roll 2 dice, and they want to roll the dice 3 times the output should look something like this:How many die do you want to roll?2How many times do you want to roll the dice? 3 This is the result run: 1 ; sum: 9 ; dice numbers : [3, 2, 4]run: 2 ; sum 15 ; dice numbers : [6, 4, 5]run: 3 ; sum 10 ; dice numbers : [2, 4, 5]
For my final project I need help with making an
Question For my final project I need help with making an application that determines if a year is a leap year. style=”color:rgb(0,0,0);background-color:rgb(255,255,255);”> The user will input value and I will determine if it is valid.Loop until the user inputs a valid year, determine if the year is a leap year.Output a message to the user if the year is a leap year or not.Including: Statement of the original problem solving or real-world process modeling; pseudocode; flowchart; test data for two methods; IPO Chart (for the same two methods as Test Data methods); java code with comments; validated User input, and the output I need both a doc file with all components and a java file.
how do I add a for loop to this java
Question how do I add a for loop to this java file to print 100 random numbers between 1 and 10?
How do I add a while loop to let a
Get college assignment help at Smashing Essays Question How do I add a while loop to let a user guess until they guess the random number to this java file?
**** Need Help With the following Play Tetris JAVA program.
Question **** Need Help With the following Play Tetris JAVA program. Below is the starting code. style=”color:rgb(34,34,34);background-color:rgb(255,255,255);”>Your task is to implement this interface, which means you’ll develop a class that provides code for all the methods declared in the interface. In addition to the methods specified by the interface, you will likely need to develop several private helper methods in order to fully implement it without redundancies.Currently the code below places everything against the left edge (column 0) without any rotation.*Earn full credit, AI must be able to place at least 125 pieces, averaged across the provided TEST sequences. This is double the performance of setting all weights to 1. To achieve this, manually adjust the weights, in increments of 3, meaning you should use combinations of weight values of 0, 3, 6, and 9, for each of the cost factors. Of all these possible combinations, about 15% will result in an acceptable level of performance, so even just guessing the weights will eventually yield a suitable combination.*Generate at least 5 test cases, with complex boards, for each interface method. You can satisfy this by creating at least 5 distinct test boards which you will simply share among assertions involving all the test methods. The test boards are expected cover a reasonably wide range of board layouts. You’re also encouraged to generate several simple test boards, to exercise cases like an empty board or an almost empty board. These trivial boards don’t count toward your required 5 test cases mentioned above. Note that Web-CAT won’t (and can’t) enforce this requirement, but the human grader will definitely be looking for this.
The start of Polymorphism AssignmentJava please />Design the following program:
Question The start of Polymorphism AssignmentJava please />Design the following program: A person has a name, and age. An athlete is a person. An athlete has a team and position. A baseball player is an athlete and a person. A baseball player has a battingPosition. Baseball players either bat lefthanded, righthanded or both. A football player is an athlete and a person. A football player has a specialty. A football player’s speciality is either Offense, Defense, or Special Teams. A hockey player is an athlete and a person. A hockey player has a stickBrand. A golfer is an athlete and a person. A golfer has a mainSponser. A soccer player is an athlete and a person. A soccer player has a fieldPosition – goalKeeper, defender, midFielder, or forward All sport type objects have a method named doThis(); Baseball -> doThis() displays I hit something. Football -> doThis() displays I tackle something. Hockey -> doThis() displays I sit in a penalty box. Golfer -> doThis() displays I putt it in the hole. Soccer -> doThis() displays I kick the ball … in general, all sports have a doThis() method that displays something. Main()Make the classes Person, Athlete, BaseballMake the classes Football, Hockey, Golfer, Soccer Make the doThis() method in each classIn main create the follow reference variables: Baseball Hank (Make this reference variable) Football Terry (Make this reference variable) Hockey Mario (Make this reference variable) Golfer Paula (Make this reference variable) Soccer Danilo (Make this reference variable) Baseball Barry (Make this reference variable) Football Peyton (Make this reference variable) Hockey Wayne (Make this reference variable) Golfer Phil (Make this reference variable) Soccer Carlos (Make this reference variable)And then… Call each sport’s doThis method (one at a time) passing each player. Call the toString methods for each player object. YOU MAY NOT EVER:Use global variables.Use the word goto.Use the break command outside a case statement.
A function (find s pattern) looks through s and returns
Question A function (find s pattern) looks through s and returns the smallest index in s where pattern exists as a substring. You may assume that s contains pattern somewhere. For example, (find “one fish two fish red fish blue fish” “fish”) => 4 (find “abcabcabc” “ab”) => 0
Certified program specialist exam for personal training
Can someone please take my online exam Please know personal training It’s the american sports association certified program specialist test I’ll give you my login information
Anything we covered in class or what is in the textbook is
Anything we covered in class or what is in the textbook is fair game.General multiple choice, true/false, fill in the blank with list of possible answers.
Take my program for personal training test online
Can someone please take my online exam Please know personal training It’s the american sports association certified program specialist test I’ll give you my login information
ENTD321 Application Classes and Software Architecture
Assignment 5 –Application Classes and ArchitecturePurposeThe purpose of this assignment is to begin the design modeling for our ITOT Case Study. You will develop an application class diagram that includes entity, view, and controller classes as well as an architecture diagram.In this assignment we will begin the design for the case study, the IT Online Training Project. You have already completed sample analysis specifications for this case study. This assignment is based on the IT Online Training Project Requirements 2018R2. In this assignment you will develop an application class diagram and the software architecture for the application. The software architecture is usually developed at the very beginning of analysis and design, is continually updated, and is the guiding document for the design of the application. Use the Design Specification Template 2018 to create your design specifications and make certain that you keep the formatting and numbering of the template for your assignments. The Design Specification Template is a Word file with predefined sections that you will complete each week as you did with the Analysis Specification. In this assignment you will create an application class diagram for your detailed use case and you will also create a system architecture for your application.In this assignment you will complete the following sections of your Design Specification:1, 1.1, 1.2, 1.3 Introduction to the Project2, 2.1, 2.2, 2.3, 2.3 System Architecture Diagram for Case Study3, 3, 3.1, 3.2, 3.3, 3.4, 3.5 4 1 Architecture4, 4.1, 4.2 Application Class DiagramDirections1. Review the IT Online Training Project Requirements 2018R2 and your previous submission for the project.2. Review the Quick Resources listed at the end of this assignment and the resources for Week 4..3. Open the Design Specification Template 2018 and save it as ENTD321Assignment5_FirstNameLastName.4. Sections 1, 1.1, 1.2, and 1.3. Complete Sections 1, 1.1, 1.2, and 1.3 of the Design Specification. These are just introductory comments. You can use the Analysis and Requirements Specification documents as references.Application Class Diagram5. Sections 4, 4.1, 4.2. Develop an application class diagram that includes entity classes (domain classes), view (boundary) classes like screens and forms, and controller classes that mediate between the view classes and model classes.5.1 Use your detailed use case (Manage Shopping Cart) as the basis as well as your sequence diagram. Review other use cases to make certain that the application class diagram supports the use case functions. Usually we start with one controller for each use case and name it using the name of the use case and the word “Controller”.5.2 So for application class diagram start with a controller named after your detailed use case. Use your CASE tool to create the application class diagram. Add text that includes your name and course number directly on the diagram.5.3 Add view classes for the forms you identified for your detailed use case in your analysis specification.5.4 Use your sequence diagram for your detailed use case and add the objects as classed to your application class diagram.5.5 Include a discussion of your application class model and how it works.5.6 Insert your application class diagram into Section 4.1 of your design specification. Complete Sections 4 and 4.2(discussion) of your design specification.System Architecture Diagram6. Sections 2, 2.1, 2.2, .2.3. Develop a System Architecture diagram for your IT Online Training application and include a discussion of the 4 1 architecture. Use some of the Microsoft suggested techniques or the web application techniques and present your architecture. I suggest that you might want to look at the Microsoft generic MVC architecture discussed in Lesson 5 and the Web Architecture article at the end of this assignment.6.1 Use your CASE or other tool and create an architecture diagram for the IT Online Training application. Insert it into Section 2.3 of your design specification. Complete Sections 2 (introduction to contents of section), 2.1 (assumptions and dependencies), 2.2 (general constraints), and 2.3.1 (discussion) of your specification.7. Sections 3, 3.1, 3.2, .3.3, 3.4, and 3.5. Complete Sections 3, 3.1, 3.2, .3.3, 3.4, and 3.5 with an analysis of the 4 1 Architecture. See FCGSS (2007) in the Quick Resources . Each section has instructions for completing it. Essentially you will include the following:3.1 Logical View –a brief description of the UML diagram you would propose and if you have already created the model, insert your model into the section.3.2 Process View–include a brief description of the UML model you would propose for this view and if you have already created the model, insert your model into the section.3.3 Implementation or Development View–a brief description of the UML diagram you would propose and if you have already created the model, insert your model into the section.3.4 Deployment View–include a brief description of the UML model you would propose for this view and if you have already created the model, insert your model into the section.3.5 Use Case View–include a brief description of the UML model you would propose for this view and if you have already created the model, insert your model into the section.Submission Instructions1. Make certain that your name and course number at the top of the document.2. When you submit your Word file, use your name as part of the file name, e.g., ENTD321Assignment5_FirstNameLastNameYour assignment will be graded with the following rubric:Rubric for AssignmentsPointsContent
This question was created from DBS301PRACTICESOLUTIONSETCSUPPLEMENTARYNOTESMARCH20,3003 https://www.coursehero.com/file/12368456/DBS301PRACTICESOLUTIONSETCSUPPLEMENTARYNOTESMARCH203003/ You want to
Question This question was created from DBS301PRACTICESOLUTIONSETCSUPPLEMENTARYNOTESMARCH20,3003 https://www..com/file/12368456/DBS301PRACTICESOLUTIONSETCSUPPLEMENTARYNOTESMARCH203003/ You want to display the employee’s last name hired from year 2000 to 2002. Which SQL statement give the required output? ATTACHMENT PREVIEW Download attachment 12368456-324150.jpeg
Given positive integer num_insects, I need to create a while
Question Given positive integer num_insects, I need to create a while loop that prints that number doubled up to, but without exceeding 100. Follow each number with a space.
Write a program to assign a color (red, green, blue,
Question Write a program to assign a color (red, green, blue, yellow) to each of the subregions in the square below so that no two neighboring regions are colored the same. Solve it in Python. ATTACHMENT PREVIEW Download attachment codingChallengeDiagram.png
The post Demonstrate event-controlled loop using boolean flag to present a menu. appeared first on Smashing Essays.