Finding Errors. Identifying the line/s containing errors that can cause the program not to run. Using the attach source code, how many lines are containing errors in the program? Note: Just specify the number of line/s containing errors, if none just put 0 only. Example answer: 5 Blank 1 1 #include ... 2 using namespace std; 3 int main() 4e {
Q: Note: Provide a copy of the code and sereen shot for the output in the solutions. Explain the…
A: In this programming question we have to write a C# program using method overloading To calculate…
Q: Assume that CS=3500, DS=4500, SS=5500, SI=2200, DI=4200, BX=7300, BP=8000, AX=3420 (all values are…
A:
Q: Create flow chart to print the result of 25 students in a class. Assume that each student has 4…
A: - We have to work on grade deciding flowchart.
Q: How many permutations of the letters “PQRSTUV” contain (i) The string QRS? (ii) The string RUVP?…
A:
Q: Program in c+. Given an unsorted array, find the least difference between the element pairs Display…
A: Input : Input the array Size of array Output : Find the pairs with least distance. Sort the array…
Q: Why is the following term considered disjunctive normal form; A + ~B but the term…
A: A disjunctive normal form it is canonical normal form that consists of the disjunction of…
Q: Given the maximal number of the binary sequence MAX SEQ (e.g., MAX SEQ=7 for three bits), what are…
A: Solution:- Go-Back-N is a specific instance of the automatic repeat request protocol, in which the…
Q: Discuss briefly any four user-initiated tasks that may be performed utilising a graphical user…
A: Introduction: Graphical User Interface (GUI) is an abbreviation for Graphical User Interface. It is…
Q: What are some of the circumstances in which we favour dynamic programming?
A: Intro The question is on when we prefer dynamic programming and giving an example.
Q: What are the benefits of knowing how to regulate your memory?
A: Main memory: Refers to physical memory that's internal to the pc. The word main is employed to…
Q: Write a program called Cylinder.java that calculates the volume of a cylinder. Your program should…
A: I give the code in Java along with output and code screenshot
Q: When you execute your program it should ask user to input any number then check if the number is…
A: We need to use modulo symbol(%) to check if the remainder is 0 or not.
Q: How about a detailed discussion of two database design concerns that are critical to the creation of…
A: Introduction: In a computer system, a database is a logically ordered and electronically stored…
Q: Hash chains and rainbow tables are used to recover hashed passwords. Outline similarities and…
A: A hash chain is a sequence of values derived via consecutive application of a cryptographic hash…
Q: can we use try-catch exception handling in Arduino? using C++? kindly elaborate why or why not
A: Arduino compiler or IDE accepts C and C++.
Q: What exactly is a telecommunications network protocol?
A: Introduction: Telecommunication protocols are essential components of sophisticated modern…
Q: For a number of reasons, some businesses prefer a scattered computer system over a centralised…
A: Systems with a central hubAll users are linked to a central network owner or "server" in a…
Q: Explain the principles of risk management
A: In this question we have to understand and get knowledge about the principles of risk management.…
Q: be able to got a chlpey Using System analytics, you may undlen lareling Dwn dlivia"" (Bvo o) of the…
A: Introduction: Bring Your Device (BYOD) is becoming more popular in all enterprises. While some…
Q: Q3/ Suppose a movie theater has 36 seats, laid out in a rectangular six rows by six seats. Let the…
A: C++ Program for above : #include <iostream> using namespace std; int main() { int…
Q: What is a distributed database? What is a DDBMS?
A: Introduction: Here we are required to explain what is a distributed database and what is a DDBMS.
Q: What exactly is the function of an embedded computer ?
A: Introduction: A tiny computer that is integrated into a larger system, device, or machine is known…
Q: Write a program that uses for loops to perform the following steps: Prompt the user to input two…
A: Ans: Code: #include <iostream> using namespace std; int main(){ int n1,n2; int…
Q: Make a list of the benefits and drawbacks of bus topology.
A: Bus topology: Bus topology could even be a specific quite topology during which each computer and…
Q: 16. What's the data transfer rate in an FDDI network if only the primary fiber link is used? A. 2…
A: Introduction: The American National Standards Institute (ANSI) established the Fibre Distributed…
Q: What are the three conditions that must be met for a network to be effective and efficient in its…
A: Introduction: Production planners decide how and where products will be made and the layout of…
Q: Is there a distinction between the World Wide Web and the Internet?
A: Introduction: The sites you see while you're online on a device are known as the world wide web, or…
Q: What does it mean to build abstractions while creating an Object Oriented System? Explain how we…
A: Abstraction refers to abstracting or extracting essential features from a system. It decreases the…
Q: (1) What are advantage and disadvantages of Apriori Algorithm (II) For the given below transaction…
A: Apriori algorithm advantages and disadvantages Associate algorithm
Q: Why does a laser printer constantly output pages with grey print, and what is the most probable…
A: Given Grey backgrounding is one of those unpleasant printer defects; it is most often caused by a…
Q: Question 1: Please design and write C++ code of a user defined function "Randomstatistes Cak". It…
A: C++ code given in Below:
Q: C# Reverse the stack - This procedure will reverse the order of items in the stack. This one may…
A: Reverse the stack using 1) Create an empty stack. 2) One by one push all characters of string to…
Q: Determine the output of the given program segment. Assume the following initialization: int a = 2, b…
A: The pow() function returns the result of the first argument raised to the power of the second…
Q: What causes wireless networks to function worse than wired networks, and why do they perform poorly?
A: Introduction: Since communication signals are transmitted over the air rather than through a…
Q: Why should interrupt be used in development instead of polling?
A: Introduction: Polled mode is utilized if interrupt mode is unavailable due to hardware or software…
Q: The steps of the computer machine cycle should be listed and discussed using examples.
A: Computer Machine cycle: Machine cycle is basic operation performed by the Central Processing Unit.…
Q: CREATE FLOWCHART Question: To print the area of different shapes based on user input. The user can…
A: Flow chart: It is used to represent program steps in the pictorial representation. Using the flow…
Q: Information technology Explain briefly the vision input System?
A: Introduction: The computer vision system has ushered in a new epoch of technical progress. The…
Q: The user connects with the operating system in MS-DOS by sending commands.
A: Intro MS-DOS is a command-line-based operating system that enables users to browse, open, and…
Q: Write a scientific research paper that investigates the properties of hamming error correction code…
A: Introduction- The Hamming code has a long history. The Hamming Code technique was developed by…
Q: What exactly is dynamic programming?
A: Intro Dynamic Programming Dynamic Programming is a technique for solving problems with overlapping…
Q: Write a Python program to print true if cat & dog appears same time in a user entered string.
A: Required:- Write a Python program to print true if cat & dog appears same time in a user-entered…
Q: In Python Input a string from the user and print true in the output if the frequency of the alphabet…
A: Write a Python program to input a string from the user and print true in the output if the frequency…
Q: Distinguish between file compression and file conversion.
A: Definition: File conversion: It is mainly defines as that it is the process of taking a particular…
Q: What role does the reflection vector play in computer graphics? Give at least two instances to back…
A: Reflection Vector in Computer Graphics: Reflection in computer graphics is used to emulate…
Q: If a task cannot continue because it is waiting for some event (say, waiting for a user to input a…
A: Ready State: After the creation of the process, when the process is ready for its execution then…
Q: Examine the Data Base Envirormind's use of the Access language and associated processes.
A: Answer :
Q: Question 1: Please design and write C++ code of a user defined function "Raudomstatisties Cale". It…
A: Code: #include <iostream>#include <cstdlib>#include <ctime>using namespace…
Q: What are the App Bundles? Give a detailed explanation. Choose any twoapplications.
A: Android Studio has been updated to handle this new build process and can now build a signed Android…
Q: Computer Science pandas is a Python library for data analysis. Import this library, choose three of…
A: Code: import pandas as pdimport numpy as np # 1. loads data into a DataFrame objectdf =…
Step by step
Solved in 2 steps
- #include #include #include int main() { int i, j; printf("Columns | JIn"); for (i = 1; i< 4; ++i) { printf("Outer %6d\n", i); for (j = 0; j< i; ++j) { printf(" Inner%10d\n", j); } } /* heading of outer for loop */ /* heading of inner loop */ %3D return (0); } Create a new code modifying it to use "while loop" instead of the "for loop"//Assignment 06 */public static void main[](String[] args) { String pass= "ICS 111"; System.out.printIn(valPassword(pass));} /* public static boolean valPassword(String password){ if(password.length() > 6) { if(checkPass(password) { return true; } else { return false; } }else System.out.print("Too small"); return false;} public static boolean checkPass (String password){ boolean hasNum=false; boolean hasCap = false; boolean hasLow = false; char c; for(int i = 0; i < password.length(); i++) { c = password.charAt(1); if(Character.isDigit(c)); { hasNum = true; } else if(Character.isUpperCase(c)) { hasCap = true; } else if(Character.isLowerCase(c)) { hasLow = true; } } return true; { return false; } }Rest of code in image / This is a bad programming style since it is using goto. // This is an spagetti code and not working.// Use function to display menu, and display game rules,// Use different color for text display.// fix it so it works any way you like./*HANDLE screen = GetStdHandle(STD_OUTPUT_HANDLE); // Write 16 lines in 16 different colors. for (int color = 0; color < 16; color++) { SetConsoleTextAttribute (screen, color); cout << " Hello World!" << endl; Sleep(400); // Pause between lines to watch them appear } // Restore the normal text color) SetConsoleTextAttribute(screen, 7);*/#include <iostream>#include <windows.h>using namespace std;int main(){ //textbackground(WHITE); //textcolor(RED); system("cls"); char ch, a[20], ch2; int num = 100, rnum, guess, count, ch1, c = 0; cout << "**********************************************************"<<endl; cout << "*…
- Python question Application: Python Fragment Formulation (Q1 – Q4) In this group of questions you are asked to produce short pieces of Python code. When you are asked to "write a Python expression" to complete a task, you can either give the expression in one line or break down the task into several lines. The last expression you write must represent the required task. Question 1 (Reduce parentheses) Give an equivalent version of this expression by removing as many redundant parentheses as possible, without expanding the brackets or simplifying. (x**(2**y))+(y*((z+x)**3)) Question 2 (Translate arithmetic concept into Python) You are given a list of numbers, named numbers, containing 3 integers. Write a python expression (one line) that evaluates to True if and only if the product of any two numbers in the given list is greater than the sum of all three numbers. Note: the product of two numbers, x and y is x*y. Question 3 (List/table access) You are given a table,…Python task: Task OverviewYour task is to implement a variation of the classic word game Hangman, which involves playersguessing the letters in a word chosen at random with a finite number of guesses. While there arealternate versions such as category Hangman and Wheel of Fortune, which involve playersguessing idioms, places, names and so on, we will be sticking with the traditional version.If you are unfamiliar with the rules of the game, please read the following before starting:http://en.wikipedia.org/wiki/Hangman_(game). You can also play an online version here. Don’tbe intimidated - You’ll be given some skeleton code to get you started, it's easier than it looks! You will implement a function called main that allows users to play an interactive hangman gameagainst the computer. The computer should pick a word, and players should then try to guess lettersin the word until they win or run out of guesses.Here is the overarching behaviour we expect:1. The program should load a list of…Each of the following definitions and program segments has errors. Locate as many as you can and correct the errors. a) void showValues (int nums) { for (int i = 0; i<8; i++) cout<Art.java In this part you will create a program Art.java that produces a recursive drawing of the design attached in the picture. Requirements Art.java must take one (1) integer command-line argument n that controls the depth of recursion. Your drawing must stay within the drawing window when n is between 1 and 7. (The autograder will not test values of n outside of this range.) You may not change the size of the drawing window (but you may change the scale). Do not add sound. Your drawing can be a geometric pattern, a random construction, or anything else that takes advantage of recursive functions. Optionally, you may use the Transform2D library you implemented in Part 1. You may also define additional geometric transforms in Art.java, such as sheer, reflect across the x- or y- axis, or rotate about an arbitrary point (as opposed to the origin). Your program must be organized into at least three separate functions, including main(). All functions except main() must be private. call…Broken Cabins Problem Statement: There is an Office consisting of m cabins enumerated from 1 to m. Each cabin is 1 meter long. Sadly, some cabins are broken and need to be repaired. You have an infinitely long repair tape. You want to cut some pieces from the tape and use them to cover all of the broken cabins. To be precise, a piece of tape of integer length t placed at some positions will cover segments 5,5+1-sit-1. You are allowed to cover non-broken cabins, it is also possible that some pieces of tape will overlap. Time is money, so you want to cut at most k continuous pieces of tape to cover all the broken cabins. What is the minimum total length of these pieces? Input Format The first line contains three integers n,m and k(1sns10°, namsloº, Isksn) - the number of broken cabins, the length of the stick and the maximum number of pieces you can use The second line contains n integers bl,b2,bn (Isbism) - the positions of the broken cabins. These integers are given in increasing…Class: Blocks Write a program that prompts for an integer (that a side length) and displays, using asterisks, a filled and hollow square, placed next to each other. For example if the side length is 5, the program should display: ***** ********** * ****** * ****** * ****** *****C Programming Language (Code With C Programming Language) Problem Title : Visible Trees There is a legend about a magical park with N × N trees. The trees are positioned in a square grid with N rows (numbered from 1 to N from north to south) and N columns (numbered from 1 to N from west to east). The height (in metres) of each tree is an integer between 1 and N × N, inclusive. Magically, the height of all trees is unique. Bunga is standing on the northmost point of the park and wants to count the number of visible trees for each Column. Similarly, Lestari is standing on the westmost point of the park and wants to count the number of visible trees for each Row. A tree X is visible if all other trees in front of the tree X are shorter than the tree X. For example, let N = 3 and the height (in metres) of the trees are as follows6 1 87 5 32 9 4 On the first column, Bunga can see two trees, as the tree on the third row is obstructed by the other trees. On the second column, Bunga can see…Part III - Create Your Own Art Art.java In this part you will create a program Art.java that produces a recursive drawing of your own design. This part is meant to be fun, but here are some guidelines in case you're not so artistic. Requirements Art.java must take one (1) integer command-line argument n that controls the depth of recursion. Your drawing must stay within the drawing window when n is between 1 and 7. (The autograder will not test values of n outside of this range.) You may not change the size of the drawing window (but you may change the scale). Do not add sound. Your drawing can be a geometric pattern, a random construction, or anything else that takes advantage of recursive functions. Your program must be organized into at least three separate functions, including main(). All functions except main() must be private. For full credit, Art.java must not be something that could be easily rewritten to use loops in place of recursion, and some aspects of the recursive…Identify and correct the error int main(void) { double x = 12.8 double y Follow the code.SEE MORE QUESTIONS