Answer:
see explaination
Explanation:
#include <fstream>
#include <iostream>
#include <string>
//to set precision
#include <iomanip>
#include <bits/stdc++.h>
//structure of student is created.
struct Student
{
std::string name;
double grade1;
double grade2;
double grade3;
double Average;
// Constructor initializes semester scores to 0.
Student()
{
grade1 = 0;
grade2 = 0;
grade3 = 0;
Average = 0;
}
//Read from the file and calculate the average, min and max grade with name.
void read(std::fstream& fil)
{
std::string temp;
fil >> name;
fil >> temp;
grade1 = std::stod(temp);
fil >> temp;
grade2 = std::stod(temp);
fil >> temp;
grade3 = std::stod(temp);
Average = ((grade1 + grade2 + grade3) /3.0);
}
//write to file- name and average with precision 2.
void write(std::fstream& fil)
{
fil << name << " " << std::setprecision(2) << std::fixed << Average << std::endl;
}
//Logic to calculate the minimum grade of the class.
double min()
{
double min = grade1;
if(min > grade2)
{
min = grade2;
}
if(min > grade3)
{
min = grade3;
}
return min;
}
//Logic to calculate the maximum grade of the class.
double max()
{
double max = grade1;
if(max < grade2)
{
max = grade2;
}
if(max < grade3)
{
max = grade3;
}
return max;
}
//Print the name and average with precision 2 in the console.
void print()
{
std::cout << name << " " ;
std::cout << std::setprecision(2) << std::fixed << Average << std::endl;
}
};
//As per this question,students are set to 3.
Student students[3];
//main method.
int main()
{
// Read from the file question2.txt
std::fstream fil;
fil.open("question2.txt", std::ios::in);
for(int i = 0; i < 3; i++)
students[i].read(fil);
fil.close();
// finding the max grade of the class.
int max = students[0].max();
int temp = students[1].max();
if(max <temp)
max = temp;
temp = students[2].max();
if(max < temp)
max = temp;
// finding the min grade of the class.
int min = students[0].min();
temp = students[1].min();
if(min > temp)
min = temp;
temp = students[2].min();
if(min > temp)
min = temp;
// print the output in console.
std::cout << "Max Grade " << max << std::endl;
std::cout << "Min Grade " << min << std::endl;
for(int i = 0; i < 3; i++)
students[i].print();
// write to output file output2.txt .
fil.open("output2.txt", std::ios::out);
fil << "Max Grade " << max << std::endl;
fil << "Min Grade " << min << std::endl;
for(int i = 0; i < 3; i++)
students[i].write(fil);
fil.close();
return 0;
}
*IN JAVA*
Write a program whose inputs are four integers, and whose outputs are the maximum and the minimum of the four values.
Ex: If the input is:
12 18 4 9
the output is:
Maximum is 18
Minimum is 4
The program must define and call the following two methods. Define a method named maxNumber that takes four integer parameters and returns an integer representing the maximum of the four integers. Define a method named minNumber that takes four integer parameters and returns an integer representing the minimum of the four integers.
public static int maxNumber(int num1, int num2, int num3, int num4)
public static int minNumber(int num1, int num2, int num3, int num4)
import java.util.Scanner;
public class LabProgram {
/* Define your method here */
public static void main(String[] args) {
/* Type your code here. */
}
}
The program whose inputs are four integers is illustrated:
#include <iostream>
using namespace std;
int MaxNumber(int a,int b,int c,int d){
int max=a;
if (b > max) {
max = b;}
if(c>max){
max=c;
}
if(d>max){
max=d;
}
return max;
}
int MinNumber(int a,int b,int c,int d){
int min=a;
if(b<min){
min=b;
}
if(c<min){
min=c;
}
if(d<min){
min=d;
}
return min;
}
int main(void){
int a,b,c,d;
cin>>a>>b>>c>>d;
cout<<"Maximum is "<<MaxNumber(a,b,c,d)<<endl;
cout<<"Minimum is "<<MinNumber(a,b,c,d)<<endl;
}
What is Java?Java is a general-purpose, category, object-oriented programming language with low implementation dependencies.
Java is a popular object-oriented programming language and software platform that powers billions of devices such as notebook computers, mobile devices, gaming consoles, medical devices, and many more. Java's rules and syntax are based on the C and C++ programming languages.
Learn more about program on:
https://brainly.com/question/26642771
#SPJ1
We can not use any programming logic in microsoft.
a. true
b. false
Answer:
false
Explanation:
1.ShoppingBay is an online auction service that requires several reports. Data for each auctioned
item includes an ID number, item description, length of auction in days, and minimum required bid.
Design a flowchart or pseudocode for the following:
-a. A program that accepts data for one auctioned item. Display data for an auction only if the
minimum required bid is more than $250.00
The pseudocode for the program: Announce factors for the unloaded thing information, counting:
auction_id (numbers)
item_description (string)
auction_length (numbers)
minimum_bid (drift)
Incite the client to enter the auction_id, item_description, auction_length, and minimum_bid.
What is the pseudocode?The program acknowledges information for one sold thing, counting the auction_id, item_description, auction_length, and minimum_bid. It at that point checks in case the minimum_bid for the unloaded thing is more prominent than or rise to to $250.00.
The pseudocode for the program pronounces factors for the sold thing information and prompts the client to enter the information. At that point it employments an in the event that articulation to check in case the minimum_bid is more noteworthy than or break even with to 250.00.
Learn more about pseudocode from
https://brainly.com/question/24953880
#SPJ1
Question: 9
What should be the primary focus of keeping information secure?
O
O
O
O
Educating users on the dangers of phishing
attempts
Encrypting all personal data
Ensuring the confidentiality, integrity, and
availability of data
Implementing a strong password policy
Question: 10
The primary focus of keeping information secure should be ensuring the confidentiality, integrity, and availability of data. Hence option C is correct.
What is information security about?
This involves implementing various security measures such as encryption, access control, backup and disaster recovery, and following industry standards and regulations to protect sensitive information from unauthorized access, alteration, or loss.
Therefore, Educating users on the dangers of phishing attempts and implementing a strong password policy are also important steps in ensuring information security.
Learn more about information security from
https://brainly.com/question/25226643
#SPJ1
How might the design be changed so that additional copies of print statements would not be needed?
A design be altered so that additional copies of print statements would not be needed by changing the format spring.
What is the aim of a print statement?The PRINT statement is known to be often sent data so that it is taken to the display terminal or to another kind of print unit.
Note that A design be altered so that additional copies of print statements would not be needed by changing the format spring.
Learn more about design from
https://brainly.com/question/1020696
#SPJ1
The _______ allows you to quickly access features such as formatting, charts, tables, and totals
Answer:
The Quick Analysis toolbar allows you to quickly access features such as formatting, charts, tables, and totals
What is the classification of the Gartner company?
multimedia
consultant
search engine
Cloud software company
Answer:
It Is Multimedia
Explanation:
Trust Me
Consultant.
"Gartner is a provider of research and consulting services for businesses in the IT sector"
How does a fully integrated Data and Analytics Platform enable organizations to
convert data into consumable information and insight?
A fully integrated Data and Analytics Platform enable organizations to convert data into consumable information and insight by:
How does a fully integrated Data and Analytics Platform enable convert data?This is done by putting together or the archiving of all the captured data and also the act of getting them back if and when needed for business purpose.
Note that it is also done by making analytics reports and creating Machine Learning models to refine the data.
Learn more about Analytics Platform from
https://brainly.com/question/27379289
#SPJ1
Which will you see on the next line 9, 2, 3.5, 7]
Answer:
plenipotentiaries. It was by far the most splendid and
important assembly ever convoked to discuss and
determine the affairs of Europe. The Emperor of
Russia, the King of Prussia, the Kings of Bavaria,
Denmark, and Wurttemberg, all were present in
person at the court of the Emperor Francis I in the
Austrian capital. When Lymie put down his fork and
began to count them off, one by one, on the fingers
of his left hand, the waitress, whose name was Irma,
thought he was through eating and tried to take his
plate away. He stopped her. Prince Metternich (his
right thumb) presided over the Congress, and
Prince Talleyrand (the index finger) represented
France? please let me know if this is the answer you were looking for!!
Answer:
I guess 6.......maybe or 1 kinda.....
I am dumb for this question
Is there a way to find the “time complexity of the problem”?
When is a table the most effective way to present information?
A. When you want to show the parts of a whole.
B. When you want to make many details available in an organized
way.
OC. When graphs are more expensive to create.
D. When you want to show how parts fit together.
The most effective way to present information in a table is when you want to make many details available in an organized way. (Option B)
What is a table in database management?Tables are database objects that hold all of the information in a database. Tables logically arrange data in a row-and-column structure comparable to spreadsheets. Each row represents a distinct record, and each column represents a record field.
A table in Excel is a rectangular range of data that has been defined and designated in a certain way. To demonstrate, consider the following two rectangular data ranges. Both ranges contain identical data, but neither has been classified as a table.
Learn more about table at:
https://brainly.com/question/12151322
#SPJ1
Why would we need to consider implementing our business blockchain application not on Bitcoin but Ethereum?
lan is working on a project report that will go through multiple rounds of
revisions. He decides to establish a file labeling system to help keep track of
the different versions. He labels the original document
ProjectReport_v1.docx. How should he label the next version of the
document?
A. ProjectReport_revised.docx
B. ProjectReport_v1_v2.docx
C. Report_v2.docx
D. ProjectReport_v2.docx
Answer:It’s D
Explanation:
APEVX
The label of the next version of the document can probably be ProjectReport_v2.docx. The correct option is D.
What is a document?A document's purpose is to enable the transmission of information from its author to its readers.
It is the author's responsibility to design the document so that the information contained within it can be interpreted correctly and efficiently. To accomplish this, the author can employ a variety of stylistic tools.
Documentation can be of two main types namely, products and processes. Product documentation describes the product under development and provides instructions on how to use it.
A document file name is the name given to a document's electronic file copy.
The file name of the document does not have to be the same as the name of the document itself. In fact, you can use the shortest possible version of the name.
As the document here is second version of the previous one, so its name should be ProjectReport_v2.docx.
Thus, the correct option is D.
For more details regarding document, visit:
https://brainly.com/question/27396650
#SPJ2
When the InfoSec management team’s goals and objectives differ from those of the IT and general management communities, what items should be considered for the resolution, and who should be involved and provide an example of a situation where such a conflict might exist
phone holder 2 questions
Write a program that accepts any number of homework scores ranging in value from 0 through
10. Prompt the user for a new score if they enter a value outside of the specified range. Prompt
the user for a new value if they enter an alphabetic character. Store the values in an array.
Calculate the average excluding the lowest and highest scores. Display the average as well as the
highest and lowest scores that were discarded.
Answer:
This program is written in Java programming language.
It uses an array to store scores of each test.
And it also validates user input to allow only integers 0 to 10,
Because the program says the average should be calculated by excluding the highest and lowest scores, the average is calculated as follows;
Average = (Sum of all scores - highest - lowest)/(Total number of tests - 2).
The program is as follows (Take note of the comments; they serve as explanation)
import java.util.*;
public class CalcAvg
{
public static void main(String [] args)
{
Scanner inputt = new Scanner(System.in);
// Declare number of test as integer
int numTest;
numTest = 0;
boolean check;
do
{
try
{
Scanner input = new Scanner(System.in);
System.out.print("Enter number of test (1 - 10): ");
numTest = input.nextInt();
check = false;
if(numTest>10 || numTest<0)
check = true;
}
catch(Exception e)
{
check = true;
}
}
while(check);
int [] tests = new int[numTest];
//Accept Input
for(int i =0;i<numTest;i++)
{
System.out.print("Enter Test Score "+(i+1)+": ");
tests[i] = inputt.nextInt();
}
//Determine highest
int max = tests[0];
for (int i = 1; i < numTest; i++)
{
if (tests[i] > max)
{
max = tests[i];
}
}
//Determine Lowest
int least = tests[0];
for (int i = 1; i < numTest; i++)
{
if (tests[i] < least)
{
least = tests[i];
}
}
int sum = 0;
//Calculate total
for(int i =0; i< numTest;i++)
{
sum += tests[i];
}
//Subtract highest and least values
sum = sum - least - max;
//Calculate average
double average = sum / (numTest - 2);
//Print Average
System.out.println("Average = "+average);
//Print Highest
System.out.println("Highest = "+max);
//Print Lowest
System.out.print("Lowest = "+least);
}
}
//End of Program
A company's blocklist has outgrown the current technologist in place. The ACLs are at maximum, and the IPS signatures only allow a certain amount of space for domains to be added, creating the need for multiple signatures. which of the following configuration changes to the existing control would be the MOST appropriate to improve performance?
a. implement a host-file-based solution that will use a list of all domains to deny for all machines on the network
b. create an IDS for the current blocklist to determine which domains are showing activity and may need to be removed.
c. review the current clocklist the prioritize it based on the level of threat severity. Add the domains with the highest severity ot the blocklist and remove the lower-severity threats from it.
d. review the current blocklist to determine which domains can be removed from the list and then update the ACLs and IPS signatures.
The configuration changes to the existing control which would be most appropriate to improve performance is: C. review the current blocklist and prioritize it based on the level of threat severity. Add the domains with the highest severity to the blocklist and remove the lower-severity threats from it.
What is access control?An access control (ACL) can be defined as a security technique that is designed and developed to enable a computer system determine whether or not an end user has the minimum requirement, permissions and credentials to access, use or view file and folder resources that are stored on a computer.
Basically, an access control (ACL) can be configured to only allow a certain amount of space for domains to be added to a blocklist through the use of an intrusion prevention system (IPS).
In this scenario, the technologist should review the current blocklist and prioritize it based on the level of threat severity, add the domains with the highest severity to the blocklist and then remove the lower-severity threats from it, in order to create more space for domains to be added.
Read more on access control here: https://brainly.com/question/3521353
Create a program using classes that does the following in the zyLabs developer below. For this lab, you will be working with two different class files. To switch files, look for where it says "Current File" at the top of the developer window. Click the current file name, then select the file you need.
(1) Create two files to submit:
ItemToPurchase.java - Class definition
ShoppingCartPrinter.java - Contains main() method
Build the ItemToPurchase class with the following specifications:
Private fields
String itemName - Initialized in default constructor to "none"
int itemPrice - Initialized in default constructor to 0
int itemQuantity - Initialized in default constructor to 0
Default constructor
Public member methods (mutators & accessors)
setName() & getName() (2 pts)
setPrice() & getPrice() (2 pts)
setQuantity() & getQuantity() (2 pts)
(2) In main(), prompt the user for two items and create two objects of the ItemToPurchase class. Before prompting for the second item, call scnr.nextLine(); to allow the user to input a new string. (2 pts)
(3) Add the costs of the two items together and output the total cost. (2 pts)
Here's the code:
The CodeItemToPurchase.java:
public class ItemToPurchase {
private String itemName;
private int itemPrice;
private int itemQuantity;
public ItemToPurchase() {
itemName = "none";
itemPrice = 0;
itemQuantity = 0;
}
public void setName(String name) {
itemName = name;
}
public String getName() {
return itemName;
}
public void setPrice(int price) {
itemPrice = price;
}
public int getPrice() {
return itemPrice;
}
public void setQuantity(int quantity) {
itemQuantity = quantity;
}
public int getQuantity() {
return itemQuantity;
}
}
ShoppingCartPrinter.java:import java.util.Scanner;
public class ShoppingCartPrinter {
public static void main(String[] args) {
Scanner scnr = new Scanner(System.in);
ItemToPurchase item1 = new ItemToPurchase();
System.out.println("Item 1");
System.out.println("Enter the item name:");
item1.setName(scnr.nextLine());
System.out.println("Enter the item price:");
item1.setPrice(scnr.nextInt());
System.out.println("Enter the item quantity:");
item1.setQuantity(scnr.nextInt());
scnr.nextLine();
ItemToPurchase item2 = new ItemToPurchase();
System.out.println("\nItem 2");
System.out.println("Enter the item name:");
item2.setName(scnr.nextLine());
System.out.println("Enter the item price:");
item2.setPrice(scnr.nextInt());
System.out.println("Enter the item quantity:");
item2.setQuantity(scnr.nextInt());
int totalCost = item1.getPrice() * item1.getQuantity() + item2.getPrice() * item2.getQuantity();
System.out.println("\nTotal cost: $" + totalCost);
}
}
This implementation creates two objects of the ItemToPurchase class, prompts the user for their names, prices, and quantities, calculates the total cost, and prints it out.
Read more about programs here:
https://brainly.com/question/26134656
#SPJ1
Which group and tab do you need to be in to separate text into two columns? Paragraph group and Insert tab Page Layout group and Home tab Page Setup group and Page Layout tab Home group and Page Setup tab
Answer: Page setup group and page layout tab
Explanation:
:)
Answer:
Page setup group and page layout tab
Explanation:
just answered the question
A customer is in a store to purchase 3 items. Write a program which asks for the price of each item, uses 5.5% for sales tax, then displays:
1. the subtotal of the sale
2. the total amount of tax to be collected
3. the total amount the customer must pay
A succession of instructions written in a programming language for a computer to interpret is referred to as a computer program.
How is the program utilised?
The program gives the computer the expertise to carry out a specific task. A computer can function with the operating system without application software (apps), but it cannot carry out any particular task. For instance, you need to install Microsoft Word on your computer in order to generate a Word document.
Create a program that requests the price of each item, adds 5.5% sales tax, and shows the information below.
MARKETING TAX =.055
item1 is comparable to a float (input("Enter the price for item 1 in dollars"))
item2 = float('Enter the price for item 2 $', input)
item3 is equal to float(input("Enter the price for item 3 $"))
Float (item1 + item2 + item3) = subtotal
sales tax total = subtotal* SALES TAX
total is the aggregate of the subtotal and the sales tax.
Total = $ ('Total = $', format(total, ',.2f'), sep=", end=") ('nn')
To know more about programs visit:
https://brainly.com/question/14721034
#SPJ4
xamine the following output:
Reply from 64.78.193.84: bytes=32 time=86ms TTL=115
Reply from 64.78.193.84: bytes=32 time=43ms TTL=115
Reply from 64.78.193.84: bytes=32 time=44ms TTL=115
Reply from 64.78.193.84: bytes=32 time=47ms TTL=115
Reply from 64.78.193.84: bytes=32 time=44ms TTL=115
Reply from 64.78.193.84: bytes=32 time=44ms TTL=115
Reply from 64.78.193.84: bytes=32 time=73ms TTL=115
Reply from 64.78.193.84: bytes=32 time=46ms TTL=115
Which of the following utilities produced this output?
The output provided appears to be from the "ping" utility.
How is this so?Ping is a network diagnostic tool used to test the connectivity between two network devices,typically using the Internet Control Message Protocol (ICMP).
In this case, the output shows the successful replies received from the IP address 64.78.193.84,along with the response time and time-to-live (TTL) value.
Ping is commonly used to troubleshoot network connectivity issues and measureround-trip times to a specific destination.
Learn more about utilities at:
https://brainly.com/question/30049978
#SPJ1
A Python Interpreter is (Check all that are true):
A program that executes a Python program one step at a time.
Just another name for any Python program in a .py file.
A program that can interpret what a Python snakes movements signify.
A program that computes the Pythagorean equation.
A Python Interpreter is: A. a program that executes a Python program one step at a time.
What is Python?Python can be defined as a high-level programming language that is designed and developed to build websites and software applications, especially through the use of dynamic commands (semantics) and data structures.
What is an interpreter?Interpreter can be defined as computer software programs that are designed and developed to translate (interpret) a programming language (code) into machine code, especially by interpreting only a single line of code at a time.
This ultimately implies that, an interpreter executes the instructions that are written in a programming language (code) one after the other (instruction by instruction), before it translate (interpret) the next line of code.
Read more on Python interpreter here: https://brainly.com/question/27996357
#SPJ1
Moral life is the keystore in any aspect of Human life existence - Explain the indeponders between moral life and its aplicability to the society and your profession
It is true to state that Moral life is a fundamental aspect of human existence that impacts both the individual and society as a whole.
What is the rationale for the above response?A strong moral code provides individuals with a sense of direction, purpose, and integrity.
In a broader sense, a society that values ethical behavior and moral principles is more likely to thrive and achieve its objectives. In a professional context, a moral life is crucial for building trust, cultivating relationships, and establishing credibility.
Professionals who exhibit moral behavior and adhere to ethical standards are more likely to succeed in their careers and contribute positively to their communities. Thus, moral life is critical to the well-being of individuals, society, and professional success.
Learn more about Moral life:
https://brainly.com/question/496848
#SPJ1
Write a printAllBooks function to display the contents of your library. This function should:
Have two parameters in this order:
array books: array of Bookobjects.
int: number of books in the array (Note: this value might be less than the capacity of 50 books)
This function does notreturn anything
If the number of books is 0 or less than 0, print "No books are stored"
Otherwise, print "Here is a list of books" and then each book in a new line
Answer:
void printAllBooks(Book [] listOfBooks, int numberOfBooks){
bool flag = false;
if(numberOfBooks == 0){
cout<< "No books are stored";
} else{
cout<< "Here is a list of the books \n";
for (int i =0; i < numberOfBooks; ++i){
cout<< listOfBooks[i];
}
}
}
Explanation:
The void keyword in the "printAllBooks" function is used for a function that has no return statement. The function accepts two parameters, "listOfBooks" which is the array of book objects, and "numberOfBooks" which is the size of the array of objects. The function uses a for loop statement to print out the book in the array if the numberOfBooks variable is greater than zero.
WILL GIVE BRAINIEST! Your users are young children learning their arithmetic facts. The program will give them a choice of practicing adding or multiplying. You will use two lists of numbers. numA = [4, 1, 6, 10, 2, 3, 7, 9, 11, 12, 5, 8]. numB = [2, 12, 10, 11, 1, 3, 7, 9, 4, 8, 5, 6]. If the user chooses adding, you will ask them to add the first number from each list. Tell them if they are right or wrong. If they are wrong, tell them the correct answer. Then ask them to add the second number in each list and so on. If the user chooses multiplying, then do similar steps but with multiplying. Whichever operation the user chooses, they will answer 12 questions. Write your program and test it on a sibling, friend, or fellow student.
In python:
numA = [4, 1, 6, 10, 2, 3, 7, 9, 11, 12, 5, 8]
numB = [2, 12, 10, 11, 1, 3, 7, 9, 4, 8, 5, 6]
while True:
i = 0
userChoice = input("Adding or Multiplying? (a/m) ")
if userChoice == "a":
while i < len(numA):
answer = int(input("What is {} + {} ".format(numA[i],numB[i])))
if answer == numA[i] + numB[i]:
print("Correct!")
else:
print("That's incorrect. The right answer is {}".format(numA[i] + numB[i]))
i += 1
elif userChoice == "m":
while i < len(numA):
answer = int(input("What is {} * {} ".format(numA[i], numB[i])))
if answer == numA[i] * numB[i]:
print("Correct!")
else:
print("that's incorrect. The right answer is {}".format(numA[i] * numB[i]))
i += 1
The program will give them a choice of practicing adding or multiplying is true.
What is computer program?Computer program is defined as a series of instructions written in a programming language that a computer may follow. Computers can obey a set of instructions created through coding. Programmers can create programs, including websites and apps, by coding.
Python says:
numA = [4, 1, 6, 10, 2, 3, 7, 9, 11, 12, 5, 8]
numB = [2, 12, 10, 11, 1, 3, 7, 9, 4, 8, 5, 6]
though True:
I = 0
input("Adding or Multiplying? (a/m)") userChoice
when userChoice equals "a"
even when I = len(numA):
What is input("What is + ".format(numA[i],numB[i]))? answer = int
if response == numA[i] + numB[i]:
print("Correct! ")
else:
print( "That is untrue. The appropriate response is "Formatted as (numA[i] + numB[i])
I += 1
if userChoice == "m," then
even when I = len(numA):
answer = int("What is *? ".format(numA[i], numB[i]))
if the response equals numA[i] + numB[i]:
print("Correct! ")
else
print( "that is untrue. The appropriate response is ".format(numB * numA[i]
I += 1
Thus, the program will give them a choice of practicing adding or multiplying is true.
To learn more about program, refer to the link below:
https://brainly.com/question/11023419
#SPJ3
What is the difference between Mac, PC, Tablets, and Cell Phones?
Answer:
In the strictest definition, a Mac is a PC because PC stands for personal computer. However, in everyday use, the term PC typically refers to a computer running the Windows operating system, not the operating system made by Apple.
Explanation:
Hope this helps !!
What are the cons of using keyboard shortcuts?
Answer:
Mistakes can easily occur while using them.
Software that functions as an electronic version of a filing cabinet?
Answer: There are a lot of choices
Explanation: do you want a database? You can obtain a terabyte or even larger size thumb drive or USB drive
Do want a print server? a networked drive specific for your data and if you have to print out anything
Do you want a connected drive to send all your documents to with organized folders? any size drive will work for this they come all prices
Enter the electronic filing system, sometimes called document management software. These computerized filing systems provide electronic file management. In other words, they give us a simple way to store, organize, and retrieve digital files and digital documents and pdfs.
https://www.filecenter.com/info-electronic-filing-system.html here is some good software
Write a program called DeliveryCharges for the package delivery service in Exercise 4. The program should again use an array that holds the 10 zip codes of areas to which the company makes deliveries. Create a parallel array containing 10 delivery charges that differ for each zip code. Prompt a user to enter a zip code, and then display either a message indicating the price of delivery to that zip code or a message indicating that the company does not deliver to the requested zip code.
Answer:
zip_codes = ["11111", "22222", "33333", "44444", "55555", "66666", "77777", "88888", "99999", "00000"]
charges = [3.2, 4, 1.95, 5.7, 4.3, 2.5, 3.8, 5.1, 6.6, 7.3]
deliver = False
index = -1
zip_code = input("Enter the zip code: ")
for i in range(len(zip_codes)):
if zip_code == zip_codes[i]:
deliver = True
index = i
break
if deliver:
print("The charge of delivery to " + zip_codes[index] + " is $" + str(charges[index]))
else:
print("There is no delivery to " + zip_code)
Explanation:
*The code is in Python.
Initialize the zip_codes array with 10 zip codes
Initialize the charges array with 10 corresponding values
Initialize the deliver as False, this will be used to check if the zip code is in the zip_codes
Initialize the index, this will be used if the zip code is a valid one, we will store its index
Ask the user to enter the zip_code
Create a for loop that iterates the length of the zip_codes array. Inside the loop:
Check if the zip_code is equal to the any of the items in the zip_codes. If it is, set the deliver as True, set the index as i, and break
When the loop is done, check the deliver. If it is True, then print the charge of the delivery. Otherwise, print that there is no delivery to that zip code
How many rows of data are returned after executing the following statement?
SELECT DEPT_ID, SUM(SALARY) FROM EMP
GROUP BY DEPT_ID HAVING SUM(NVL(SALARY,100)) > 400;
Assume the EMP table has ten rows and each contains a SALARY value of 100, except for one, which has a null value in the SALARY field. The first and second five rows have DEPT_ID values of 10 and 20, respectively.
2 rows of data are returned after executing the following statement.
Two groups are created based on their common DEPT_ID values. The group with DEPT_ID values of 10 consists of five rows with
SALARY values of 100 in each of them. Therefore the SUM(NVL(SALARY,100)) function returns 500 for this group and it satisfies the
HAVING SUM(SALARY) > 400 clause. The group with DEPT_ID values of 20 has four rows with SALARY values of 100 and one row with
a null SALARY SUM(NVL(SALARY,100)) returns 500 and this group satisfies the HAVING clause. Therefore two rows are returned.
Learn more about Rows:
brainly.com/question/30256801
#SPJ4
The Greater Than sign (>) is an example of
operator.
Answer:
logical
Explanation:
the greater than sign (>) is an example of logical operator.
A > sign asks if the first value is greater than the second value. That is, is the value or expression to the left of the > sign greater than the value or expression to the right side? For example, the statement (A > B) is true if A is greater than B
https://brainly.in/question/6901230