Build a simple “English Language” calculator that does the following:
● Takes three inputs from the keyboard
● Two of the inputs are single-digit numbers (0 to 9)
● The third input is a char from the keyboard, representing one of the five operations from the keyboard:
○ + (addition)
○ - (subtraction)
○ * (multiplication)
○ / (division)
○ ^ (exponentiation)
● Output the description of the operation in plain English, as well as the numeric result
Write a program that reads a web address (for instance, www.yahoo.com) from the keyboard and outputs whether this web address is for a government, a university, a business, a non-profit organization, or another entity.
● If the web address ends with gov, it is a government web address.
● If the web address ends with edu, it is a university web address.
● If the web address ends with com, it is a business web address.
● If the web address ends with org, it is a non-profit organization’s web address.
Otherwise, it is a web address for another entity
(a) Create a class named Invoice containing fields for an item number, name, quantity, price, and total cost. Create a constructor to pass the value of the item name, quantity, and price. Also include displayLine() method that calculates the total cost for the item (As price times quantity) then displays the item number, name, quantity price, and total cost. Save the class as Invoice.java.
(b) Create a class named TestInvoice whose main() method declares three invoice items. Provide values for each, and display them. Save the application as TestInvoice.java.
Required Object Class and Driver Class ,Write a Java program to do the following
a) Read two-dimensional array (3 x3)
b) Find the diagonal elements of the array
Write a Java driven application with the following requirements:
1. Must enter names of students.
2. Enter test 1, 2 and 3 scores for each of my students.
3. Program must calculate the average of each student.
4. Average of each student must appear below their names. ARRAY and MENU implementation should be necessary.
Create a method called emptySpace () this remove space between the name and the surname (Use a regular expression "replaceAll"). The emptySpace() method also Count the number of characters within the newly created string (nameSurname) and return the total number of Characters .
The total number of characters (Name and Surname) should be the size of your arrayAlphabetizer (type integer). Populate your arrayAlphabetizer with a series of random numbers between 10 and 50.
Display all arrayAlphabetizer elements and they are corresponding indexes before executing the sort() method and after executing the sort().
Allow the user to enter a value from the arrayAlphabetizer element to search for.
* * Loop through the array until you find the value (Use a Search function to locate the value with in the array) and replace that value with the character @.
* *Print out arrayAlphabetizer with the replaced element..
Q.1.1 Identify a suitable network scenario that can be used to explain and discuss the relationship of concepts in the exhibit. Ensure that you provide details of the following aspects of the scenario: • Description of the scenario; • How can the scenario be used to discuss and explore the relationship of the concepts in the exhibit?
Q.1.2 As part of the requirements analysis when designing a network, explain what are functional requirements, performance requirements and implementation constraints are and then list three functional requirements, performance requirements and implementation constraints as examples for the identified network system scenario in Q.1.1.
Q.1.3 Using Q.1.1 and Q.1.2 above, discuss the relationship between the concepts as presented in the exhibit. In particular, explain the importance of understanding these relationships in network systems design.
Three Lines Apart
by CodeChum Admin
Do you like reading books? If you do, then you must have encountered texts that have quite a wide space with dots in between them, just like pausing or thinking before proceeding the narration. Let's try doing that here in Python, shall we?
Input
Two lines containing a string on each.
some string
another string
Output
The first line contains the first inputted string.
The next three lines contains a dot symbol on each.
The last line contains the second inputted string.
some string
.
.
.
another string
Three Lines Apart
by CodeChum Admin
Do you like reading books? If you do, then you must have encountered texts that have quite a wide space with dots in between them, just like pausing or thinking before proceeding the narration. Let's try doing that here in Python, shall we?
Input
Two lines containing a string on each.
some string
another string
Output
The first line contains the first inputted string.
The next three lines contains a dot symbol on each.
The last line contains the second inputted string.
some string
.
.
.
another string
Quite tiring to write those things separated by commas and a single space, isn't it?
Then let's try coding it instead
Five lines containing a string on each.
A single line containing all the strings separated by a comma and a space.