1. Make a program to accept two integers X and Y, then compute the difference. If X-Y is Negative, compute R = X + Y; If X-Y is Zero, compute R = 2X + 2Y; If X-Y is Positive, compute R = XY; Display X, Y and R.
Q: Which of the following is true about Procedural-Oriented Programming? A.lt is bottom-up approach…
A: 1) Procedural-Oriented Programming is derived from structured programming, based upon the concept…
Q: What is platform independence? Explain why java is platform independent.
A:
Q: Explain the differences between the fundamental important concepts used in the broad definitions of…
A: 2NF: This identifies a first normal form relation that does not include non-prime attributes that…
Q: You may tell me what's different between the UML model and EER model by comparing them. How has the…
A: The UML model: Object Oriented Analysis and Design (OOAD) makes use of UML, an acronym for…
Q: To disable the built-in validation tools provided by your users’ browsers when they interact with…
A: Form validation is a process in which a web form checks whether the information or data entered by…
Q: Software project management may have contributed to the collapse of the Denver Airport Baggage…
A: Software project management is both an art and a science involving the design and administration of…
Q: These values when define in the program cannot be manipulated or be changed to another value? A.…
A: Find the answer with reason given as below :
Q: Write a program to read and print the element of a Vector X[25], then convert it to a matrix B[5][5]
A: Answer: Algorithms Step1: we have create one dimension vector and take input from user and it print…
Q: If you were writing code for a real-time operating system, how would you go about designing it? If…
A: Operating system: Operating systems (OS) are the programmes that handle all other application…
Q: What is the execution of the following code? What is the execution of the following code? A=3 B=5.2…
A: As per our guidelines, only 3 sub parts will be answered. So, please repost the remaining questions…
Q: Is Microsoft's Windows operating system a reactionary or a pro-active effort? Which one, in terms of…
A: Is Microsoft's Windows an active or passive operating system? Which one would you choose based on…
Q: What are the common types of RAM/RWM? Which type will you prefer to use as the main memory in your…
A: Introduction: RAM: Also called physical memory Stored data of currently running/executed program
Q: In return for your personal information, do you think app developers are doing the right thing?…
A: Introduction: The software enables us to use computers for a variety of tasks. Unfortunately, some…
Q: What are the three most critical steps in the process of setting up a computer? When may you use…
A: Introduction: An operating system is a piece of the software that connects the various parts of a…
Q: Consider again a list of fridge temperatures that should be kept within a certain range, as…
A: Find the required code in python given as below and sample output :
Q: Explain the differences between procedural programming and object oriented programming with the help…
A: Procedural programming is a programming language derived from the structure programming and based…
Q: Because of the inherently decentralised structure of wireless networks, a wide range of difficulties…
A: The question has been answered in step2
Q: A personnel director wishes to compare the effectiveness of two methods of train- ing industrial…
A: The Answer start from step-2.
Q: In poor nations, what function do wireless networks play? When compared to LANs and physical cables,…
A: Wireless solutions: In households with many electronic devices, including computers, laptops, and…
Q: What is the execution of the following code? The programming language is Python What is the…
A: We know programming language used is Python, hence we are using python online compiler to compile…
Q: We're not qualified to discuss how operating systems carry out operations.
A: Introduction: An operating system is a product that controls documents, memory, cycles, info,…
Q: ed to be proactive or reactive? You tell me which one works better for you. Wh
A: These computer operating systems make use of a scheduling method that splits the available CPU time…
Q: to get the value of the first array item none from the above x = cars[1] x = cars[0] O x = cars[2] O…
A: This question is answered using C++ programming language.
Q: What is the most effective method for condensing the main features of an operating system?
A: An operating system is a programme that is in charge of offering the services required for computers…
Q: A 2.5 Inch diameter disk has 8 platters with each platter having two data recording surfaces, each…
A:
Q: Leonardo is a great cook and a great mathematician. When a chef gets caught in any trouble, he asks…
A: Algorithm: First contains number of testcases T . Second line contains single line two space…
Q: It seems that this section should offer a succinct overview of the operating system's two most…
A: Introduction: A complicated system is an operating system (OS). File management, process management,…
Q: Virtual reality has both advantages and disadvantages.
A: Introduction: Virtual reality is an artificial world made with software and presented to the user in…
Q: Using wireless networks comes with a number of challenges that must be overcome. Your own words and…
A: Answer:
Q: Python which from the following is correct print(x) O all the above O print(x, y, z) O print(x+y+z)…
A: print is predefined function in python which is used to display output on screen. It can take…
Q: XYZ school has the following grading policy: If mark is less than or equal to 50, the student gets…
A: Algorithm: Firstly we will take the input from the user Then we will check on the output as per the…
Q: What principles should be followed while designing an operating system's microkernel? Do the…
A: Introduction: In contrast to the kernel-based approach that has traditionally been used, the…
Q: which from the following is legal python variable names 2myvar = "John" none from the above my var =…
A: Answer:
Q: Discuss the importance of agile development and identify its four core values. – – –
A: It is important to use Agile development: Stakeholders should be involved in the process.…
Q: Leonardo is a great cook and a great mathematician. When a chef gets caught in any trouble, he asks…
A: Input-Output details First contains number of testcases T . Each testcases contains single line two…
Q: An array of short numbers [] is given, and integers are written in the array. Your task is to…
A: The element is defined as the distance between elements by the first element of the same members…
Q: As an operating system's microkernel is being developed, what principles must be followed in order…
A: Given: Microkernel restricts the kernel to communication and I/O control processes, enabling other…
Q: 3 نقاط * 3 نقاط The command that is used to ask the user to -:enter data is mean clc O disp fprintf…
A: These are two MCQ questions related to Matlab programming. 1) The correct answer is 5th option…
Q: What are the main components of the operating system, if you'd be so kind as to elaborate? Why don't…
A: Components of Operating System: The main components of Operating system are 1. Memory Management 2.…
Q: ln OOP perspective, it is nothing but an instance of a class that contains real values instead of…
A: The instance of Object-oriented programming OOPs is the specific realization of an object that may…
Q: Explain the differences between procedural programming and object oriented programming with the help…
A: In this question we have to understand the difference between procedural programming and object…
Q: The logical organisation of data is what is meant when people talk about a data structure. Which…
A: Answer: Data structures come in two different flavors. Simple Linear Data Structure Numerical Data…
Q: es are there for computers? Describe each one i
A: Given: Which programming languages are there for computers?
Q: 19. Which of the following statements regarding privacy are TRUE? I In decisional privacy, privacy…
A: 19. which of the following statements regarding privacy are true Ans: D. I, II, III and IV I.…
Q: What is static variable and static method? Explain why main method in java is always static.
A: Static variable: A static variable is a variable that is common to all the instances of the class.…
Q: Determine the KL transform for the follo following image segment [i 0 0 0 1 0 0 10 0011 Determine…
A: “Since you have asked multiple questions, we will solve the first question for you. If you want any…
Q: Due to the nature of wireless networks, there are a variety of issues that arise. Describe three of…
A: Nowadays, company groups depend upon reliable, secure wi-fi networks to hold their operations going.…
Q: Succinct or quick access may be made to data stored in memory. Why has direct access become so…
A: Two methods access memory data: directly and successively Data may be accessed promptly by using the…
Q: Consider that you have to run several computer programs simultaneously on a computer. Each program…
A: Answer - In an operating system (OS) there is the concept of multitasking, it will execute several…
Q: Security, cybercrime, personal privacy, social interaction and governance are only few of the areas…
A: Organizations and individuals: That rely on computers and the internet may articulate their concerns…
Computer
Language: C
Conditional Statements
Step by step
Solved in 4 steps with 2 images
- .Write a program that reads the integers between 1 and 50 and counts the occurrences of each. Assume the input ends with 0.Write a program that reads ten integers, and then display the number of even numbers and odd numbers. Assume that the input ends with 0.Make a program that asks for a width, and then prints a pyramid of that width. The pyramid must be of odd width, and if the user enters an even number the program should print "Please enter an odd number" and ask again. (It is ok if the program gives an error if the user enters a non-number). Example: Please enter the pyramid width 10Please enter an odd numberPlease enter the pyramid width 14Please enter an odd numberPlease enter the pyramid width 13 * *** ***** ******* ********* ************************ The first line should have 1 asterisk, the second 3, then 5, 7, 9 etc. The number of spaces before starting the asterisks is (n−i)/2 Where n is the width of the pyramid and i is the number of asterixes in the current line. Note that this is always a whole number, as n and i are odd and hence (n-i) is even.
- Write a program that prompts the user to enter the minutes (e.g., 1 billion), and displays the number of years and days for the minutes. For simplicity, assume a year has 365 days. Use C++ program.Write a program that inputs a sentence from the user and counts the number of words and characters in the sentence.Write a program that prompts for and reads the radius and the height of a cylinder (in centimeters). It then computes its volume by using pass by reference and pass by value. Note: pie = 3.14159.use c++ language.
- Write a program that generates 1,000 lowercase letters randomly, counts the occurrence of each letter, and displays a histogram for the occurrences, as shown in Figure 10.16a.Write a program that reads a value n and displays n characters alternating between # and % on the screen. The characters must be displayed one on each line. Note that the first character to be displayed is always # EntryA positive integer value n OUTPUTA sequence of characters showing the line number and then a character starting with # and alternating between # and %. The output of the program must be exactly as follows: Program execution example: Input: 7 Departure: 1-# two-% 3-# 4-% 5-# 6-% 7-#Write a program that prompts the user to enter five test scores and then prints the average test score. Indicate the average test score by printing it to the terminal. Average test score is X (Assume that the test scores are decimal numbers)
- Suppose that x and y are int variables and the input is: 10 20.7 What is the value of x and y if the inputs are already executed: cout << x << y;Write a program that invites the user to enter two numbers: a dividend (the top number in a division) and a divisor (the bottom number). It then calculates quotient and remainder using / and % operator and displays the result. After one iteration it asks user whether he/she wants to do more (Y/N). (C++ show input and output as well)Write a Little Man program that accepts five random numbers from the user and displays them in ascending order.