2. Write a Java program that determines if a number is positive or negative. Ехample: Input a number: 28 Expected Output: The number is positive
Q: 1- Which SQA class and components this statement is applicable? A series of meetings to initiate and...
A: Software quality assurance (SQA) is a process which assures that all software engineering processes,...
Q: What steps are involved in projecting a 3d point to the 2d image in pinhole camera model? Rotating a...
A: Whats steps are involved in projecting a 3d point to 2D point image in pinhole camera model? Here se...
Q: Make a code snippet for a function (in the coding sense) that accepts as an input a list of size n a...
A: Given :- Make a code snippet for a function (in the coding sense) that accepts as an input a list of...
Q: When did the modern computer get its start
A: The computers have evolved through various phases and as we know initially they are of size of a ver...
Q: Set are ordered but not indexed True or false.
A: Correct option: True
Q: Charles Babbage is known as the "Father of the Computer" for a reason.
A: Computer is an electronic device which made life of human very simple starting from basic calculatio...
Q: Converting between hex representations of IEEE 754 floating-point numbers in C++ program, withou...
A:
Q: Which of the following certificates CAN’T be used during deployment of SSTP VPN server? (choose two)...
A: SSTP VPN server is also known as Secure Socket Tunnelling Protocol (SSTP) VPN protocol. The main adv...
Q: 3. Nested squares: write a Matlab script which draws a sequence of squares using a random color for ...
A: According to the information given:- We have to follow the instruction to construct the nested squa...
Q: Describe the steps you'd take to figure out how the machines were acquired, used, and stored.
A: Introduction: Computers: A computer is a machine that can respond to commands and carry out logical ...
Q: Charles Babbage is known as the "Father of the Computer" for a reason.'
A: Charles Babbage is known as the "Father of the Computer" for a reason. That I have described below,
Q: i I have no idea what to do here Write a Java GUI application that will keep track of student re...
A: Answer: First step is to create the required database in MySQL CODE FOR MYSQL DATABASE create databa...
Q: Explain the significance of database design.
A: Introduction: It is a database structure that is used to plan, store, and manage data. The database ...
Q: nted, how big was
A: ENIAC The Electronic Numerical Integrator and Computer, or ENIAC, was the first programmable general...
Q: Demonstrate the contribution of fibre optics in communication systems to the environment and sustain...
A: Intro submarine links are fiber-optic links that associate nations across the world by means of link...
Q: The six components of an information system must be identified, listed, and described.
A: Introduction: Information System (IS): An information system is a system for organizing, storing, c...
Q: Create two variables (v1, v2). First and second ones should be your name---surname (string) and facu...
A: Operators are the building blocks of any program, and they're used for everything simple count to co...
Q: Big-O Coding Exercise Show your solution and explanations. Problem 6 def oneloop (n) : while n != 1:...
A: We need to find the time complexity of the given code.
Q: Bourne/Bash shell) a) Write a shell script that checks to see if your PATH environment variable con...
A: ach shell session keeps track of its own shell and environmental variables. We can access these in a...
Q: Create a function named mat_desc() that througouhly describes a matrix, it should: 1. Displays the s...
A: There is a shape function to determine the shape of a matrix. There is a size function to determine...
Q: Is it required to reorganise databases?
A: Intro The question is about reorganize data base and here is the solution in the next step.
Q: What are the three primary roles of database administration?
A: Introduction: Maintenance is handled by Database Administrators, which involves monitoring servers, ...
Q: Create a complete Java program that shall allow the user to accept three integer values representing...
A: Introduction: Create a complete Java program that shall allow the user to accept three integer value...
Q: When did the first video camera appear on the scene?
A: The Evolution of Video Cameras: Video cameras have evolved significantly over the years. Although vi...
Q: Using C++ . Create a queue using a linked list as your container and use a class. The system must ha...
A: Using C++ . Create a queue using a linked list as your container and use a class. The system must ha...
Q: 5. In Python language, write a program to remove all negative elements from the list given below. [-...
A: Write a Python program to remove all negative elements from the list given below. [-1, -1, 0, 2, -2,...
Q: a) All babies are illogical. (b) Nobody is despised who can manage a crocodile. (c) Illogical p...
A: Given (a) All babies are illogical. (b) Nobody is despised who can manage a crocodile. (c) Illogi...
Q: 2. Microsoft SQL server, how to copy 1 table from database1 and paste in database2, Each server is...
A: So , There is simple trick that you are able to copy one table from database1 and paste it on databa...
Q: Give context-free grammars to generate the following languages: (a) L = {b"c™ :n m+ k} (c) L3 = {a"b...
A: Lets understand context free grammar: Context free grammar has following type of productions: A->...
Q: Program to demonstrate the inorder, preorder and postorder traversal of a binary tree. root H
A: According to the Bartelby guideline we are suppose to answer only one question at a time Kindly repo...
Q: When it comes to software and hardware, what's the difference between the two?
A: A computer is an electronic machine that takes input, processes it and produces output. There are tw...
Q: Indexes that are not clustered and clustered are compared.
A: Comparison between clustered and non clustered index are mentioned below,
Q: Create a concept map (with arrows) showing the relationship between the following terms: Data type,...
A: Database: The database is a collection of inter-related data which is used to retrieve,insert and de...
Q: The unique addresses assigned to the four registers (R11,R12,13,R14) of the I/O interface are equal ...
A: When we connect the two capacitors,then assume the final voltage be V. The capacity of capacitor is ...
Q: To fully define a variable one needs to mention not only its type but also its other properties. In ...
A:
Q: Please type your answer not picture 2. List all of the general-purpose registers of MIPS.
A: Registers. MIPS I has thirty-two 32-bit general-purpose registers (GPR)
Q: Find the odd one out 1 , , , 2 , , , 3 Notepad, MS Word , Adobe Golive , MS EXCLE 4 computer with ...
A: 1. Given elements are <head>, <html> and <h7>. These three are the html tags which...
Q: Q2: complete the function that returns the area of a circle with radius r, note, use math.pi for pi....
A: Given: To complete the python code.
Q: The number of devices in a RAID 5 array can be specified by a database administrator. What are the t...
A: Intro The database administrator has the option of specifying the number of discs in a single RAID 5...
Q: Explain the difference between Low-Fidelity Prototype and High-Fidelity Prototype.
A: Introduction: Here we are required to explain the difference between Low-Fidelity Prototype and High...
Q: Create a C Language program that will use a USER DEFINED FUNCTION, that will perform and display the...
A: Find Your Code Below
Q: What exactly is the distinction between Stored Procedures and Scripts?
A: Intro the question is about distinction between Stored Procedures and Scripts and here is the soluti...
Q: Input a non-zero positive integer. Using while loop, print out each digit of the inputted integer in...
A: C Code as per the given instruction #include<stdio.h>int main() {int n;int x;int y=0;int count...
Q: Can someone teach me how to use the Powershell to populate(at least 10 new users should be created) ...
A: First, we need to make sure that we have a list of all the ten users we need to create. The most imp...
Q: Let A be an array of integers of size 10, whose ith entry is represented by A[i] for i = 0 to 9, and...
A: - According to the rules, we have to check for the element 85 position in the array.
Q: Please give the big-O time complexity of the following snippet of code and state the reason why it i...
A: Ans: The Big- O time complexity of the given code is def something(n): print("n is n") ...
Q: What year did the first programming language appear on the scene?
A: Language of the Computer: Today's popular programming languages include Java, JavaScript, Python, Ru...
Q: By infinitely increasing the signal-to-noise ratio (SNR) of a channel, this channel will have infini...
A: We need to find the correct option.
Q: What are a few key computer hardware developments you expect to see over the next ten years? What im...
A: Given: What are some important computer hardware breakthroughs you anticipate in the next 10 years? ...
Step by step
Solved in 3 steps with 1 images
- Create a length converter program in JAVA. The program should input the choice from the user. If the choice is 1 then the program should input a length from the user in centimetres and convert that length to inches. If the choice is 2 then the program should input a length from the user in inches and convert that length to centimetres. If the choice is 3 then exit the program.Assignment-3 Java Programming: 1. Write a program to input a positive integer and print whether the number is a power of 3 or not.Java Program (Display the prime factors) Write a program that prompts the user to enter a positive integer and displays all its smallest factors in decreasing order. For example, if the integer is 120, the smallest factors are displayed as 5, 3, 2, 2, 2.
- Enter a number: 5 Enter b number: 4 The value of 5 raised to the power of 4 is 625 Enter a number: 2 Enter b number: -4 The number b cannot be negative, try again (3) Write a Java program that prompts the user to enter a sentence (phrase), then it counts how many vowels and consonants in the sentence (phrase). The sentence (phrase) should be typed in by the user in response to a prompt message. Your program must consider the following specifications: Use Letter as the name of your class. Type your name and student number above the class declaration using a block/paragraph comment. Use documentation, comments and code style. Use significant and appropriate identifiers. Use appropriate data type for the variables. Here is a sample run of the program: Enter a string: Programming is fun The number of vowels is 5 The number of consonants is 11Java Program Write expressions that simulates rolling of two 6 sided dice three times and display results. (sample output below, random numbers generated from your program will be different ) Roll 1: 2 and 3 Roll 2: 3 and 6 Roll 3: 6 and 6Control structures: In Java only please. Output the position of the largest number and the largest number in the squence a0, a1, a2....ak. For example, the largest number of the squence is 75, 226, 113, 340, 170, 85, 256, 128, 64, 32, 16, 8, 4, 2, 1 is 340, and it's position is 4. Test your program for the following values of x: 75, 111, 678, 732, 873, 2048, and 65535. Thank you
- Java Code a program that outputs miles/gallon and gas dollars/gallon.Java code for this: Given two number for the variables A and B, create a program that would: A. print the sum of A and B B. print the average of A and B, if the sum is greater than 100 C. print the product of A and B, if the sum is less than or equal to 100.Question 3: Write a Java program that takes two numbers from user as input and display the sum (addition), multiply, subtract, divide and remainder of two numbers. (Note: second number for division should not be zero, so use if else statement) | Test Data: Input first number: 125 Input second number: 24 Expected Output: 125 + 24 = 149 125 - 24 = 101 125 x 24 = 3000 125 / 24 = 5 125 mod 24 = 5
- A Software Engineering Company has a salary system based on position level. The table below represents the salary paid according to each position: Employee Position Employees Salary Employees' Name: Ali Position: Bonus Amount: Final Cost: $3500 Manager Supervisors Sales Person The Company decided to give a 25% bonus for employees whose salaries are less than 3000$ due to holidays. Write a java program that asks the user to enter his/her name, and his/her work position. The program should calculate and display the total salary of the employee based on his/her salary position, the bonus amount and the final salary for an employee. Make sure that your program outputs exactly as the sample run below. Sample Run1: Enter Your Name: Ali Enter Your Position (M for Managers, S for Supervisors or P for Sales Person): M Fixed Monthly Salary 3500$ 2100$ Manager Salary: $3500.0 $0.0 Internet Service Bill 700$ Sample Run2: Enter Your Name: Cerine Enter Your Position (M for Managers, S for…1. Write a complete Java program that prompts user for the number of floors in a hotel. Validate the floors input: Do not accept a value less than 1 for the number of floors. A loop should then iterate once for each floor. During each iteration, the loop prompts user for (a) The number of rooms on the floor. Validate the rooms input: Do not accept a value less than 10. (b) The number of rooms that are occupied Validate the occupied rooms input: Do not accept a value greater than the number of rooms on the floor. (c) Calculate the number of vacant rooms oin each floor. (d) Calculate the occupancy rate on each floor Occupancy rate - 100 * rooms occupied / rooms on floor (e) Calculate total number of rooms the hotel has (f) Calculate total number of occupied rooms the hotel has (g) Calculate total number of vacant rooms in the hotel (h) Calculate the occupancy rate for the hotel Hotel Occupancy Rate - 100 * totalOccupiedRooms / totalRoomsInHotel Output: 1. 2. 3, 4. 5. 6. Rooms on each…Description Write a Java program to take the temperature from the user in Celsius, convert it into Fahrenheit and display it to the user. You can use the following formula for this purpose: F=9C/5+32 Where. Cis the temperature in Celsiuş and F is the temperature in Fahrenheit. Note: You can assume that C and F are integer values. Sample Input:1 Sample Output: 33