Based on the given description in the question, the maximum cardinality assignment of the customer and vehicle is; one customer to one vehicle mapping
Cardinality is simply defined as the mapping of entities or group of entities to a certain cardinal value. This means that cardinality seeks to highlight the relationship between two objects such as eggs in a crate or shoes on a rack.
Now, in this question, we see that the car dealer sells one car to a customer and tracks the customer and manufacturer for that particular vehicle. This is simply 1 to 1 mapping and as such the maximum cardinality assignment of the customer and vehicle is one (1) to one (1) mapping.
Read more on Mapping at; brainly.com/question/1625866
Answer:
Customer(1) - (1) Vehicle.
Explanation:
Cardinality is the mapping of entities or group of entities to a cardinal value. It tries to show the relationship between two objects like a cups in a shelf or plates in racks.
The car dealer in the question, sells one car to a customer and keep or prioritise the record of the main owner of the acquired vehicle. So the maximum cardinality assignment of the customer and vehicle is one (1) to one (1) mapping.
{
Private String empID;
Private boolean hourly;
) . .
_______
{
Hourly = isHourly;
}
}
A) public void setHourly(String isHourly)
B) public void getHourly()
C) public boolean getHourly()
D) public boolean setHourly(boolean isHourly)
Answer:
A)
Explanation:
In this code example the missing piece of code would be...
public void setHourly(String isHourly)
This piece of code is creating a function called setHourly which takes in one String variable as it's parameter. Based on the rest of the code, the function takes that parameter variable and places it into an instance variable called Hourly which can be used when the function is called.
The electric bill program illustrates the use of loops (i.e. iteration)
Loops are used to execute repetitive operations
The electric bill program in Python where comments are used to explain each line is as follows:
#This iteration shows that the process is repeated for 50 consumers
for i in range(50):
#This gets input for the consumer name meter number
mno = input("Consumer name meter number: ")
#This gets input for last month reading
lmr = int(input("Last month reading: "))
#This gets input for current month reading
cmr = int(input("Current month reading: "))
#This calculates the number of units
Nou = cmr - lmr
#This calculates the bills
bill = Nou*2
#This calculates the tax
tax = bill*0.15
#This calculates the netbills
netbill = bill+tax
#This next four lines print the electric bills
print("Number of units:",Nou)
print("Bills:",bill)
print("Tax:",tax)
print("Netbill:",netbill)
Read more about loops at:
c) Function averageLow: This function calculates and returns the average low temperature for the year.
d) Function indexHighTemp: This function returns the index of the highest high temperature in the array.
e) Function indexLowTemp: This function returns the index of the lowest low temperature in the array."
Answer:
The Java code is given below with appropriate comments
Explanation:
import java.util.Scanner;
public class Temperature {
public static void main(String[] args)
{
// declaring the temperatures array
double[] maxTemp = new double[12];
double[] lowTemp = new double[12];
double avgHighTemp = 0;
double avgLowTemp = 0;
Scanner kb = new Scanner(System.in);
System.out.println("Please enter the highest and lowest temperatures");
System.out.println("of each month one by one below\n");
// inputting the temperatures one by one
for(int i = 0; i < 12; i++)
{
System.out.print("Please enter the highest temperature for month #" + (i+1) + ": ");
maxTemp[i] = Integer.parseInt(kb.nextLine());
System.out.print("Please enter the lowest temperature for month #" + (i+1) + ": ");
lowTemp[i] = Integer.parseInt(kb.nextLine());
System.out.println();
}
avgHighTemp = getAvgHighTemperature(maxTemp);
avgLowTemp = getAvgLowTemperature(lowTemp);
System.out.printf("Average high temperature is: %.2f\n", avgHighTemp);
System.out.printf("Average low temperature is: %.2f\n", avgLowTemp);
}
// method to calculate the average high temperature
public static double getAvgHighTemperature(double[] highTemp)
{
double total = 0;
for(int i = 0; i < 12; i++)
{
total += highTemp[i];
}
return total/12;
}
// method to calculate the average low temperature
public static double getAvgLowTemperature(double[] lowTemp)
{
double total = 0;
for(int i = 0; i < 12; i++)
{
total += lowTemp[i];
}
return total/12;
}
}
a)To document an antivirus pattern that continues to be sent to your mailbox
b)To insert as a Signature for all outgoing emails
c) To save your emails so that you can restore your mailbox if necessary
d)To create a file that deleted emails will be sent to for deletion
The purpose of creating a PST file is to
c) To save your emails so that you can restore your mailbox if necessary
Explanation:
Answer:
def ViewRatings(str, rating):
for book in books:
if r >= rating:
print(book)
ViewRatings("emma", 3)
Explanation:
* The code is in Python.
Since the are missing parts in your question. I am assuming there is a books list and there is a rating, r for each book.
- Create a function called ViewRatings that takes two parameters
- Initialize a for loop that iterates through each book in the books list
- For each book, check its rating with given rating. If the rating of the book is greater than or equal to given rating, print the book
- Call the function
To represent the 5 children as a computer bit, we make use of the equation . 3 bits are required to represent the 5 children.
Given that
---- number of children
The number of bits (b) is calculated as:
Substitute 5 for n
Take logarithm of both sides
Apply law of logarithm
Make b the subject
The number of bits must be an integer. So, we use the greatest integer closest to 2.32. The integer is 3
So:
Hence, the number of bits to represent the 5 children is 3.
Read more about bits at: