Concept explainers
Using Files-Birthday List
Write a
Want to see the full answer?
Check out a sample textbook solutionChapter 9 Solutions
Starting Out with C++: Early Objects (9th Edition)
Additional Engineering Textbook Solutions
Starting Out with Java: From Control Structures through Data Structures (4th Edition) (What's New in Computer Science)
Electric Circuits. (11th Edition)
Java: An Introduction to Problem Solving and Programming (8th Edition)
Introduction To Programming Using Visual Basic (11th Edition)
Modern Database Management
Web Development and Design Foundations with HTML5 (8th Edition)
- question 2arrow_forwardAssignment 5C: Level Map Creator. There are a variety of ways that game developers store their level layouts. One simple method is to associate level elements with certain symbols, and then storing them in a 2D grid inside a text file. We will use our knowledge of 2D arrays to create a very simple Level Map Creator tool. The program should prompt the user to enter a width and height for the level. Then it should initialize a 2D array and fill every element with the *" symbol. Afterwards, the user should be given the following options via a menu: 1. Clear Level 2. Add Platform Prompt the user to enter a starting point and length for the Re-initialize the 2D array and fill every element with the "** symbol. horizontal platform. Replace those elements in the 2D array with the "=" symbol. If the length is longer than the number of columns |(or out of bounds), notify the user that this is not possible. Prompt the user to enter a column and row index. Replace that element in the 2D array…arrow_forwardThe strItems array is declared as follows: Dim strItems(20) As String. The intSub variable keeps track of the array subscripts and is initialized to 0. Which of the following Do clauses will process the loop instructions for each element in the array? a. Do While intSub > 20 b. Do While intSub < 20 c. Do While intSub >= 20 d. Do While intSub <= 20arrow_forward
- Question Write a statement that declares a string arrays initialized with the following strings: Write a loop that display the content of each element in the array declared in question 1 "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" and "Sunday"arrow_forwardDescription Create an application that maintains an array of your home inventory and displays the contents of the array in a list box. For this assignment, we will be using an array. In later chapters, we will modify this application to use a database or an external text file. The application should look like: g My Home Inventory Home Inventory Item Description Ist Homelnventory Serial Number Cost ADD DELETE REFRESH BYE Detailed Instructions 1. Define arrays for Item Description, Serial Number, and Cost after the Public Form Q and before any click of page load events. 2. In the Page Load Event, populate the Home Inventory List Box with the data from the arrays using the format: "ItemDecription (SerialNumber, Cost)". 3. If the ADD button is clicked, add the Item Description, Serial Number, and Cost to the Home Inventory List Box and to the appropriate arrays. 4. If the DELETE button is clicked, remove the item from the Home Inventory List Box and corresponding arrays. 5. If the REFRESH…arrow_forwardAll code in JAVASCRIPT Write a program that creates two files with the names file4 and file4a two 10 element int arrays with the names arrfile4 and arrfile4a; these arrays are to have different values write the contents of arrfile4 to file4write the contents of arrfile4a to file4aarrow_forward
- 4. An array named nums contains the following numbers: 5, 10, 15. It is declared as follows: box const nums = [5, 10, 15]; Write the necessary code to display each item in the array in an alert using a for loop?arrow_forwardUsing C# in Microsoft Visual Studio Create an application that simulates a game of tic-tac-toe. The application should use a two-dimensional int array to simulate the game board in memory. When the user clicks the New Game button, the application should step through the array, storing a random number in the range of 0 through 1 in each element.The number 0 represents the letter O, and the number 1 represents the letterX. The form should then be updated to display the game board. The application should display a message indicating whether player X won, player Y won, or the game was a tie.arrow_forwardThe variables numberArray1 and numberArray2 reference arrays that have 100 elements each. Write code that copies the values from numberArray1 to numberArray2arrow_forward
- GRADEBOOK PROJECT Attached Files: Gradebook.docx (18.278 KB) Gradebook Practicla Project: use the attached code as an exaple and modify where neccesary to fit your situation Write a program that uses an array of string objects to hold the five student names, an array of five characters to hold the five students' letter grades, and five arrays of four doubles to hold each student's set of test scores. The program should allow the user to enter each student's name and his or her four test scores. It should then calculate and display each student's ayerage test score and a letter grade based on the average. Input Validation: Do not accept test scores less than 0 or greater than 100. Use the following test score grades Test Score Letter Grade 80-100 -> A 70-79 -> B 60-69 -> C 50-59 -> D OO HUAWEI P30 lite TRIPLE CAMERA Activate Windows dolto versarrow_forwardHands-On Activities Hands-On Activity 10-1 Write a pseudocode program that creates an array, prompts the user to enter five cities, and displays the array's contents. The contains five elements. Use a For loop to prompt the user to enter cities, and then use another For loop to display the contents. Save the file as cityArray.txt. arrayarrow_forwardIn visual basic Write the code that will sequentially search through the array strFirstNames and will print out the word "Found" if the name "Brian" is in the array.arrow_forward
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology PtrProgramming with Microsoft Visual Basic 2017Computer ScienceISBN:9781337102124Author:Diane ZakPublisher:Cengage LearningEBK JAVA PROGRAMMINGComputer ScienceISBN:9781337671385Author:FARRELLPublisher:CENGAGE LEARNING - CONSIGNMENT
- Microsoft Visual C#Computer ScienceISBN:9781337102100Author:Joyce, Farrell.Publisher:Cengage Learning,Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage