Two 8 bit numbers in a hexadecimal are 05 and 06. Obtain the checksum.
Create a 'Circle' class with having a static data member name 'radius' and two pointer
data members name 'circumference' and 'area' as private. Allocate memory to the
two pointers in both parameter-less and parameterized constructors - parameterized
constructor must take a single float argument for radius. Define a deep copy constructor for
the class. Note that the constructor should assign data as well as calculate 'area' and
'circumference' based on the formulae. Two other functions with return type float
must return the value 'circumference' and 'area' are holding. Get rid of the
allocated space in destructor.
Write a program in C++ to find the largest and smallest of N numbers of any data type (use function overloading). The value of N is available only at the time of execution
If the number is only divisible by 3, print "Fizz"
If the number is only divisible by 5, print "Buzz"
If the number is divisible by both 3 and 5, print "FizzBuzz"
If nothing is true in the previous conditions, skip the number
Input two integers in one line. The first inputted integer will be the starting point, and the second one shall serve as the ending point.
Use the power of loops to loop through the starting point until the ending point (inclusive), and print out each number within the range with the corresponding format shown on the sample output. However, skip the printing of statement if the integer is divisible by 4. Tip: Utilize the continue keyword to complete the process
Print out the cube values of the numbers ranging from 1 to 20 (inclusive). However, if the number is divisible by either 3 or 5, do not include them in printing and proceed with the next numbers. Tip: When skipping through special values, make use of the keyword continue and put them inside a conditional statement.
1. You were asked to create a program for a variety stores. The program should:
a. Input the customer name
b. Input the products name and its price. Specifically three products.
c. Get the total price of the 3 products.
d. Input the cash from customer.
e. Output the summary of the sales.
1. You were asked to create a program for variety stores. The program should:
1. Input the customer name.
2. Input the products name and it's price. Specifically three products.
3. Get the total price of the 3 products.
4. Input the cash from customer.
5. Out the summary of the sales.
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner in = new Scanner(System.in); int house = 5; int room = 3; int len = 2; int we = 4; double cost = 6; int areaRoom = len * we; int totalArea = areaRoom * room * house; double totalCost = totalArea * cost; System.out.println("Room area: " + areaRoom); System.out.println("Area of all rooms: " + totalArea); System.out.println("Total price of the construction: " + totalCost); } }
I want pseudocode and flowchart of this code.
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); int[] arr = new int[7]; boolean isSorted = true; int buf; for (int i = 0; i < arr.length; i++) { System.out.print("Month " + (i + 1) + ": "); arr[i] = in.nextInt(); } for (int i = 0; i < arr.length; i++){ for (int j = 0; j < arr.length - 1; j++) { if (arr[i] < arr[j]) { buf = arr[i]; arr[i] = arr[j]; arr[j] = buf; } } } for (int i : arr) { System.out.print(i + " "); } } }
This is the code i want pseudocode and flowchart of this code.