Programming Logic & Design Comprehensive
9th Edition
ISBN: 9781337669405
Author: FARRELL
Publisher: Cengage
expand_more
expand_more
format_list_bulleted
Question
error_outline
This textbook solution is under construction.
Students have asked these similar questions
Computer Science
Submit your code solution in .asm files. Please also submit a screenshot showing that you ran the code inside Visual Studio.
1. DRAW TEXT COLORS
Write a program that displays the same string in four different colors, using a loop.
You can call the SetTextColor procedure from the Irvine book’s link library. Any colors may be chosen; you may find it easiest to change the foreground color.
You can also call the procedures WriteString and Crlf.
There will be "Read File", "Show Results", "Show Teams" screens with GUI design. We will read the file path on the file reading screen and make the teams match. Lines with "-" at the beginning of the text file will be sets. The players below it will be recorded as name, surname and number and will be the players of the team above. Between 1-10 random levels will be given to each player, the total of which will be the team's level. Each team will play 1 match between themselves and the higher level will be defeated 1-0 and will get 3 points. In the show teams screen in Gui design, the players of the selected team from the combobox will come to the table and when a new team is selected, the players of that team will come and the players of the old team will not appear on the screen. in Java.
player.txt contents.
-Alanyaspor
Ahmet Gülay 1 Alpay Celebi 2 Ceyhun Gülselam 3 Efecan Karaca 4 Salih Uçan 5 Adam Bareiro 6 Khouma Babacar 7 Call South 8 Hasan Acar 9 Mustafa Pektemek 10 Berkan…
write the code to lookup, add and remove phoneentries from the phonebook text file .
These are the code we use for the lookup, add and remove in the case statement.(Lookup)# Look someone up in the phone bookgrep $1 phonebook
(add)echo "$1 $2" >> phonebooksort -o phonebook phonebook
(Remove)grep -v "$1" phonebook > /tmp/phonebookmv /tmp/phonebook phonebook
Write a complete Bash script which will accept up to three command-line arguments: the first one is either (lookup, add or remove), the second one is a name enclosed in single quotes and the third one (if doing an add) is a phone number enclosed in single quotes. Using a case statement to match on either lookup, add or remove, the script should then perform the requested operation. Again here, you should first check for null arguments before continuing with the rest of the script or requested operation. In addition, the person may not be in the phonebook for lookup or remove so, you need to account for this.
Knowledge Booster
Similar questions
- The photo talley.jpg is opened for you and saved into the variable photo. You munt edit the image so there is NO blue color is remaining in the photo variable. This is to be done with indexing. Once the blue color has been taken out., use inshow to view the newly edited image. Script o C Reset I MATLAB Documentation read in the photo using imread 2 photo = imread(talley.jpg"); imshow(photo); Ndisplaying the original image 4figure();X the photo will blue renoved will be shown in a different figure 5* take the blue out of the photo X use imshow to view the new, edited photoarrow_forwardQ1.Write a GUI program to let the user enter a file name from an entry field and then count the number of occurrences of each letter in that file. Clicking the Show Result button displays the result in a text widget. You need to display a message in a message box if the file does not exist. Q2.Revise the preceding exercise to display a histogram for the result, as shown in the figure below. You need to display a message in a message box if the file does not exist. PYTHON ONLY!! Thank you! Also, could you add some explanations of your code please.arrow_forwardWhen importing a Text file, why is it important to move through each step of the Text Import Wizard?arrow_forward
- a textbox for an optional search term, and a file upload field which allows them to upload a file which contains multiple lines of text (with the file each line should be treated as a separate string). The user can enter a string and upload a file in the same submission of the form. For the single string: if a search term is provided, output the string with the search term highlighted (by wrapping the term in a span with an appropriate class). For the file upload:, if a search term is provided output only the strings that contain the search term (with the search term highlighted) and a count of the number of strings that did not have the term. please do this in PHP and HTML onlyarrow_forwardModify ccurve.py by changing the background color to yellow, and curve color to red Code: """Program file: ccurve.pyAuthor: Ken This program prompts the user for the level ofa c-curve and draws a c-curve of that level.""" from turtle import Turtle def cCurve(t, x1, y1, x2, y2, level):def drawLine(x1, y1, x2, y2):"""Draws a line segment between the endpoints."""t.up()t.goto(x1, y1)t.down()t.goto(x2, y2)if level == 0:drawLine(x1, y1, x2, y2)else:xm = (x1 + x2 + y1 - y2) // 2ym = (x2 + y1 + y2 - x1) // 2cCurve(t, x1, y1, xm, ym, level - 1)cCurve(t, xm, ym, x2, y2, level - 1) def main():level = int(input("Enter the level (0 or greater): "))t = Turtle()t.hideturtle()cCurve(t, 50, -50, 50, 50, level) main()arrow_forwardButton Toggle How can we make a button that toggles a text view (not the button label) between "Howdy Class!" and "You Pressed Me!"? Please write the java onClick function that would be specified in the button onClick property. Do not use string comparison to determine the current state. Also, do not use hard code string values.arrow_forward
- CAN I GET THE OUTPUT ON THIS PROGRAM ALONG WITH THE CODE? 3) Write a java program for displaying one flag at a time from nine countries flags. You mayhave a base Form with nine buttons (you may use Listview to trigger the events as well or anyother method) and upon clicking one of the buttons (or selecting Listview item, or Combo boxitem) with the country name on it the image box / Label icon should display the country flag.arrow_forwardHere are what to display on your Pokémon's show page: The pokemon's name The image of the pokemon An unordered list of the Pokemon's types (eg. water, poison, etc). The pokemon's stats for HP, ATTACK, and DEFENSE. module.exports = [ { id: "001", name: "Bulbasaur", img: "http://img.pokemondb.net/artwork/bulbasaur.jpg", type: [ "Grass", "Poison" ], stats: { hp: "45", attack: "49", defense: "49", spattack: "65", spdefense: "65", speed: "45" }, ]; Routes Your app should use RESTful routes: Index GET /pokemon Show GET /pokemon/:id New GET /pokemon/new Edit GET /pokemon/:id/edit Create POST /pokemon Update PUT /pokemon/:id Destroy DELETE /pokemon/:idarrow_forwardIn java plsarrow_forward
- Python question please include all steps and screenshot of code. Also please provide a docstring, and comments throughout the code, and test the given examples below. Thanks. Two words are anagrams if the letters of one can be rearranged to form the other. Forexample, mar, ram, and arm are all anagrams of each other. One way to quickly identifywhether two arbitrary words are anagrams are to sort the letters in each word to produce asignature. (The above words all have the signature 'amr'.) Two words are anagrams if andonly if they have the same signature. Write a function called anagrams() that takes thename of a text file as its only parameter. The file is assumed to have one word per line,all lower-case. The function returns a dictionary in which the keys are signatures ofwords in the file and the value for each key is the set of all words in the file having thatparticular signature.arrow_forward|When you use the same code to perform a routine operation, you can save it as |this and reuse that code over and over by simply typing in the whatever you name it. An example would be printf() |Abstraction if you are using a drag and drop web design program and want to insert a picture by dragging the picture element to the page, the actual code is written because of your actions even if you do Function not see the code.arrow_forwardWrite a code to the following image using Console.WriteLine.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:CengageEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
EBK JAVA PROGRAMMING
Computer Science
ISBN:9781337671385
Author:FARRELL
Publisher:CENGAGE LEARNING - CONSIGNMENT