Suppose you are a software engineer. Your friend owns a grocery shop. He asks you to write an inventory software for him and he will pay you for this. The software works very well and later you discover that your friend has given copies to his several friends who also operate small grocery shop. Do you think your friend should have asked your permission to give away your software? Do you believe the other merchants should pay you for the copies? Why or Why not?
Q: Describe the idea of unit-by-unit testing.
A: Explain the concept of unit testing. Unit Testing: Unit testing is one of the various software…
Q: complex Arduino programs. Re-write your list of actions as states.
A: Your code looks like this after using the </> code tag. byte sensorOne = 2;byte sensorTwo =…
Q: Write a C++ Program . Imagine a tollbooth at a bridge. Cars passing by the booth are expected to pay…
A: TollBooth programme: A tollbooth at a bridge. Cars passing by the booth are expected to pay a 50…
Q: Develop a single program using any programming language (e.g. Java, Python, C++, etc.) that: a.…
A: Answer : a. Encryption #include<iostream> using namespace std; int main() { char…
Q: Write a C program which takes multiple inputs, and add the all numbers then print the results. Like…
A: Please find the answer below :
Q: Problem: A company wants a program that will calculate the weekly paycheck for an employee based on…
A: Please upvote me Please. I need it badly. Please Please. I am providing the python code this…
Q: What would be the output of the following code in matlab?
A: Given: ( MATLAB Question) a= [1 0 2] ; b = [3 0 7] ; We are asked to give the output of…
Q: you familiar with An
A: Solution - In the given question, we have to tell about Angular.
Q: nsider the following Matlab expressions (you can assume that all involved variables exist in…
A: You execute one of those expressions. The value of y will always (no matter what values are assigned…
Q: The next semester, enrol in a course that teaches a programming language. How does one decide which…
A: Please find the answer below :
Q: To put it another way, what exactly does it mean to program dynamically?
A: The approach of dynamic: programming is used to solve issues with several overlapping subproblems. A…
Q: The options of choosing one of the functions: Fix deposit…
A: Take choice as input. 1 for fixed deposit and 2 for cancel If choice is 1. Take principal and time…
Q: write c++ program calculte |x|, sin, cos, tan, log, pow(x,y)
A: The programming methodology for the program is given by: Including header files Main function…
Q: Read the following case and answer what is asked. 1.- You are compiling a program that you have…
A: For this we need to understand memory hierarchy Whenever a process is executed, the process goes…
Q: Can you explain ? This is in Python. a = -1 b= 7 while( b > a ): b =b - 1…
A: a = -1 #initialize a to -1 b= 7 #initialize b to 7…
Q: Discuss generally how you could get a C++ Program running
A: Introduction: C++ is one of the programming language that is based on the partially object oriented…
Q: Write a C program that creates four child processes and passes num1 and num2 to them using execvp.…
A: SUMMARY: -Hence, we discussed all the points
Q: I am doing a programming project in java. I need to program a digital clock.
A: A digital clock is a type of clock that displays the time using numerals or other symbols. In…
Q: Write a script that will prompt the user to input a number from 1 – 9 only and display the figure…
A: Start. Take the number between 1 to 9. Print the Pattern. Exit.
Q: implement the pseudocode in C++ (i.e., only implement the code, no variable declarations, etc. are…
A: Step 1 : Start Step 2 : In the main function , Define a for loop which starts from the value of i =…
Q: W
A: Over here stated that we have to write a Marie Program that prints a Largest of two number inputted.…
Q: Matlab
A: To draw multiple circles you need to change the dimensions, otherwise the radius will remain same…
Q: I am trying to make a python class program that will accept a force and its direction as input and…
A: I am not able to reproduce your error. The program works fine on my end with no errors in input or…
Q: Q1) Write a sketch in IDE for an ultrasonic reversing sensor mounted on a mobile robot driven by two…
A: The answer given as below:
Q: Write and compile a C Language program using Dev c++ which asks for three sides of a cube and…
A: I have prepared the C program in Dec c++ as below: Please appreciate and upvote, Thank you. Code:…
Q: Write a matlab program for c= a(2)+b(4) A & B are matrix A should be 1 x 3 matrix B should be…
A: A and B are simply one dimensional vectors and we can simply index the elements from 1 to length of…
Q: What is meant by short-circuit evaluation? Find (or come up with) an example of where this would be…
A: The process of which the compiler skips the execution of few expressions in a logical expression is…
Q: Do you have a strong interest in programming? Is it a source of entertainment? Is it a difficult…
A: The answer :
Q: Write a matlab file that will be used to display the magnitude of the voltage source Vs. and the…
A: clear allclcformat shortZ1 = 5+5iZ2 = 8i Z3 = -8iIs = input( 'enter Is :')Vs =…
Q: Next semester, enroll in a computer programming language course. How do you choose a language to…
A: Programming Languages A programming language is a type of computer language designed to generate a…
Q: One of the football fans heard that one of the most outstanding players, Mesut Ozil, has decided to…
A: Note: Here you didn't mention any programming language so we are creating the program in the C++…
Q: In matlab: What is returned by D(I,j)? thanks
A: D(I,j) will return the value present at the Ith row and the jth column. See the below example to…
Q: For this discussion, you saw in the chapter that the while loop is a pretest loop. What is a post…
A: while loop is a pretest loop where the condition is checked before executing the instructions inside…
Q: Walking home, Cody was amazed that people could grow so old and wondered if he, a robot, would also…
A: In this question, we are asked to print baby's age with given conditions in C++ program Algrothm: 1)…
Q: Write a short program that uses inputs and outputs to identify the user’s name, prior Python…
A: Given: Write a short program that uses inputs and outputs to identify the user’s name, prior Python…
Q: Write a Pep/9 Assembly language program that takes a number from input, then adds 25 to the input…
A: Step 1: create a ASM file and paste the following code Code: .model small.stack 100h.datamsg db…
Q: In Matlab and octave, "rand" built in function gives a random number between 0 and 1. "Type rand and…
A: y=rand() The output is:
Q: 13- In a FORTRAN program x=2.0, y=2.5, w= 4.0 , what is the value of if Z=2.0(x(y+3.0)+w) *
A: The first question will be solved only. FORTRAN code Program Helloimplicit none ! Define real…
Q: Please help me to make a little matlab or python code to calculate standard deviation of different…
A: Answer:
Q: Explain different Execution models available in Pig
A: Pig has three separate execution modes: Interactive mode, Grunt mode, and Script mode. Grunt mode or…
Q: Write a C program that creates two child processes. The parent process and the child processes…
A: (a) Parent process terminates at last first take s child process(b) First child terminates before…
Q: How to write a simple interpreter for postfix arithmetic expression (e.g. (xy+) or (xy- qwe+ / g…
A: Answer : PostFixPostFix is a stack-based mini-language that will be our first…
Q: Write Arduino program By using Arduino language, you are required to simulate the functionalities of…
A: Answer is given below-
Q: I need a c++ program with an idea not taken from the Internet that contains at least 4 of these…
A: Inheritance Inheritance in c++ which allow child class to access all the properties from the parent…
Q: As a Telecom Engineer, write C and C++ program to input 5 integer numbers and print the total and…
A: C Code: #include<stdio.h> int main() { int arr[5],sum=0; printf("\nEnter 5 numbers…
Q: Consider the following python program and write the output str="New operating System" 11…
A: Code: # Given String str = "New operating System" # Start 4th index to end print(str[4:]) #…
Q: what ways may compilers be "optimized"? At what point in your career as a programmer would you use…
A: Optimizing the compiler It is possible to specify compiler optimization such that it becomes an…
Q: Ada Lovelace is most well-known for what?
A: Introduction: Ada Lovelace is most recognised for her contributions to the development of the…
Suppose you are a software engineer. Your friend owns a grocery shop. He asks you to write
an inventory software for him and he will pay you for this. The software works very well and
later you discover that your friend has given copies to his several friends who also operate
small grocery shop. Do you think your friend should have asked your permission to give away
your software? Do you believe the other merchants should pay you for the copies? Why or
Why not?
Step by step
Solved in 2 steps
- Several retailers have gotten together and begun issuing a “state” credit card that is good only in stores in their state. As a courtesy, salesclerks are permitted to transcribe the 15-digit account number by hand (after getting it from the accounting office) if the customer is not carrying the card. The only problem with accounts that retailers have noticed so far is that sometimes-erroneous account numbers are accepted into the computer system, resulting in a bill being issued to a non-existent account. 1. What sort of validity test would clear up the problem? How? Respond in a paragraph. 2. Suggest an alternative data entry method that might alleviate this problem altogether.Someone who examines and evaluates software on computers is known as a software tester. You are going to need to check your calculator when it is time for you to take the test. If you had to choose one kind of exam over another, which would it be and why? You may give it a go by thinking of five distinct possible outcomes and making a list of them.Imagine a world where it is impossible to move computer code from one device to another. Memory paging might become more difficult in this way. And what would happen if there wasn't any way to move programs around on a computer? The paging process in memory can be made more difficult in this way.
- A university computer science department has a teaching assistant (TA) who helps undergraduate students with their programming assignments. The TA’s office is rather small and has room for only one desk with a chair and computer. There are three chairs in the hallway outside the office where students can sit and wait if the TA is currently helping another student. When there are no students who need help, the TA sits at the desk and takes a nap. If a student arrives and finds the TA sleeping, the student must awaken the TA to ask for help. If a student arrives and finds the TA currently helping another student, the student sits on one of the chairs in the hallway and waits. If no chairs are available, the student will come back at a later time. Using threads, implement a solution that coordinates the activities of the TA and the students. Can you please write the code for above solution in pythonA university computer science department has a teaching assistant (TA) who helps undergraduate students with their programming assignments. The TA’s office is rather small and has room for only one desk with a chair and computer. There are three chairs in the hallway outside the office where students can sit and wait if the TA is currently helping another student. When there are no students who need help, the TA sits at the desk and takes a nap. If a student arrives and finds the TA sleeping, the student must awaken the TA to ask for help. If a student arrives and finds the TA currently helping another student, the student sits on one of the chairs in the hallway and waits. If no chairs are available, the student will come back at a later time. Using threads, implement a solution that coordinates the activities of the TA and the students. Details for this assignment are provided below. The Students and the TA Using threads (Section 4.4), begin by creating n students. Each will run as…A university computer science department has a teaching assistant (TA) who helps undergraduate students with their programming assignments. The TA’s office is rather small and has room for only one desk with a chair and computer. There are three chairs in the hallway outside the office where students can sit and wait if the TA is currently helping another student. When there are no students who need help, the TA sits at the desk and takes a nap. If a student arrives and finds the TA sleeping, the student must awaken the TA to ask for help. If a student arrives and finds the TA currently helping another student, the student sits on one of the chairs in the hallway and waits. If no chairs are available, the student will come back at a later time. Using threads, implement a solution that coordinates the activities of the TA and the students. Details for this assignment are provided below. The Students and the TA Using threads (Section 4.4), begin by creating n students. Each will run as…
- A university computer science department has a teaching assistant (TA) who helps undergraduate students with their programming assignments. The TA’s office is rather small and has room for only one desk with a chair and computer. There are three chairs in the hallway outside the office where students can sit and wait if the TA is currently helping another student. When there are no students who need help, the TA sits at the desk and takes a nap. If a student arrives and finds the TA sleeping, the student must awaken the TA to ask for help. If a student arrives and finds the TA currently helping another student, the student sits on one of the chairs in the hallway and waits. If no chairs are available, the student will come back at a later time. Using threads, implement a solution that coordinates the activities of the TA and the students. Can you please write the code for above solution in javaAnswer the given question with a proper explanation and step-by-step solution. By adapting the YASM assembly code or creating the assembly code from scratch create a two player True or False Game. In the game the two users will be asked true or false questions. You can either have the two players answering the same questions or the players answering different questions. The kinds of topics you could base your true and false questions on could be but is not limited to: Operating Systems. Artificial Intelligence. Space Travel. Capital Cities. The Royal Family. Film and Television. General Knowledge. The form the quiz could take is:In the system, if the user gets 5 answers correct in a row, they win a prize.True or FalseThe black box in a plane is orange.Player1: TPlayer2: FPlayer1 is correct.Player2 is wrongPlayer1 score 1 out of 1Player2 score 0 out of 1Don’t be Cruel by Elvis Presley is 2 minutes 4 seconds long.Player1: FPlayer2: FYou are both wrong.Player1 score 1 out of 2Player2…For example, it's good to break down big computer activities and programs into smaller parts when it makes sense to do so. Why would this system be better if it was logically split up?
- There are many commonplace items (such as amusement park rides, vehicles, elevators, and ovens) that are, in reality, computers or information systems nowadays. You would not ordinarily link them with a computer or information system. It is abundantly clear that there are advantages, but what about potential drawbacks? For illustration's sake, if you were to ride a roller coaster that was computer controlled, would you feel more or less comfortable doing so? The computerization of an increasing number of ordinary things raises the question of whether the possible advantages exceed the potential drawbacks. If not, then why not?scenario: A 7 year’s old little boy “Ahmad Salar” uses his father’s mobile phone. He installs games from the Google Play store quite often. However, being a probing guy he sometimes gets curious that while he is in process of installing a certain game he cannot instantiate another process of the game. Ahmed asked his father about the dilemma. The father took a scientific approach to answer the question. The answer was something to do with Software patterns. Question: Your task is to identify the precise pattern and logically argue about its intent and usefulness. Draw a UML diagram for the identified pattern also.Have you ever encountered a problem caused by a failure in a piece of software? Who do you believe should be held accountable? In light of the new information you've acquired, do you still have faith that computer systems can be relied upon? Justify your answer.