In C# Create A Program Using Functions And Arrays. The Program Will Ask The
Get college assignment help at Smashing Essays In C# create a program using functions and arrays. The program will ask the user for player ones name and then player twos name. The game will then ask what row the player wanted to use and then what column. The board will display the row numbers above the board and column numbers to the left of the board. The board must display x and o of the players choice.
MATLAB Question Question: Create A Function That Determines The Magnitude And Direction (in Degrees)
MATLAB Question Question: Create a function that determines the magnitude and direction (in degrees) of velocity of an arrow given initial conditions and a time vector are provided as inputs.
MATLAB Question Question: Create A Function That Determines The Total Cost Of The Order,
MATLAB question Question: Create a function that determines the total cost of the order, given the number of motors is provided as an input.
MATLAB Question Question: Create A Function That Determines The Maximum Number Of Motors A
MATLAB Question Question: Create a function that determines the maximum number of motors a customer can purchase given their budget is provided as an input (Hint: you can use the floor function to round a number down).
1. Which Of The Following Changes The String Stored In The StrName Variable From
1. Which of the following changes the string stored in the strName variable from “Mark Smyth” to “Mark Smith”? a. strName = strName.Change(“y”, “i”) b. strName = strName.Remove(7, 1) strName = strName.Insert(7, “i”) c. strName = strName.Remove(7) strName = strName.Insert(7, “i”) d. both b and c
Which Of The Following Expressions Evaluates To True When The StrPart Variable Contains The
Which of the following expressions evaluates to True when the strPart variable contains the string “12AX45”? a. strPart Like “99[A-Z][A-Z]99” b. strPart Like “######” c. strPart Like “##[A-Z][A-Z]##” d. none of the above
4. If The StrMessage Variable Contains The String “Today Is Sunday”, Which Of The
4. If the strMessage variable contains the string “Today is Sunday”, which of the following assigns the number 10 to the intNum variable? a. intNum = strMessage.Substring(“u”) b. intNum = strMessage.Substring(“S”, 1) c. intNum = strMessage.IndexOf(“u”) d. intNum = strMessage.IndexOf(0, “S”)
5. If The StrName Variable Contains The String “Tony Harris”, Which Of The Following
5. If the strName variable contains the string “Tony Harris”, which of the following changes the contents of the variable to “Tony J. Harris”? a. strName = strName.Insert(” “, ” J. “) b. strName = strName.Insert(5, “J. “) c. strName = strName.Insert(4, ” J.”) d. both b and c
6. Which Of The Following Changes The Contents Of The StrWord Variable From “trees”
6. Which of the following changes the contents of the strWord variable from “trees” to “tree”? a. strWord = strWord.Trim(4) b. strWord = strWord.Trim(5) c. strWord = strWord.Remove(4) d. strWord = strWord.Remove(5, 1)
8. If The StrAddress Variable Contains The String “123 Maple Street”, What Will The
8. If the strAddress variable contains the string “123 Maple Street”, what will the strAddress.IndexOf(“Maple”) method return? a. –1 b. 4 c. 5 d. True
1a). What Is The Null Terminator? What Is Its Use In C ? B) What
Get college assignment help at Smashing Essays 1a). What is the null terminator? What is its use in C ? b) What library do you need to use in your code to use strings in C ? NOTE: XCode may let you get away without this do NOT leave it out you will have issues on the exams if you do.
HTML – CSS – JS – FORM CREATION AND VALIDATION ———————————————————————————————————– A Simple Registration
HTML – CSS – JS – FORM CREATION AND VALIDATION ———————————————————————————————————– a simple registration form. Every visible form input should be labeled with explanatory text(like “Username:” or “Enter Message Here…”). The form should have the following inputs: ————————————————– •Username (a text field) ————————————————– -The user should enter only letters in this field, or the entry is invalid ————————————————– •Password (a password field,) ————————————————– -The user should enter a password containing a mix of upper-case and lower-case letters and numbers (at least one of each, or the entry is invalid). Other characters are allowed but optional. ————————————————– •Student ID number (a text field) ————————————————– -The user should enter a 9 digit number. No letters are allowed or the entry is invalid. ————————————————– •Message(a textarea) ————————————————– -The user may enter up to 25 words(note: not characters!). -The field should be disabled if 25 words are entered, such that no other words can be typed into the textarea. This can be accomplished a few different ways. -Text next to the field should count down from 25 to 0 as the user enters words. -The string split() method can be used with a single space “ “ delimiter, or with a regular expression to capture all white space. This is up to you. Both are considered correct. ————————————————– •Submit (a button input type, or a submit input type if you can get this to work without actually submitting the form) ————————————————– When the user presses the Submit button, the form is checked.
For Each Of The Following Program Segments, Execute The Program One Instruction At A
For each of the following program segments, execute the program one instruction at a time. At the end of each instruction execution, indicate any changes in registers, condition flags, and/or memory locations (if there is any). Note that the result of any instruction may be an operand for succeeding instructions. ..I have the answers. I would really appreciate/rate if someone can write an executable code for this. I tried but mine gave me errors in code composer.
Can You Please Explain To Me That Code? Def Show_definition(): Random_value = Choice(list(glossary.values())) Print(‘What
can you please explain to me that code? def show_definition(): random_value = choice(list(glossary.values())) print(‘What word is defined by:’, random_value) input(‘Press return to see the definition’) for key, value in glossary.items(): if value == random_value: print(‘The right definition was:’, key) how work that part? for key, value in glossary.items(): if value == random_value: thank you very much
PYTHON Write A Python Program That Plays A Guess-the-number Game With Magic Lists. The
PYTHON Write a Python program that plays a guess-the-number game with magic lists. The program will play as many games as the user wants. In each game, the program asks the user to think of a number between 1 and 31, inclusive. Then the program presents the user with 5 lists of numbers and asks the user if their number is in the list. Based on the user’s answers of ‘y’ or ‘n’, the program guesses the user’s number. The program works with 5 files, each file contains 16 integers, one number per line. The filenames are: magicList1.txt, magicList2.txt, magicList3.txt, magicList4.txt, and magicList5.txt This is the same as lab5.py. The program is divided into a NumberGuesser class and a main function. (3pts) It might be helpful to open lab5.py since you’ll be using some of the same code in lab5.py for lab6.py. The NumberGuesser class Create a class named NumberGuesser. (5pts) The class has 3 methods: (5pts) CreateList function into the constructor of the NumberGuesser class. (15pts) The constructor does the following tasks: Loop 5 times to: (5pts) Open one magcListN.txt file each time through the loop. (10pts) Read the 16 numbers from the file into a list. This is the same as in lab5.py. (15pts) Store the list into an instance attribute named magicLists, which is also a list. (15pts) By the time the constructor is finished, there should be a magicLists instance attribute which contains 5 magic lists. Write a new printAList method that does the following tasks: (5pts) Receive a magic list as input argument (10pts) Have a nested loop to print the numbers in the list as 4 rows by 4 columns. This is the same as in lab5.py. (15pts) Convert the lab5’s checkList function into a checkList method. (5 pts) The method does the following tasks: Loop 5 times to: (5pts) Call the printAList method to print one magic list at a time (10pts) Loop to keep asking the user whether their number is in the list, until you get a ‘y’ or ‘n’ answer (15pts) If the answer is ‘y’, add the value corresponding to the current magic list to the total. (30pts) You’ll need to figure out how to tell the computer what the corresponding value is. Example: 16 is the corresponding value for magic list 1, 8 is the corresponding value for magic list 2, etc. 5 pts extra credit: if you can figure out how to add the corresponding value without using an if statement. The checkList method returns the total. (5pts) The main function Write the main function, which is not part of the NumberGuesser class. (5 pts) The main function will: Create an instance (an object) of the NumberGuesser class. (15pts) Loop as long as the user wants to play. You decide how the user indicates that they want to play again, such as answer ‘y’ or ‘n’, or any 2 choices that make sense.(15pts). Inside the loop: Call the checkList method to get the total. (15 pts) If the total is non-zero, then print the user’s number If the total is 0, then print an error message (10pts) Don’t forget to call the main function so that the program will run. (10pts) Text files: magicList1.txt 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 magicList2.txt 8 9 10 11 12 13 14 15 24 25 26 27 28 29 30 31 magicList3.txt 4 5 6 7 12 13 14 15 20 21 22 23 28 29 30 31 magicList4.txt 2 3 6 7 10 11 14 15 18 19 22 23 26 27 30 31 magicList5.txt 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 Sample Output:
// ——- Fib.h ——– // #ifndef __FIB_H__ #define __FIB_H__ // Pre: N > 0
// ——- fib.h ——– // #ifndef __FIB_H__ #define __FIB_H__ // pre: n > 0 // post: first n numbers of the Fibonacci sequenced are printed to STDOUT void fib(int n); #endif //__FIB_H__ // ——- fib.c ——– // #include “fib.h” #include void fib(int n) { // TODO: implement this function } // ——- main.c ——– // #include “fib.h” #include #include int main(int argc, char **argv) { if (argc != 2) { printf(“usage: %s [print the first n number of the Fibonacci sequence]n”, argv[0]); return EXIT_FAILURE; } int n = atoi(argv[1]); if (n < 1) { n = 1; } fib(atoi(argv[1])); return EXIT_SUCCESS; }
This Program Uses The Map Template Class To Compute A Histogram Of Positive Numbers
This program uses the map template class to compute a histogram of positive numbers entered by the user. The map’s key is the number that is entered, and the value will be a counter of the number of times the key has been entered so far. Note that it uses -1 as a sentinel value to signal the end of user input. Your task is to complete the section of code that uses a constant iterator and traverses through the map outputting “the number … appears … times”, where the (…) are the values from the map via the use of the iterator. Hint: recall that a map uses two reserved words in conjunction with iterators. Follow the code below and write your code to output the histogram. You only need to write that piece of logic. The end of the program after your code is assumed. #include // COMPLETE using namespace std; int main() { // COMPLETE – Create a map object named histogram. int num = 0; cout << "Enter positive numbers. Enter -1 when done." << endl; //COMPLETE for the programming task while { } // COMPLETE – Output the histogram map::const_iterator iter; for ( ) { cout << "The number " << << " appears " << << " times." <> ch; return 0; }
I Would Like To Use Arrays.class, But I Don’t Know How To Use It.
I would like to use Arrays.class, but I don’t know how to use it. Could you help me to use it? The problem is if I put sort 8 7 6 5 4 3 2 1 3000 1000(not separate) in console, I will get 1 2 3 4 5 6 7 8 1000 3000. However, I don’t know how to get it by arrays.class, like arrays.sort. You need to convert from String to Interger. Please don’t change below code. public static void main(String[] args) { Scanner ac= new Scaneer(System.in); String a = “”; System.out.println(“What is sort?”) a = ac.nextLine(); String b = a.split(“ “); if(b[0].equals(“sort”) { // if I tpye sort, it will calculate. } Thank You
1.Create A New Table Named FUNDS For Your Volunteer Database. The FUNDS Table Will
1.Create a new table named FUNDS for your volunteer database. The FUNDS table will be used to track amount of funds raised per week by the volunteers. Write and run SQL INSERT statement to insert at least 10 rows of data into the FUNDS table. 2. Create a new table named HOURS for your volunteer database. The HOURS table will be used to track hours worked per week by the volunteers. Write and run SQL INSERT statements to insert at least 10 rows of data into the HOURS table. 3.Create 3 queries using SQL JOINs involving two or more tables to display information for all volunteers. Submit the text of the queries and results, in addition to screenshots when you turn in the assignment.
Learn About Creating Good Password Security. An IT Security Consultant Has Made Three Primary
Learn About creating good password security. An IT Security consultant has made three primary recommendations regarding passwords: Prohibit guessable passwords such as common names, real words, numbers only require special characters and a mix of caps, lower case and numbers in pws Reauthenticate before changing passwords user must enter old pw before creating new one Make authenticators unforgeable do not allow email or user ID as password Using WORD, write a brief paper of 200-300 words explaining each of these security recommendations. Add additional criteria as you see necesarry.
Upgrade From Windows 7 To Windows 10 Project Section 1: Introduction 1.1. Project
Upgrade from Windows 7 to Windows 10 project Section 1: Introduction 1.1. Project Overview and Description 1.2. Organizational Context 1.3. Business Drivers 1.4. Solution Architecture 1.5. Project Success Criteria Section 2: Scope
The post In C# Create A Program Using Functions And Arrays. The Program Will Ask The appeared first on Smashing Essays.