plz help me of this question
its not be seen clearly bro
Project 15A - Math Application
package: proj15A
Classes: Main, Circle, Rectangular
Using your new knowledge of methods and classes create a program with an interface. The program must allow a user to enter values and calculate: Areas, Perimeters, Surface Area, and Volumes for circular and rectangular shapes.
The program must have three classes. A main class, circle class and a rectangular class.
Submit all code one after the other as text into Canvas in the following order.
• main.class
• circle.class
• rect.class
I have it all done just need to finish this code
package math;
import java.util.Scanner;
public class Main
{
public static void main(String[] args)// main method
{
Scanner nScan = new Scanner(System.in);
DecimalFormat mf = new DeciamlFormat("0.0");
Circle cir1 = new Circle(0,0);
Rectangle rec1 = new Rectangle (0,0,0);
//variables
boolean runProg = true;
int choice =0;
while(runProg)
{
System.out.print("Math calculator 3000 ver1");
System.out.print("choose a mode. \n"
+ "1 circle mode \n"
+ "2 Rectangle mode \n"
+ "3 End program");
choice = nScan.nextInt();
if(choice==1) //circle mode
{
}
else if(choice == 2) //Rectangle Mode
{
}
else if(choice == 3) //Program Shutdown
{
}
else
{
System.out.println("You may only choose 1-3. Try again.");
}
}
nScan.close();
}
}
Answer:
A simple php code for the following is given below:
Explanation:
interface Calculate {
public function area($lenght,$width);
public function perimeter($length,$width);
public function surfaceArea($length_side_1,$length_side_2);
public funcction volume($length, $width, $height):
}
interface Calculate2 {
public function area($raidus);
public function perimeter($radius);
public function surfaceArea($radius);
public funcction volume($radius):
}
Class Mian{
width=please Enter the value of width
height=please Enterr the value of height
length=please enter the value of length
lenght2=please enter the value of lenth of side 2
ridus= please enter the value of radius
Circle = new circle()
Rectangle = new rectangle()
}
Class Circle implements Calculate2{
public function area(){
area= pi*r
return area
}
public function perimeter(){
perimeter=2*pi*r
return perimeter
}
public function surfaceArea(){
surfacearea= pi*r*r
}
public function volume(){}
area=area()
volume=area*height
return volume
}
Class Rectangle implements Calculate{
public function area(lenght,width){
area= length * width
return area
}
public function perimeter(lenght,width){
perimenter=2(lenght+width)
return perimeter
}
public function surfaceArea(length_side_1, withd right place){}
surface_area 2*length_side_1 f* length_side_2_
public function volume(){}
public surface volume(length,width,height)
volume= length * width * height
return volume
}
For the Pie chart data labels, remove the Value labels
and edit the label options to display Percentage format at
the Center position, and then close the task pane.
Excel is a spreadsheet that features tools like graphs, tables, charts, calculations, etc. The label options are edited by the percentage tool in the excel sheet.
What are data labels?Data labels in an excel sheet are information of the data that provides information of the pie chart in the form of numbers and percentages as given in the instructed data.
To display the percentage format in the data label click the graph and select the green plus in the top right corner. Select more options and check the percentage box and uncheck the value labels. Now, check the "inside end" box to exit the settings.
Therefore, the value labels can be replaced by the percentage values in a pie chart.
Learn more about pie chart here:
https://brainly.com/question/15313963
#SPJ1
Which topic would be included within the discipline of information systems
, , , , , are only a few of the subjects covered within the study area of information systems. Business functional areas like business productivity tools, application programming and implementation, e-commerce, digital media production, data mining, and decision support are just a few examples of how information management addresses practical and theoretical issues related to gathering and analyzing information.
Telecommunications technology is the subject of communication and networking. Information systems is a branch of computer science that integrates the fields of economics and computer science to investigate various business models and the accompanying algorithmic methods for developing IT systems.
Refer this link to know more- https://brainly.com/question/11768396
Which rule should be followed to stay safe online?
Keep inappropriate messages private.
Avoid sharing photos with anyone online
Keep screen names private
Ask an adult for permission to download
Answer:
Avoid sharing photos with anyone online.
Explanation:
People can track you down. Its not worth to be kidnapped. Stay safe.
In order to stay safe while using the internet platform, one should avoid sharing photos online. Thus, option B is correct.
What is online safety?Online safety can be best described as the method by which an individual can stay away from the possible threats one might encounter during internet surfing.
Online safety is an important aspect that protects personal information, reputation, and content. One can stay safe and protect their personal data by not sharing photos and other content with an unfamiliar person or platform.
One can limit the sharing of personal information by using the safe browsing method and must be careful of the content like posts and photos they share on the internet websites.
Thus, avoiding photo sharing with anyone online can keep one safe and protected. So option B is correct.
Learn more about online safety, here:
https://brainly.com/question/29793039
#SPJ2
Why should we consider you for full sponsorship?
I am an exceptional student with a strong academic record, highly motivated and involved in school and community activities, and have a strong work ethic.
What is a fully funded scholarshipA fully funded scholarship is an award that covers all of the costs associated with a student's education. This includes tuition, room and board, books, and any other related fees. Fully funded scholarships may be awarded by a university, a government, a foundation, or an individual donor.
They may be awarded based on a student's academic or extracurricular achievements, financial need, or a combination of both. Fully funded scholarships can be incredibly beneficial for students, as they can allow them to pursue their education without worrying about the cost.
Additionally, some scholarships may provide additional financial aid, such as mentoring programs, internships, and study abroad opportunities. By receiving a fully funded scholarship, students are given the opportunity to focus on their studies without the burden of financial difficulties.
Learn more about scholarships here:
https://brainly.com/question/28023115
#SPJ1
parameters and return make
Answer:
I don't understand this question
Using the format method, fill in the gaps in the convert_distance function so that it returns the phrase "X miles equals Y km", with Y having only 1 decimal place. For example, convert_distance(12) should return "12 miles equals 19.2 km".
1 an AWN def convert_distance (miles): km = miles * 1.6 result = "{} miles equals {_} km". _ return result 7 8 print(convert_distance(12)) # should be: 12 miles equals 19.2 km print(convert_distance(5.5)) # should be: 5.5 miles equals 8.8 km print(convert distance(11)) # Should be: 11 miles equals 17.6 km
Answer:
Add this statement to the code using format method:
result = "{} miles equals {:.1f} km".format(miles,km)
Explanation:
Here is the complete program:
def convert_distance (miles):
km = miles * 1.6
result = "{} miles equals {:.1f} km".format(miles,km)
return result
print(convert_distance(12))# should be: 12 miles equals 19.2 km
print(convert_distance(5.5)) # should be: 5.5 miles equals 8.8 km
print(convert_distance(11)) # Should be: 11 miles equals 17.6 km
The format() method is used to format the values of the specified parameters and insert the formatted values into the curly brackets which are called placeholders. The parameters of format() method here are miles and km . The first placeholder is for formatted value of miles variable and second placeholder is for formatted value of km variable. Note that placeholder for km has {:.1f} which means the value of km is rounded to 1 decimal place. For example if the value is 19.23245 then it is displayed up to 1 decimal place as: 19.2
The above program has a method convert_distance that takes miles as parameter and converts the value of miles to km by formula:
km = miles * 1.6
It then displays the output in the specified format using format() method. Now lets take an example:
print(convert_distance(5.5))
The above statement calls the method by passing the value 5.5 So,
miles = 5.5
Now the function converts this value to km as:
km = miles * 1.6
km = 5.5 * 1.6
km = 8.8
Statement: result = "{} miles equals {:.1f} km".format(miles,km) becomes:
{} first place holder holds the value of miles i.e. 5.5
{} second place holder holds the value of km up to 1 decimal place i.e. 8.8
Hence it becomes:
5.5 miles equals 8.8 km
So return result returns the result of this conversion.
Hence the output is:
5.5 miles equals 8.8 km
The program and its output is attached.
The format method is used to substitute and format output data before they are eventually printed.
The complete statement using the format method is:
result = "{} miles equals {:.1f} km".format(miles,km)
From the question, we understand that the program is to output the converted distance to 1 decimal place.
The function definition receives miles as its argument, while the equivalent distance in kilometers is calculated within the function.
So,
The first blank will be left empty, to output miles unformattedThe second blank will be filled with :.1 , to output km formatted to 1 decimal placeThe third blank will be filled with the output variables i.e. format(miles,km)Read more about format methods at:
https://brainly.com/question/19554596
Device A is attempting send data over the internet to device E which of the following is true of how the data will travel through the network
Answer:
so, if its a multiple question its better to give us the choices, but I know the info would go to a server and then the server would transport the info to the other computer.
Explanation:
When using for loops to iterate through (access all elements of a 2D list), the outer
loop accesses the ______.
When using for loops to iterate through a 2D list, the outer loop accesses the rows.
What is the rationale for the above response?The outer loop iterates over each row of the 2D list, while the inner loop iterates over each element in that row.
This allows you to access and manipulate each element of the 2D list one at a time, making it easier to perform operations or calculations on the data in the list.
By iterating through the rows first, you can ensure that each element of the list is accessed in the correct order and that all data is processed or analyzed correctly.
Learn more about Loops:
https://brainly.com/question/30706582
#SPJ1
Answer:rows
Explanation:This should be the answer if am wrong please tell me so i can correct it
unit 2 lesson 1 coding activity 2
The output based on the information will be credulousdifferently
primitive data types hold only one piece of information at a time.
class data types can hold several pieces of data and have methods to work on that data.
What is a primitive data?Primitive data, in computer programming, refers to basic data types that are supported by programming languages natively. These data types are simple and are not composed of other data types.
Examples of primitive data types include:
Integer - used for whole numbers, such as 1, 2, 3, etc.
Floating point - used for decimal numbers, such as 1.5, 2.7, etc.
Boolean - used to represent true or false values.
Character - used to represent a single character, such as 'a', 'b', etc.
Byte - used to represent a small integer value between -128 to 127.
These primitive data types are used to build more complex data structures and algorithms in programming languages.
Learn more about data on
https://brainly.com/question/26711803
#SPJ1
Consider the following code:
String a = "credulous";
String b = "differently";
System.out.println(a + b);
What is output?
______ data types hold only one piece of information at a time.
______ data types can hold several pieces of data and have methods to work on that data.
You need to migrate an on-premises SQL Server database to Azure. The solution must include support for SQL Server Agent.
Which Azure SQL architecture should you recommend?
Select only one answer.
Azure SQL Database with the General Purpose service tier
Azure SQL Database with the Business Critical service tier
Azure SQL Managed Instance with the General Purpose service tier
Azure SQL Database with the Hyperscale service tier
The recommended architecture would be the Azure SQL Managed Instance with the General Purpose service tier.
Why this?Azure SQL Managed Instance is a fully managed SQL Server instance hosted in Azure that provides the compatibility and agility of an instance with the full control and management options of a traditional SQL Server on-premises deployment.
Azure SQL Managed Instance supports SQL Server Agent, which is important for scheduling and automating administrative tasks and maintenance operations.
This would be the best option for the needed migration of dB.
Read more about SQL server here:
https://brainly.com/question/5385952
#SPJ1
Wrire a code that display elements at indices 1 and 4 in the follwoing array.
var userArray = [1, 6, 41, 8, 24, 4];
Answer:
Console.log(userArray[1]);
Console.log(userArray[4]);
Explanation:
The programming language was not stated; however, the variable declaration implies JavaScript.
JavaScript prints using the following syntax:
Console.log(print-name);
Since, the code is to print some elements of array userArray.
First, we need to determine the index of the elements.
The indices are given as 1 and 4.
So, the code to print these elements is as follows:
Console.log(userArray[1]);
Console.log(userArray[4]);
If an image has only 4 colors, how many bits are necessary to represent one pixel’s color in RGB?
Answer:
Form is the overall structure of the visual elements of a piece. Form can be represented by four categories: representational, objective, realistic, and naturalist.
Explanation:
brainliest
What exactly is hyperloop, and how does it function?
Answer:
The Hyperloop system consists of sealed and partially evacuated tubes, connecting mobility hubs in large metropolitan areas, and pressurized vehicles, usually called pods, which can move at very high speeds, thanks to contactless levitation and propulsion systems as well as to the low aerodynamic drag.
Answer:
https://youtu.be/k-UdTsEpaw0
Explanation:
The process of providing only the essentials and hiding the details is known as _____. Group of answer choices algorithm abstraction optimization data structure
Increase the value of cell c30 by 15%
To increase the value of cell C30 by 15%, you can multiply the current value of C30 by 1.15.
To increase the value of cell C30 by 15%, you can follow these steps. First, multiply the current value of C30 by 0.15 to calculate 15% of the value. Then, add this calculated amount to the current value of C30. This can be expressed as C30 + (C30 * 0.15). For example, if the current value of C30 is 100, you would perform the calculation 100 + (100 * 0.15) to get the increased value. In this case, the result would be 115. This method ensures that the value in cell C30 is increased by 15% while retaining the existing value. Adjusting calculations accordingly based on the desired value and spreadsheet software used will allow you to increase the value of cell C30 by 15%.For more such questions on Cell C30:
https://brainly.com/question/31706410
#SPJ8
what is RAM?
\( \\ \\ \\ \\ \\ \)
Answer: Random Access Memory
Explanation:
Random-access memory or RAM is a form of memory that can be read and changed in any order.
Explanation:
RAM stands for random-access memory.
RAM is essentially short term memory where data is stored as the processor need it.
Hope it's help... ✨
When you save something to the Desktop on a school computer, what drive letter will it save to
When you save something to the Desktop on a school computer, the drive letter it will save to the C drive.
What is a C drive?C drive is that part of the computer that contains the operating system and files of the system. The files on which we worked are saved on the C drive of the system.
This is a type of hard drive. The work we have done on the system is automatically saved on the drive. We can easily find the C drive on the computer's file explorer. It automatically saved the data, but you can save manually the data of the D drive.
Thus, the drive letter it will save to the C drive.
To learn more about C drive, refer to the link:
https://brainly.com/question/2619161
#SPJ1
What is the importance of knowing the concept of programming?
Answer:
Computer programming is important today because so much of our world is automated. Humans need to be able to control the interaction between people and machines. Since computers and machines are able to do things so efficiently and accurately, we use computer programming to harness that computing power.
Input an int between 0 and 100 and print the numbers between it and 100, including the number itself and the number 100. If the number is less than or equal to 0, or greater than or equal to 100 print "error". Print 20 numbers per line.
Language: Java
import java.util.Scanner;
public class JavaApplication42 {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int count = 0;
System.out.println("Enter an integer between 0 and 100");
int num = scan.nextInt();
if (num <= 0 || num >= 100){
System.out.println("error");
}
else{
while(num <= 100){
if (count == 20){
System.out.println("");
count = 0;
}
else{
System.out.print(num+" ");
count++;
num++;
}
}
}
}
}
I hope this helps!
The pentagonal number is an illustration of loops.
Loops are used to perform repetitive operations
The program in Java where comments are used to explain each line is as follows:
import java.util.*;
public class Main {
public static void main(String[] args) {
//This creates a Scanner object
Scanner input = new Scanner(System.in);
//This gets input for num
int num = input.nextInt();
//This prints error is num is out of range
if(num <=0 || num >= 100){
System.out.print("Error");
}
else{
//This initializes counter to 0
int count = 0;
//This iterates through num
for (int i = num; i <= 100; i++) {
//This prints the current number
System.out.print((i)+"\t");
//This increments the counter by 1
count++;
//If the counter is 10
if(count == 10){
//This prints a new line
System.out.println();
//This sets the counter to 0
count = 0;
}
}
}
}
}
Read more about loops at:
https://brainly.com/question/19344465
Predicate Logic The following is a snippet of pseudocode designed to produce an array (similar to a matrix). The variables m and n are integer variables and the variable A is a two-dimensional array with 10 rows (indexed from 1 to 10) and 8 columns (indexed from 1 to 8). \array.pas\ For m:=1to * 10do For n:=1to * 8do forall m bullet forall n bullet A[m, n]in mathbb Z . (d) The entries in each row of the array A are sorted into strictly decreasing order. You will also be asked to decide whether each statement is True or False. For example, the above statement is True. As an example, the statement "All entries in the array A are integers." can be expressed as (e) Some of the entries of the array A are greater than 30. (b) All entries in the array A are positive and less than 70. 1. Express each of the statements below in predicate logic. (a) All entries in the array A are positive. In the code above, A[m.n] refers to the entry in row m and column n Your task is to express the various statements bel
Write a program that defines the following two lists:
names = ['Alice', 'Bob', 'Cathy', 'Dan', 'Ed', 'Frank','Gary', 'Helen', 'Irene', 'Jack',
'Kelly', 'Larry']
ages = [20, 21, 18, 18, 19, 20, 20, 19, 19, 19, 22, 19]
These lists match up, so Alice’s age is 20, Bob’s age is 21, and so on. Write a program
that asks the user to input the number of the person to retrieve the corresponding
data from the lists. For example, if the user inputs 1, this means the first person
whose data is stored in index 0 of these lists. Then, your program should combine
the chosen person’s data from these two lists into a dictionary. Then, print the
created dictionary.
Hint: Recall that the function input can retrieve a keyboard input from a user. The
signature of this function is as follows:
userInputValue = input("Your message to the user")
N.B.: userInputValue is of type String
Answer: I used colab, or use your favorite ide
def names_ages_dict():
names = ['Alice', 'Bob', 'Cathy', 'Dan', 'Ed', 'Frank','Gary', 'Helen', 'Irene', 'Jack', 'Kelly', 'Larry']
ages = [20, 21, 18, 18, 19, 20, 20, 19, 19, 19, 22, 19]
# merging both lists
names_ages = [list(x) for x in zip(names, ages)]
index = []
# creating index
i = 0
while i < len(names):
index.append(i)
i += 1
# print("Resultant index is : " ,index)
my_dict = dict(zip(index, names_ages))
print('Input the index value:' )
userInputValue = int(input())
print(f'data at index {userInputValue} is, '+ 'Name: ' + str(my_dict[input1][0] + ' Age: ' + str(my_dict[input1][1])))
keys = []
values = []
keys.append(my_dict[input1][0])
values.append(my_dict[input1][1])
created_dict = dict(zip(keys, values))
print('The created dictionary is ' + str(created_dict))
names_ages_dict()
Explanation: create the function and call the function later
Complete the steps for finding and replacing text.
1. Click on the
✓tab.
2. In the Editing group, click
3. Type the text you want to find.
✓ button.
4. Click the
5. Type the replacement text.
6. Click Replace All.
NEED THE ANSER ASAP
You are a systems analyst. Many a time have you heard friends and colleagues complaining that their jobs and businesses are being negatively impacted by e-commerce. As a systems analyst, you decide to research whether this is true or not. Examine the impact of e-commerce on trade and employment/unemployment, and present your findings as a research essay.
E-commerce, the online buying and selling of goods and services, has significantly impacted trade, employment, and unemployment. This research essay provides a comprehensive analysis of its effects.
What happens with e-commerceContrary to popular belief, e-commerce has led to the growth and expansion of trade by breaking down geographical barriers and providing access to global markets for businesses, particularly SMEs. It has also created job opportunities in areas such as operations, logistics, customer service, web development, and digital marketing.
While certain sectors have experienced disruption, traditional businesses can adapt and benefit from e-commerce by adopting omni-channel strategies. The retail industry, in particular, has undergone significant transformation. E-commerce has empowered small businesses, allowing them to compete with larger enterprises and fostered entrepreneurial growth and innovation. However, there have been job displacements in some areas, necessitating individuals to transition and acquire new skills.
Read mroe on e-commerce here https://brainly.com/question/29115983
#SPJ1
Keplez Informatics is headquartered in Sydney, Australia, and has smaller branch offices spread across the world. The RODC in one of the branch offices gets stolen. Shannon is the system administrator at Keplez Informatics. What is the appropriate security measure that Shannon should take
The appropriate security measure that Shannon should take is
to delete the RODC computer name and reset all cached
account password.
What is RODC?This is referred to as read-only domain controller and is a server
that hosts an active directory database's read-only partitions.
It also responds to security authentication requests which is
why when stolen it must be deleted and all cached password
reset to prevent unauthorized access.
Read more about Domain controllers here https://brainly.com/question/25664001
Create a program that will read in a Salesperson name, employment status (1=Full-time AND 2=Part-time) and the sales amount.
In the Output, display the salesperson name along with the commission amount earned. The commission rate for full-time is 4% while for part-time is 2%.
Lastly, your program must also display the text “You have exceeded the sales quota!” if the following conditions are met:
Full-time and sales is over 1000
Part-time and sales is over 500
Use the Console for the Input and Output.
Answer:
Written using Python
name = input("Name: ")
print("1 for Full time and 2 for Part time")
status = int(input("Status: "))
sales = float(input("Sales Amount: "))
if status == 1:
commission = 0.04 * sales
else if status == 2:
commission = 0.02 * sales
print(name)
print(commission)
if status == 1 and sales>1000:
print("You have exceeded the sales quota!")
if status == 2 and sales>500:
print("You have exceeded the sales quota!")
Explanation:
I've added the full source code as an attachment where I used comments to explain some lines
Take a number N as input and output the sum of all numbers from 1 to N (including N).
Answer:
Incluint respuet
Explanation:
espero que te sirva
Which of the following techniques is a direct benefit of using Design Patterns? Please choose all that apply Design patterns help you write code faster by providing a clear idea of how to implement the design. Design patterns encourage more readible and maintainable code by following well-understood solutions. Design patterns provide a common language / vocabulary for programmers. Solutions using design patterns are easier to test
Answer:
Design patterns help you write code faster by providing a clear idea of how to implement the design
Explanation:
Design patterns help you write code faster by providing a clear idea of how to implement the design. These are basically patterns that have already be implemented by millions of dev teams all over the world and have been tested as efficient solutions to problems that tend to appear often. Using these allows you to simply focus on writing the code instead of having to spend time thinking about the problem and develop a solution. Instead, you simply follow the already developed design pattern and write the code to solve that problem that the design solves.
uses of computer in communication
Uses of computers in communication:
1) Transfer of data
2)Transfer of information
3) Wireless message communication
4)Video service
5)E-mail
6) Internet and Fax
What is the use of computers in communication?
The mainstay of information technology, computers are essential for communication. Early in the 1990s, the first homes began to utilize the Internet, which eventually led to the widespread use of email, websites, blogs, social networking, and Voice-Over-Internet Protocol.
Above listed ones are the uses of computers in communication.
To know more about the information about computers in communication
https://brainly.com/question/26152499
#SPJ1