Prepare a program that can read the price (RM) of two books. Calculate and print the total price (RM) of the two books that includes 5% discount.
Q: What is the ARM statement which correspond to the each following statement and find the value of RO?
A: The answer is
Q: Please consider the following assembly code.
A: 3The hexadecimal value of 1800000000 is 0x6B49D200. And the "addl" instruction would give us eds = e...
Q: format has field which is divided into 2 subt each having 15 distinct microop condition field CD for...
A: given - A micro instruction format has micro operationfield which is divided into 2 subfields F1 and...
Q: Write a brief comment regarding multimedia and its various forms, including the most popular medium ...
A: Multimedia is a form of communication that combines different content forms such as text, audio, ima...
Q: What are the main four different between Nmap and Hping3 with example ?
A: What are the main four different between Nmap and Hping3 with example ?
Q: 24. Suppose that set1 (Set) is a set that contains the strings "red", "yellow", "green", and that se...
A: a.It will give output {"red","yellow","green","blue"}
Q: Make a class 'StringMethods'. It contains a private instance String variable. Add these instance met...
A: Given :- Make a class 'StringMethods'.It contains a private instance String variable.Add these insta...
Q: Requirements engineering is a discipline that involves establishing and documenting requirements. Va...
A: Requirements engineering is a discipline that involves establishing and documenting requirements. Va...
Q: The hidden node problem has been addressed by using special WiFi access points. True False Next inco...
A: Lets see the solution in the next steps
Q: Using OpenGL and stipple lines do: 1. a long dash and a dot, ( __________ . __________ . __________...
A: 1) a long dash and a dot - glEnable(GL_LINE_STIPPLE); glBegin(GL_LINES);
Q: . 8/36 d. 5/36 What are the eigenvalues of the following matrix? ( as shown in the picture ) a. 3,...
A: All the questions are discussed in detail below.
Q: • write a program that reads two integer values from the user and then prints the Greatest Common Fa...
A: We know that gcd of two number is (a*b)/LCM(a,b), where a and b is given number.
Q: 49 System.out.println("The radius: "+radius); System.out.println("The circle circumference: " +resul...
A: Given :- To find the area, circumference, Surface area and volume of circle using java .
Q: Create a Scanner object to read input from the keyboard new Scanner(System in):
A: Given 11 public class CircleAndSphere 12 { 13 public static void main(String[] args) 14 1 15 // Step...
Q: mart is better for BI than a data warehouse is.
A: Let's see the solution.
Q: ) How many parity bits are necessary? ) Assuming we are using the Hamming algorithm -resented in thi...
A: (A). For memory words of length 10, so by formula: 2^r >= m + r +1 as given m = 10 bits so condit...
Q: Who was the first person to invent a flash memory device?
A: Dr. Fujio Masuoka, an inventor and a mid-level production manager of Toshiba Corporation, invented f...
Q: iven this statement: “Garfield is a cat who loves to eat tuna. Tuna is a kind of fish, and fish norm...
A: Semantic networks are alternative of predicate logic for knowledge representation. we can represent ...
Q: Find the output of the given code if it is compiled on a 64-bit system. #include int...
A: To find the output of the given C program if it is compiled on a 64-bit system. Basic Information ab...
Q: What is the mentor system and buddy system?
A: Intro Mentoring is the Employee training system under which a senior or more experienced individua...
Q: Big data has become a part of every organization's information technology systems in today's world. ...
A: Answer: IT systems comprise computer programs, software, databases, and accompanying documentation...
Q: write a C program to to check whether a number entered by the user is even or odd.
A: Program: #include <stdio.h> int main() { int number; printf("Enter an integer: "); scanf("%d",...
Q: Computer Science Max Lin is a company which offers financial services to its customers. They have e...
A: what is booting? The process of starting a computer is known as booting. Hardware, such as a button ...
Q: Logical data modeling shows how data is organized and how it connects to each other without having t...
A: The answer is
Q: How do computers save information?
A: Computerized Information: Data are units of information in computer science. These data may be saved...
Q: of R16 iS 26 72 F3 CD 16 29 anc
A:
Q: Please explain why you chose DRAM over SRAM.
A: The static ram (SRAM) is composed of registers that are extremely fast and volatile in nature. The d...
Q: Who was the inventor of the world's first digital computer?
A: I have answered this question in step 2.
Q: 2.a. Which of the following is used to join two fiber optic cables with the same type of connector? ...
A: 12.a. Which of the following is used to join two fiber optic cables with the same type of connector?...
Q: summry of Self-Checkout Kiosks
A: Self-Checkout Kiosks is a kind of PC, generally equipped with a touchscreen show, that permits a cli...
Q: In computer memory, how do local declarations get put in place? Yes, but there aren't any good reaso...
A: Local declarations in memory layout : Below is the basic memory layout of a program. The text area o...
Q: Tommy Flowers created Colossus in what year?
A: Flowers conceived and constructed Colossus, the world's first programmable electronic computer, duri...
Q: atient record and scheduling system in a doctor’s office is used by the receptionists, nurses, and d...
A: Given Computer Science A patient record and scheduling system in a doctor’s office is used by the re...
Q: Fill in the empty spaces in the following table. As you do, please be awar of the following: All num...
A: To represent signed number into 2s complement, first reverse the binary equivalent of a number and a...
Q: What is the purpose of using a motherboard?
A: Introduction: what is the purpose of using a motherboard
Q: Write a program in C that asks the user to enter a number of seconds and works as follows: • There a...
A: Sun, 23:49// TEXT CODE // prompt the user to get the number of seconds var numberOfSeconds = window....
Q: In this problem you will implement a simple library system based on object-oriented approach (using ...
A: Let's see the solution in the next steps
Q: Compute Average Memory Access Time (AMAT) for a system that consists of a 2- level cache design. The...
A: I'm providing the answer to above question. I hope this will be helpful for you
Q: Use the Bisection Method to find the first root of f(x) = -12 – 21x + 18x² – 2.75a. In doing so, use...
A: Following is the Matlab code for the given problem: %clear the command window clc; clear all; %give...
Q: LA GSM system uses 124 channels and each channel is divided into 8 time siots. What is the maximum n...
A: The answer is
Q: Q4: Based on Hill cipher algorithm, if the decryption key is -2 2 -5 17-11 11 1 13-12 In the case th...
A: // C++ code to implement Hill Cipher#include <iostream>using namespace std; // Following funct...
Q: How language shapes the way we think
A: Can Linguistic Influence Way Americans Imagine: The amount of vernaculars spoken around in the count...
Q: What's the difference between Stored Procedures and Scripts? What is the purpose of each? How does e...
A: The solution to the given problem is below.
Q: What component of hardware enables a device's physical network connection?
A: Network Interface Cards. A network interface card (NIC) establishes a physical connection between a ...
Q: 2. Write a JAVA program to find the sum of all elements greater than 50 in the array given belo int ...
A: code
Q: Given the following Boolean statement F(a, b, c) = Em (1, 3, 4, 6, 7). The minimized Boolean functio...
A: INTRODUCTION: A logical statement that is either TRUE or FALSE is referred to as a Boolean expressi...
Q: 3 6. Evaluate the determinant for the following matrix: O A.8 O B.-2 O C.5 O D.-4
A: a11 a12 a21 a22 determinant = (a11 * a22 ) - ( a21 * a12 )
Q: Assume, r1= 0×A2FF0010, r2 = 0X5D00FFF0
A: The answer is
Q: There are a lot of people in India who want to use online financial planning tools. How much does th...
A: Answer:
Q: What are the most pressing email security issues
A: Introduction: The most serious security problems concerning email communications security,
Computer Science
Title:
Learning Objective:
Write simple Java programs using basic data types, operators and expressions.
Write Java programs using control structures - Sequence
Question:
Prepare a program that can read the price (RM) of two books. Calculate and print the total price (RM) of the two books that includes 5% discount.
. Based on the given problem, the student need to:
i. Write the Java program
ii. Display the output
[100% marks]
Sample input and output:
Input price of book 1 : 50.50
Input price of book 2 : 90.90
Total price : 141.4
Discount : 7.07
Net paymant : 134.33
help me please asap.
Step by step
Solved in 2 steps with 1 images
- in java If b is 7 and c is 10, the value of c after the following statement is executed is _____. c *= b--;Use java Language Write the function parrotTrouble.** We have a loud talking parrot. The "hour" parameter* is the current hour time in the range 0..23. We are* in trouble if the parrot is talking and the hour* is before 7 or after 20. Return true if we are* in trouble.** Some Examples:* parrotTrouble(true, 6) returns true* parrotTrouble(true, 7) returns false* parrotTrouble(false, 6) returns false** @param isTalking true if the parrot is talking.* @param hour the time of day from 0..23.* @return true if you're in trouble with your neighbors.Java I am beginner in java my program is to take 2 number from user and given that these number is of int type . i have to find quotient and print that Do fast
- 4.31 LAB: Months until payoff (JAVA) Write a program in java that reads a loan amount, payment amount, and interest rate as inputs and outputs the number of payments required until the loan is paid. Interest is added to current balance before a payment is applied. Ex: If current balance is $100.00 and the interest rate is 0.02, the new balance is $102.00 before a payment is applied. All values are doubles. import java.util.Scanner; public class LabProgram { public static void main(String[] args) { Scanner scnr = new Scanner(System.in); /* Type your code here. */ }}In JAVA ASSIGNMENT DESCRIPTION: A half-life is the amount of time it takes for a substance or entity to fall to half its original value. Caffeine has a half-life of about 6 hours in humans. Given caffeine amount (in mg) as input, output the caffeine level after 6, 12, and 24 hours. Output each floating-point value with two digits after the decimal point, which can be achieved as follows:System.out.printf("After 6 hours: %.2f mg\n", yourValue); Ex: If the input is: 100 the output is: After 6 hours: 50.00 mg After 12 hours: 25.00 mg After 24 hours: 6.25 mg Note: A cup of coffee has about 100 mg. A soda has about 40 mg. An "energy" drink (a misnomer) has between 100 mg and 200 mg. THE CODE I HAVE SO FAR: import java.util.Scanner; public class LabProgram { public static void main(String[] args) { Scanner scnr = new Scanner(System.in); double caffeineMg; // "double" supports floating-point like 75.5, versus int for integers like 75. caffeineMg = scnr.nextDouble(); System.out.printf("After…Program42.javaIn right triangle ABC below, angle C is 90 degrees, side a = 48 , and side c = 73. Write a Java program that uses class Math to calculate the length of side b and the other two angles (in degrees). Express all measures accurate to two decimal places. See "Help with triangle program" above. Program43.javaHere are some data regarding a retail purchase: item: photo paper dept: A price: $8.99 quantity: 4 taxable: true Assign these data items (without user inputs) to Java variables of the most suitable type as suggested by the values. Then use the variables to calculate and generate the output exactly as shown below. Use only the printf() method. Purple indicates a variable to be displayed using a printf format specifier.Required OutputPurchase: photo paper, quantity 4 @ $8.99Dept A, taxable? trueSubtotal $35.967 % sales tax is $2.52Total payable $38.48
- Please help me solving each of these with java ...a. Defines and initializes a floating-point number that represents a circle radius.b. Defines a floating-point constant that represents PI.c. Computes the perimeter of the circle (2 * radius * PI).d. Prints the circle radius and perimeter to the console as follows:Circle with radius …. has perimeter ……2. Write a Java program that:- Declares and initializes two double variables (x with the value 2.5 and y with the value 3.2).- Print the values of the two variables as follows: x = … , y = …- Swap the values of x and y.- Print the value of the two variables after swapping as in the previous format: x = …, y = …3. Write a Java program that declares and initializes two integers (assign values of your choice to the two numbers), then performs the following:a. Find which of the two numbers is greater than the other in order to iterate over them in the following steps.b. Print all numbers between these two integers, including them, in their…In java Write a program that computes the average of 5 students grades which are entered by the user.Q1: Can you read this question carefully rebug and type the answers Debug Problem 1: As an intern for The Weather Channel, you have been instructed to debug a java program that converts Celsius to Fahrenheit. If the formula runs correctly, then 12 degrees in Celsius should give 54 degrees in Fahrenheit . Here is the formula given and it might not be correctly stated in terms of () needed and the order of operations. Google a reputable site if needed.: °F = °C x 9/5 + 32 Remember that there may be more than one problem to fix. It could be that variables have an incorrect data type. It could be that the formula is not coded correctly. Also, some import statements could be missing. Copy and paste the code below in JGrasp and debug the code. Here is the code to debug: // Convert Celsius to Fahrenheit class CelsiusToFahr { public static void main (String args[]) { Scanner keyboard = new Scanner(System.in); int celsius = 0; int fahr = 0; System.out.println("Input the degrees in…
- Control 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 you1.Write Java statements to accomplish each of the following tasks: (a) Assign the product of variables b and c to the int variable a. (b) Displaying texts with printf. (c) Compiling and Executing Java program. 2.Write a Java program that displays the text "This is Java Class " and "My first program in Java" also insert comments to display your Name and Student number. 3.Draw and explain a UML class diagram for a class Fruit.Java I am beginner in java my program is to take 2 number from user and given that these number is of int type . i have to find remainder and print this