The instructions in a _____________________ loop might not be processed at all, whereas the instructions in a _____________________ loop are always processed at least once. a. posttest, pretest b. pretest, posttest
Q: I need help with these JavaScript Questions. Questions #1 What value will the variable x have…
A: Given: List and explain two cloud security issues.
Q: #include #include "HPVISACard.cpp" #include using namespace std; int main() { // Declare…
A:
Q: A commonly used include file in C-language which declares memory management. Select one: O a.…
A: A commonly used include fil in C-language which declares memory management: a. alloc.h The…
Q: IN JS ONLY NEEDED SOLUTION Your local bank has decided to upgrade its ATM machines by incorporating…
A: In this problem, we need to design the code in the Java Script programming language. Input -…
Q: in python 3 Create a program that does the following: Use the createMenu function to make 3 menus:…
A: Below is the required python program: -
Q: What is the output of the following GL main loop? float a = 0.0f; protected void glMainLoop(){…
A: In above program : -------------------------------------- 1.In glMainLoop runs one time only.…
Q: reate a program that will use the following predefined functions: pow(), sqrt()
A: C++ code: #include <iostream>#include <cmath>using namespace std; //function…
Q: #include #include #include "Donor.cpp" using namespace std; int main() { //Fill your code }…
A: Given a C++ code to collect Blood donor information. In the main function the object for Donor class…
Q: You have been asked to write a program that will allow your client Tigger Movie Rentals to keep…
A: #This function lists all the inventory names from the file.def display():with open("movies.txt") as…
Q: IN JS ONLY NEEDED SOLUTION Your local bank has decided to upgrade its ATM machines by incorporating…
A: The JS code is given below with code and output screenshot Happy Coding?
Q: A. LEGv8: 1. Go to the 3rd emulator in Section 2.4. Make the following change to the code there:…
A: The emulator is needed to see the answer for X0-X1.
Q: P Part 1 - Write Code Use Java or C or C++ to write an echo program. Name your source code file…
A: Step 1 : Start Step 2 : In the main method , Declare a string variable to store the entered Text.…
Q: Using linux bash, create a function getScore that will a. Ask the user to enter the score and store…
A: Using the Linux bash Create a function named getScore. Prompt the user to enter the score. Store the…
Q: True or False? In a VBA macro you have the following statements: Dim word As String Dim x As…
A: If "kodak" is replaced by "kayak" or keeping the "kotak" string as it is then also this macro will…
Q: In this homework, you will: 1. Write a program that utilizes user input. 2. Write a program that…
A: name = input("Enter your name: ")address = input("Enter your address: ")phNo = input("Enter you…
Q: IN JS ONLY NEEDED SOLUTION Your local bank has decided to upgrade its ATM machines by incorporating…
A: The JS code is given below with output screenshot
Q: Develop the Music Player Experimental (MPX) as discussed in lecture. For Apple Developers you need…
A: Develop the Music Player Experimental (MPX) as discussed in lecture.For Apple Developers you need…
Q: 2) Start with a working copy of loop-2.py from last lab, and name it Welcome to our counting…
A: The python code for counting the numbers , here we accepted the input from the user for smaller…
Q: Q1. Write a C program to create link list and short the elements of link list in increasing order.…
A: C program to create a linked list and sort the elements, on ubuntu. Solution- Create a C file using…
Q: IN JS ONLY NEEDED SOLUTION Your local bank has decided to upgrade its ATM machines by incorporating…
A: Input - String Output - Dance moves available in the pin Logic - if(pinArray.filter(p => {…
Q: 1) Write a code that decrements AL. If number is not signed (if positive) jump to label NEXT. 2)…
A: the program is given below:-
Q: Your output should look like this: lab2_2.py - /Users/frankyaraujo/Library/Mobile Documents/cor…
A: 1) Below is updated python program to compute value of a power b using repeated multiplication It…
Q: a. Prints inputString as it is. [Hint: use escape sequence] b. Copies inputString into…
A: Note: The solutions of the first three subparts are shown below. Please repost the remaining parts…
Q: Figure shows a sliding window. The input text stream is ikaccbadaccbaccbaccgikmoabc. In part (a) of…
A: solution is given in next step:-
Q: Can you please write a C code (NOT NOT C# c sharp) that shows a menu of two options 1- transform…
A: 1) For transform colored image to black and white. The simplest way is the take means of the rgb…
Q: Use the following link to write the program: https://www.onlinegdb.com/ Copy your work with output…
A: Mathematical calculations can be done using mathematical expressions in C. Some of the useful…
Q: IN JS ONLY NEEDED SOLUTION Your local bank has decided to upgrade its ATM machines by incorporating…
A: In this problem, we need to design the code in the Java Script programming language. Input -…
Q: hello, below i done a coding on visual studios but theres an error that keeps showing which is…
A: Step 1: Create new console application in Visual Studio. Step 2: Declare a List of Strings. Step 3:…
Q: I need to combine these programs into one with a menu system that looks like this: Menu ==== 1.…
A: A combination of given programs into a menu system is as follows, #include<iostream>…
Q: RGB LED fading colors project. Write comments for the below C code explaining each line. Code is…
A: RG B LED fading colors project. The comments for the given code is given below:
Q: Use Regular Expressions to write the python code for following” a. Search all appearances of…
A: Summary: A RegEx, or Regular Expression, is a search pattern made up of a series of characters.To…
Q: Write a complete program for a Menu System that will display the following for its menu: MAIN MENU…
A: #include <bits/stdc++.h> using namespace std; //function prototyping void displayTriangle(){…
Q: Laboratory 10 C:\Users\Ana\Documents\Codel Enter number of rows: 8 Write a c++ program that will…
A: Program Approach: Including a necessary header file Defining a Function to display the pattern…
Q: Can you exlplain with comments following data .data prompt byte1 "Input number1:-" mynumber1 byte1…
A: The given code swaps two number from different memory with the use of temporary variables.
Q: Here is the code for the questions below pic = makeEmptyPicture(100,100) pixy = getPixel(pic, 70,…
A: Here is the code for the questions below pic = makeEmptyPicture(100,100) pixy = getPixel(pic, 70,…
Q: IN JS ONLY NEEDED SOLUTION Your local bank has decided to upgrade its ATM machines by incorporating…
A: Algorithm - Take input from user. Now use the below logic - if(pinArray.filter(p => {…
Q: Python Create a MP3 Music Player using Tkinter 1. Ability to select a folder (directory) for MP3s.…
A: Hey there, I am writing the required solution based on the above given question. Please do find the…
Q: In this project you will implement a program that simulates a simple text editor with the undo/redo…
A: Answer #include<stdio.h>#include<string.h>#include<stdlib.h>char data[100][100];…
Q: For the figure below, writing the following code in the command window "x-[12 3); LISA()" will give…
A: Answer's a) Option B is correct: A variable y will be saved in the workspace. Explanation: Since in…
Q: What value will RAX contain after the following instructions execute? .data dwordVal DWORD 84326732h…
A: The step by step is below:
Q: Which of the following is an example of memory being dynamic? You never saw Snow White and the Seven…
A: Memory being dynamic basically means that all type of data are stored in the same memory
Q: Write a code that decrements AL. If number is not signed (if positive) jump to label NEXT.…
A: Answer: Our requirement is answer the first three question form the first question. I have written…
Q: you please show the input and output of the code it would help very much. There is also a text file…
A: main.cpp - #include <iostream>#include <vector>#include <string>#include…
Q: What value will EAX contain after the following instructions execute?.datadVal DWORD…
A: Value in EAX after execution: The DWORD contains the value 12345678h The statement mov WORD PTR…
Q: Figure shows a sliding window. The input text stream is ikaccbadaccbaccbaccgikmoabe. In part (a) of…
A: a. Answer: - Triple: <6.2, C(c)> - Search buffer of size 9 - Look-ahead buffer of size 6 b.…
Q: CH5: Looping > 11133 x WorkArea Results O Instructions Write a loop that reads positive integers…
A: The problem is based on the basics of loops in C++ programming language.
Q: Which of the following is an entry- ?controlled loop A) do-while loop O B) while loop O C) for loop…
A: Q.1 Which of the following is an entry-controlled loop Ans :- D) for loop and while loop
Q: Assume we are creating an application that allows multiple users to form groups and write a story…
A: Document format based on JSON. Contain a complete record of the user's sessions and include code etc…
Q: There is a multiline string variable i.e. inputString = ‘Dell Display Manager’s (DDM) Easy Arrange…
A: def doRequired(inputString): print('Input String:\n {}\n'.format(inputString))…
Q: IN JS ONLY NEEDED SOLUTION Your local bank has decided to upgrade its ATM machines by incorporating…
A: Input - String Output - list of dance moves available in pin Logic - if(pinArray.filter(p =>…
The instructions in a _____________________ loop might not be processed at all,
whereas the instructions in a _____________________ loop are always processed at
least once.
a. posttest, pretest b. pretest, posttest
Trending now
This is a popular solution!
Step by step
Solved in 3 steps
- I am having trouble running this code properly, I believe it has something to do with the location of my board.dat file, but am unsure how to exactly fix it. Upon running the code, I can not open file error. Attached is an image of what my board.dat text file looks like that is located on my desktop. #include<iostream> #include<fstream> #include<string.h> using namespace std; // function prototypes void Fire(char board[][25]); void FleetSunk(char board[][25], int&); int main() { // declaring board char board[25][25]; ifstream infile; // opening the input file infile.open("board.dat"); if (!infile) { cout << "Can not open file." << endl; } // taking input from file for (int i = 0; i < 25; i++) { for (int j = 0; j < 25; j++) { char bS; infile >> bS; board[i][j] = bS; } } int fS = 0; // calling functions do { Fire(board); FleetSunk(board, fS); } while (fS == 0); system("PAUSE"); } void Fire(char board[25][25]) { int row =…Here is the code for the questions below pic = makeEmptyPicture(100,100) pixy = getPixel(pic, 70, 30) setColor(pixy, blue) pixie = pixy setColor(pixie, red) 1.What is the meaning of the instruction pixie = pixy in the code above? which one of this is the answer a. Make the pixie variable refer to the same pixel object that pixy already refers to b. Make a copy of the pixel object referred to by pixie, and store it in the variable pixy c. Make the pixy variable refer to the same pixel object that pixie already refers to d. Make a copy of the pixel object referred to by pixy, and store it in the variable pixie 2. What color is pixel pixy when this code finishes running? a. cannot be determined from the information provided b. magenta c. blue d. red 3. What color is pixel pixie when this code finishes running? a. blue b. red c. magenta d. cannot be determined from the information providedCreate an application that plays the Hi-Lo guessing game with numbers. The programme should select a random number between 1 and 100 (inclusive) and then urge the user to guess the number several times. Report to the user whether he or she is correct or whether the guess is high or low. Continue accepting guesses until the user successfully guesses or chooses to quit. To establish whether the user wants to quit, utilise a sentinel value. Count the amount of guesses and report the value when the user successfully guesses. At the end of each game (through quitting or a right guess), ask the user if they want to play again. Continue to play games till the user decides to stop.
- Java Code o Timeline brightness_2 notifications  list DetailsCode 3. Negative Allergy by CodeChum Admin Whole numbers are great, but I think we should also pay attention to decimal numbers, too. So, how about we make a program that involves a lot of decimals? Instructions: Continuously ask for floating point values (decimal numbers) using the do…while() loop, sum them all up, and store the total into one variable. The loop shall only terminate for the following reasons: A negative decimal number is inputted (but still included in the total sum) The total sum reaches 100.0 or more Instructions Continuously ask for floating point values (decimal numbers) using the do…while() loop, sum them all up, and store the total into one variable. The loop shall only terminate for the following reasons: A negative decimal number is inputted (but still included in the total sum) The total sum reaches 100.0 or more Input Multiple lines containing float number on each. 1.1 1.2…Your application will demonstrate the use of both counter-controlled loops and condition-based loops. Incorporate the following requirements into your application: The program will consist of one file - the main application class Name the class appropriately and name the file Program.cs (the default when you create the application) Include documentation at the top of the file that includes Your name Date of development Assignment (e.g., CIS214 Performance Assessment - Loops & Calculations) Description of the class The main application class must meet the following requirements Print a line that states "Your Name - Week 2 PA Loops & Calculations" Demonstrate a counter-controlled loop Calculate the sum of the integers from 1 to 10 Print the running total Print the final total Demonstrate a condition-based loop Ask the user to enter an integer value (-1 to quit) Keep a running sum of the values Keep a count of how many values the user has entered Print the running…Create and build a software that plays the Hi-Lo guessing game with numbers. The software should pick a number at random between 1 and 100 (inclusive) and then ask the user to estimate it again. For each guess, inform the user if their estimate was right, high, or low. Accept guesses until the user decides to quit or makes the correct guess. Use a sentinel value to determine whether the user wishes to exit. When the user correctly guesses, count the number of guesses and give the total. When each game is completed (by leaving or a correct guess), ask the user whether they want to play again. Play video games till the user decides to discontinue.
- Create an application that plays the Hi-Lo guessing game with numbers. The programme should select a random number between 1 and 100 (inclusive) and then urge the user to estimate the number many times. Report to the user if he or she is accurate or whether the estimate is high or low. Continue offering guesses until the user successfully guesses or decides to leave. To establish if the user wishes to exit, utilise a sentinel value. Count the amount of guesses and report the value when the user successfully guesses. At the end of each game (through leaving or a right guess), ask the user if they want to play again. Continue to play games till the user decides to quit.RGB LED fading colors project. Write comments for the below C code explaining each line. Code is below ?? #define GREEN 5 #define BLUE 3 #define RED 6 void setup() { pinMode(RED, OUTPUT); pinMode(GREEN, OUTPUT); pinMode(BLUE, OUTPUT); digitalWrite(RED, HIGH); digitalWrite(GREEN, LOW); digitalWrite(BLUE, LOW); } int redValue; int greenValue; int blueValue; void loop() { for( int i=0; iI having troubles running this C linux program. please use my code to fix any errors that need to be removed or added.If it needs sin() cos() tan() - Please adddisplayTriTab • Receive an integer called degrees that represents the number of degree for incrementation and return nothing. • Display the heading “--- TRIGONOMETRIC TABLE ---” center over the table •A blank line • Display the column headings as sown on the output. • A blank line. • Produce a table based from 0 to 360 degrees in increments based on the users input. • The table columns will be as follows: 1. Degrees ( Format: Right justified, no decimal places) 2. The radian value for the number of degrees in column 1 3. The sine value for the degrees in column 4. The cosine value for the degrees in column 5. The tangent value for the degrees in column 6. Tangent values for 90 and 270 will be infinity • The 360 degrees row will always be the last row even if the increment value entered would not [Bold] the code I do not…
- What value will EAX contain after the following instructions execute?.datadVal DWORD 12345678h.codemov ax,3mov WORD PTR dVal+2,axmov eax,dValwrite in assembly language Divide by two numbers In this assignment, you are required to make an application using assembly code that takes two numbers from the user and returns the result of dividing the first number by the second number. Important notes: 1- You should allow the user to Enter to digits number "For the first number only" 2- You should allow two-digit results if necessary. Stretch goal "optional": Handle the remain of the division process and print it on the screen. Submission: Provide two files (.asm and screenshot). Use your university ID for files naming. Submission statusUsing linux bash, create a function getScore that will a. Ask the user to enter the score and store it in the variable score b. Validate that the value entered is between 0 and 100 using a loop. The loop will check that the value in score is between 0 and 100. If the value of score falls outside of that range, display a warning message and keep asking the user until a valid value is entered.