1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Mademuasel [1]
4 years ago
8

create a class rectangle with attributes length and width, each of which defaults to 1. provide methods that calculate the recta

ngle's perimeter and area. it has set and get methods for both length and width. the set methods should verify that length and width are each floating-point numbers larger than 0.0 and less than 20.0. write a program to test class rectangle.
Computers and Technology
1 answer:
Ludmilka [50]4 years ago
4 0

Answer:

20.0.0.0

Explanation:

You might be interested in
Code a Boolean expression that tests if a decimal variable named currentSales is greater than or equal to 1000 or a Boolean vari
inysia [295]

Answer:

public class ANot {

   public static void main(String[] args) {

   //Scanner in = new Scanner (System.in);

   boolean newCustomer = true;

   double currentSales =1000;

   if (newCustomer||(currentSales>=1000)){

       System.out.println("New Customer is true and current sales is greater or equal to 1000");

   }

   }

Explanation:

  1. The code is given in Java progamming language
  2. Create and initialize the variables (Boolean and double) as required by the question
  3. Use the if statement with the OR operator (||) to test both condition
3 0
3 years ago
Because a vector container uses a dynamically allocated array to hold its elements,
kaheart [24]
The answer is B than it needs more money
3 0
3 years ago
Need some help writing a simple PYTHON Student registration program:
Y_Kistochka [10]

import random

database = {}

while True:

   try:

       user_choice = int(input("Enter your student id to bring up your information (Press enter if you don't have one) : "))

       if user_choice in database:

           print("Student ID:",database[user_choice][0],"\nFirst name:",database[user_choice][1],"\nLast name:",database[user_choice][2],"\nPhone number:",database[user_choice][3],"\nEmail address:",database[user_choice][4],"\nPassword:",database[user_choice][5],"\nPoints:",database[user_choice][6])

   except ValueError:

       name = input("Enter your first name: ")

       last_name = input("Enter your last name: ")

       phone_number = input("Enter your phone number: ")

       email = input("Enter your email address: ")

       password = input("Enter a password: ")

       points = 100

       student_id = random.randint(1,1000)

       while student_id in database:

           student_id = random.randint(1,1000)

       print("Hello,",name,"your student ID is:",student_id)

       database[student_id] = [student_id,name, last_name, phone_number, email, password, points]

I wrote my code in python 3.8. I hope this helps.

6 0
3 years ago
(05.01 MC)
KiRa [710]

Answer:

0xff

Explanation:

the thing is that hexadecimal always starts with 0x

and theres only one option that starts with 0x

4 0
3 years ago
What types of standards are developed by the Electronics Industries Alliance (EIA)?
vladimir1956 [14]

Answer:

It comprises individual organisation that together have agreed on certain data transmissions standards such as EIA/TIA -232 formerly known as RS- 232

5 0
3 years ago
Read 2 more answers
Other questions:
  • Create a stack with three integers and then use .toarray to copy it to an array.
    10·1 answer
  • Where may an operating system reside in a mobile device?
    5·1 answer
  • On five lane roadways, the center lane is designated for __________ and is used by vehicles traveling in both directions.
    14·1 answer
  • Me2540 week 5 assignment<br> what do i want to know?
    9·1 answer
  • The statement cout &lt;&lt; sales[0,3] + sales[1,3]; will __________. Use the following array named sales to answer this questio
    14·1 answer
  • Write a program that takes a three digit number (input) and prints its ones, tens and hundreds digits on separate lines
    14·1 answer
  • Catherine is designing the backup strategy for the new private cloud that her company is implementing. She specifies that a full
    13·1 answer
  • Given three packets of size 2,500 Bytes (caution this is Bytes not bits) each are ready inside computer 1 to be transmitted onto
    14·1 answer
  • Which programming language in order takes the most lines code​
    6·2 answers
  • It is the responsibility of a manager to understand the company’s IT architecture and corresponding infrastructure so that the
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!