Answer:
//program_start
//variable_inicialization
books = 0
maps = 0
magazines = 0
//End variable_inicialization
//operation_selection_routine
display "Select operation: (I) for input item to stock, (O) for output items in stock
operation = read_keyboard_input
IF (operation = "I")
goto input_routine
ELSE IF (operation = "O")
goto output_routine
ELSE
display "Incorrect option, try again"
goto operation_selection_routine
ENDIF
//End operation_selection_routine
//input_routine
display "Insert item code to add to stock"
input_code = read_keyboard_input
IF (input_code >= 1000 & input_code < 2000)
IF (input_code NOT duplicated_in_stock)
add_to_stock (input_code)
books = books + 1
display "Book added"
ELSE
display "Item Code is already present in stock"
ENDIF
ELSE IF (input_code >= 2000 & input_code < 3000)
IF (input_code NOT duplicated_in_stock)
add_to_stock (input_code)
maps = maps + 1
display "Map added"
ELSE
display "Item Code is already present in stock"
ENDIF
ELSE IF (input_code >= 3000 & input_code < 4000)
IF (input_code NOT duplicated_in_stock)
add_to_stock (input_code)
magazines = magazines + 1
display "Magazine added"
ELSE
display "Item Code is already present in stock"
ENDIF
ELSE IF (input_code = 9999)
goto program_end
ELSE
display "Incorrect option, try again"
goto input_routine
ENDIF
goto operation_selection_routine
//End input_routine
//output_routine
display "Items in stock"
display "Number of books: " + books
display "Number of maps: " + maps
display "Number of magazines: " + magazines
goto operation_selection_routine
//End output_routine
//program_end
display "Terminating stock program"
stop_program
Explanation:
Pseudo code is a way to design an algorithm using normal words and terms, that are not specific to any programming language. It is easier to understand how the program works and once finished, can be translated to the desired programming language.
This algorithm uses 5 blocks of code:
*variable_inicialization, where item counters are initially set to zero.
*operation_selection_routine, where the program request user input to select if the user will add an item or show existing items in stock. If an incorrect option is given, it will repeat this same routine.
*input_routine, the program will request the four digit code to add, and will check if it is not already present (to avoid duplicated items), and if the item code belongs to a book, map or magazine, increasing the corresponding item counter. Also, if the code is 9999 it will go to the program_end routine, otherwise it will display an error message and request a new item code. After a valid item code it will return to the operation_selection_routine.
*output_routine, it will display on screen the number of items for each category. Then, returns to the operation_selection_routine.
*program_end, it will simply display a goodbye message and terminate the program.
What are some of the ways we can resolve IPv4 address shortages? Check all that apply.
Answer:
I am not as close to the network as I used to be but I have not seen articles about the network apocalypse due to IPv4 address depletion. Unlike in the late 90’s when predictions of apocalypse were everywhere.
What happened?
Two things:
Network address translation (NAT) was introduced to allow organizations to use private addresses on their internal network and minimize the requirement for “real” IP4 addresses.
Second, IPv6 was created and introduced to expand the number of addresses available.
So, a direct answer is use IPv6 and/or NAT for internal networks.
Explanation:
. Write an interrupt driven program that uses Port H pin 0 to detect an interrupt and multiply PORTB by 2 if the interrupt request is generated. IRQ should be asserted at falling edge. Write main program as well as ISR.
Write a class called Dragon. A Dragon should have a name, a level, and a boolean variable, canBreatheFire, indicating whether or not the dragon can breathe fire. The class should have getter methods for all of these variables- getName, getLevel, and isFireBreather, respectively. Dragon will alsomeed a constructor, a method to gain experience, and a method to attack. The constructor should take the name as the first argument and the level as the second argument. The constructor should initialize canBreatheFire based on the dragon's level. If the dragon is level 70 or higher, the dragon can breathe fire (meaning the third member variable should be set to true). You should create three getter (accessor) methods called getNameO getLevelO,and isFireBreatherO You should also create a method called attackO. This method does not return anything. If the dragon can breathe fire, it should print >>>999 1 public class Dragon private String name; private int level; private boolean canBreatheFire; 4 7 // Write the constructor here! public String getName(name) 9 10 return name; 12 13 14 - 15 public int getLevel(level) return level; 16 17 /Put getters here 18 19 20 21 221/ String representation of the object 23 24 - 25 26 27 3 28 // Put other methods here public String toStringO return "Dragon+ name +" is at level "+ level; 1 public class DragonTester extends ConsoleProgram 2 4 6 public void runCO // Start here! 7
Answer:
public class Dragon {
private String name;
private int level;
private boolean canBreatheFire;
public Dragon(String name,int level){
this.name=name;
this.level=level;
if(level>=70) {
this.canBreatheFire=true;
}
}
public String getName() {
return name;
}
public int getLevel() {
return level;
}
public boolean getCanBreatheFire() {
return canBreatheFire;
}
public void attack() {
if(getCanBreatheFire()) {
System.out.println(">>> 999");
}else {
System.out.println("Dragon does not have fire breath.");
}
}
public void gainExperience() {
level += 5;
}
public String toString() {
return "Dragon "+ name + " is at level "+ level;
}
Explanation:
The Java program above is a class called Dragon. An object instance of the dragon class has a name and level class variable. The level is used to determine the Boolean value of the canBreathFire class variable. The variables can be retrieved with the getter methods and the level updates by the experience method.
Dynamic programming does not work if the subproblems: ___________
a. Share resources and thus are not independent
b. Cannot be divided in half
c. Overlap
d. Have to be divided too many times to fit into memory
Answer:
A. Share resources and thus are not independent
Explanation:
This would be the answer. If this is wrong plz let me know
I need help with this its due today ahhhhhhh
3rd and 4th sentence
1st question just take a hint
What are the correct steps to add the bill using the receipt capture feature in quick books online?
Answer:
How it Works
The Bill can be imported into QuickBooks in a verity of methods such as drag and drop, browse to upload, email and image upload from a mobile device. The imported data is processed by QuickBooks. In my testing this processing varied depending on the type of document sent but overall, the process was fast, and the Bill was ready to view and categorized within five minutes. There were several pieces of data already extracted from the document which were the data and dollar amount but all other details in my experience needed to be entered.
One thing to not is you can not expense by line items at this time. Instead you can only choose one expenses account per transaction. (if I were a betting girl, I would say this is in the works, but I have no official word on that) However, you can add Classes and Billable Customers.
How to Get Started:
1) From the QBO Navigation Bar choose Banking Center
2) Select the Receipts tab
3) Drag and drop, email or upload a mobile image of the document to QuickBooks (1 file at a time)
4) From the For Review section of the Receipts tab you can see when the document is ready for review
5) QuickBooks extracts, data including date and dollar amount
6) Click on Review in the Action column
7) Select Bill as Document Type (as shown highlighted in the 'red box')
8) Enter the remaining details:
- Enter Payee
- Approve Bill date and enter due date
- Select Account
- Verify amount total
- Additional Fields (optional)
- Make expenses billable
- Select Customer
- Class
- Add reference number
9) Import into QuickBooks by Saving and Closing
Within, seconds your document is coded and published into QuickBooks as an Open Bill pending payment. Like I said for now all you can add is an account but if you published the document to QBO you could later open it and edit to add required items if necessary.
The last step in optimization is after you have posted the payment to the open bill you will be able to match the bank feeds in QBO if you have already imported your banking activity. This type of audit proofing your bookkeeping helps prevent fraud and assures accuracy.
Hope this helps!! Merry Christmas!! And Happy New Year!!
Is there anything you should be doing and / or do better at home to make sure your computer is always clean and running efficiently?
Answer:
Using the proper computer equipment and regularly performing a few small maintenance activities will help to keep your computer running smoothly and efficiently.
Organize your installation disks
Protect Your Computer Equipment from Power Surges. ...
Defragment Your Hard Drive. ...
Check Your Hard Disk for Errors. ...
Backup Your Data.
Update everything
Clean up your software.
Run antivirus and spyware scans regularly.
Explanation:
How would you create a 2D array of Strings called paintSwatches that holds the paint manufacturer, paint color name and the paint collection name (in that order) for each of the 60,000 paint swatches a store carries
Answer:
String[][] paintSwatches = new String[6000][3];
Explanation:
The two-dimensional array is a data structure that holds and locates data in rows and columns. It is denoted by two square brackets after the data type when declaring the array.
The two-dimensional array "paintSwatches" would have 6000 rows and one column each of paint manufacturer, paint color name and paint collection name (that is, 3 columns).
You are reviewing the output of the show interfaces command for the Gi0/1 interface on a switch. You notice a significant number of CRC errors displayed. What are the most likely causes
Answer:
Collision or electromagnetic interference (EMI)
Explanation:
Some network cables connected to switch or router ports are prone to internal collision (between two frames or packets) and external collision with electromagnetic waves from other sources (EMI).
Electromagnetic waves are also known as radio waves or signals. When they are transmitted, the network cable acts as a receiver, the received signal interferes with the packet in the cable. This is why the cyclic redundancy check (CRC) throws an error.
why media is far from government
Answer:
An independent media means that no one should control and influence its coverage of news. Media is far from independent, this is because of control of government over them. Government prevents some news items, scenes from a movie, or lyrics of songs from being shared with larger public, this is called as censorship.
hope it helps
pls mark as brainliest.....
Users access servers located on a server VLAN and servers located in departmental VLANs. Users are located in the departmental VLAN. What is the expected traffic flow from users to servers
Answer:
Most of the traffic will have to be multilayer switched.
Explanation:
This is often referred to when a layer 3 switch is seen to add tons of flexibility to a network. As seen in in the above VLAN connection, it serves as a switch to connect devices found on same subnet a lightning speed and are seen also to posses IP routing intelligence which is seen as a doubling up built in it which serves as a router. It seen in most cases to support routing protocools, inspect incoming packages and most times checking sources and destination addresses which are been worked with.
This finding maximum number function will keep on going until we reach at the last value
[12, 18, 299, 38, 999, 89, 101, 500, 801, 45]
I need help with completing this python code.Complete the Car class by creating an attribute purchase_price (type int) and the method print_info() that outputs the car's information.Ex: If the input is:2011180002018where 2011 is the car's model year, 18000 is the purchase price, and 2018 is the current year, then print_info() outputs:Car's information: Model year: 2011 Purchase price: 18000 Current value: 5770Note: print_info() should use three spaces for indentation.class Car:def __init__(self):self.model_year = 0# TODO: Declare purchase_price attributeself.current_value = 0def calc_current_value(self, current_year):depreciation_rate = 0.15# Car depreciation formulacar_age = current_year - self.model_yearself.current_value = round(self.purchase_price * (1 - depreciation_rate) ** car_age)# TODO: Define print_info() method to output model_year, purchase_price, and current_valueif __name__ == "__main__":year = int(input())price = int(input())current_year = int(input())my_car = Car()my_car.model_year = yearmy_car.purchase_price = pricemy_car.calc_current_value(current_year)my_car.print_info()
Answer:
class Car:
def __init__(self):
self.model_year = 0
# TODO: Declare purchase_price attribute
self.purchase_price = 0
self.current_value = 0
def calc_current_value(self, current_year):
depreciation_rate = 0.15
# Car depreciation formula
car_age = current_year - self.model_year
self.current_value = round(self.purchase_price * (1 - depreciation_rate) ** car_age)
# TODO: Define print_info() method to output model_year, purchase_price, and current_value
def print_info(self):
print("Model year: ",self.model_year)
print("Purchase year: ",self.purchase_price)
print("Current value: ",self.current_value)
def main():
year = int(input())
price = int(input())
current_year = int(input())
my_car = Car()
my_car.model_year = year
my_car.purchase_price = price
my_car.calc_current_value(current_year)
my_car.print_info()
if __name__ == "__main__":
main()
Explanation:
The Car class in the python program is used to create a car object instance with class methods model_year, purchase_price, and calc_current_value, which accepts as arguments, year, price and current_year respectively. The main function runs if only the python module is run and interpreted to print out the year and current price of a car object instance defined.
Write a program that reads 20 integers from the user into an array and uses a function arrayMinimum that accepts an integer array along with its size as parameters and returns the smallest element of the array. The program needs to output the result (the smallest array element).
Answer:
#include <iostream>
using namespace std;
int arrayMinimum(int myArray[], int myArraySize) {
int small = myArray[0];
for (int i = 0; i < myArraySize; i++) {
if(myArray[i]<small){
small = myArray[i];
}
}
return small;
}
int main(){
int myArray[20];
for(int i =0;i<20;i++){
cin>>myArray[i];
}
cout<<"The smallest is: "<<arrayMinimum (myArray,20);
return 0;
}
Explanation:
This solution is provided in c++
#include <iostream>
using namespace std;
This line defines the arrayMinimum function
int arrayMinimum(int myArray[], int myArraySize) {
This initializes the smallest of the array element to the first
int small = myArray[0];
This iterates through the array
for (int i = 0; i < myArraySize; i++) {
This if condition checks for the smallest
if(myArray[i]<small){
The smallest is assigned to the small variable
small = myArray[i];
}
}
This returns the smallest
return small;
}
The main method begins here
int main(){
This declares an array of 20 elements
int myArray[20];
The following iteration allows user input into the array
for(int i =0;i<20;i++){
cin>>myArray[i];
}
This calls the method and returns the minimum
cout<<"The smallest is: "<<arrayMinimum (myArray,20);
return 0;
}
Draw the tree that results when you add the values 10, 20, 30, 40, 50, 60, 70, 80, 90, 100 to each of the following initially empty trees Binary search tree 2-3 tree 2-4 tree Red-black tree
Answer:
What exactly are you asking?
Explanation:
Please don't report me, I'll edit my answer once I know the question
We see that the black height of a node is the number of black nodes on the path from the node to the root of the tree.
What is a Binary search tree?The B\\binary search tree is described as rooted binary tree data structure with the key of each internal node being greater than all the keys in the respective node's left subtree and less than the ones in its right subtree.
A unique variety of self-balancing binary search tree is the red-black tree has the following characteristics:
Any node's left subtree is shorter than the node itself.Any node's right subtree is bigger than the node itself.Each and every node has the same black height.
Binary search tree for 2-3 tree: is shown below:
10
/ \
20 40
/ \ / \
30 50 60 70
Binary search tree for 2-4 tree is shown below:
30
/ \
20 50
/ \ / \
10 40 60 70
/ \ / \ / \
80 90 100
Binary search tree for Red-black tree:
20(R)
/ \
/ \
10(B) 30(R)
/ \ / \
40(B) 60(B) 70(B)
/ \ / \ / \
80(B) 90(B) 100(B)
Learn more about Binary search tree at:
https://brainly.com/question/30391092
#SPJ2
Emma wants an artificial intelligence system with limited information on botony to identify a type of plant from an image. which challenge of artificial intelligence is Emma likely to face in the situation . Emma is likely to face the challenge of *blank* complexity
Answer:
It focuses on one task and has no self awareness
In a gig setting (ie low light), the ISO should be set......?
Describe the user interface in other high-technology devices commonly found in the home or office, such as a smartphone, HD television, fitness watch, or microwave oven. Pick one specific device and discuss how well its interface is designed and how easy it is to use. Does the device use the same techniques as computer system interfaces, such as menus and icons
Answer:
Explanation:
Different technologies use different user interface designs in order to make the user experience as easy and intuitive as possible. This varies drastically from one device to another because of the capabilities and size of each device. If we take a fitness/smart watch into consideration, this device does not use pop up menus or side scrolling menus but instead uses large full screen menus where each option nearly fills the entire screen. That is done because the smart watch screens are very small and making everything full screen makes reading and swiping through options that much easier for the user. If the user interface were the same as in a television or smartphone it would be impossible to navigate through the different options on such a tiny screen.
What is a feature of Print Preview
Answer:
It shows you how the paper would look as if u printed it.
Explanation:
Answer:
is a functionality that lets users see the pages that are about to print.
Explanation:
allowing the users to see exactly how the pages will look when they are printed.
A serial schedule A. Is just theoretical and cannot be implemented in real life B. Needs the current Xact to finish before another one starts C. Is always sorted sequentially in ascending order by transaction ID D. Can have a dirty read anomaly
Answer: B. Needs the current Xact to finish before another one starts.
Explanation:
A serial schedule is a schedule whereby for a transaction to start, one must be completed first. The transactions are done one after the other.
In this case, when the cycle of a transaction have been completed, then the next transaction can begin. Therefore, the answer will be option B "needs the current Xact to finish before another one starts".
Write a function that reads from a file the name and the weight of each person in pounds and calculates the equivalent weight in kilograms. Output the Name, weightLB, and weightKG in that order. Format your output to two decimal places. (1 kilogram
Answer:
#include <iostream>
#include <fstream>
#include <iomanip>
using namespace std;
int main(){
string name;
double weightKg, weightPd;
cout<< fixed << setprecision(2);
fstream myFile("filename.txt");
while (getline( myFlie, name, weightPd)){
weightKg = weight * 0.453592;
cout<< name << weightPd <<weightKg;
}
myFile.close();
}
Explanation:
The C++ source code reads in the content of a file that has a name and weight value in pounds and outputs the name, weight in pounds and the weight in kilograms.
During execution of main(), how many user-defined methods are called? a) public static double calcTax(double cost) { return cost * 0.15; } b) public static double calcShippingCost(double weight) { double cost; if(weight < 10) { cost = 10.0; }else{ cost = 15.5; } cost = cost + calcTax(cost); return cost; } c) public static void main(String args[]) { double cost1; double cost2; cost1 = calcShippingCost(7.5); cost2 = calcShippingCost(17.5); }
Answer:
b) public static double calcShippingCost(double weight) { double cost; if(weight < 10) { cost = 10.0; }else{ cost = 15.5; } cost = cost + calcTax(cost); return cost; }
The method is called twice with arguments 7.5 and 17.5 respectively.
Explanation:
The Java program defines three user methods including the main. In the main, the calShippingCost method is called twice with 7.5 and 17.5 respectively to return double number values to cost1 and cost2.
the best presentations try to include as much text as possible on each slide true or false
What is an OS? Explain the objectives of an OS.
Answer:
operating systems is a group of computer programs that is responsible for the management and coordination of activities and the sharing of the resources of that computer.
objective
1 to make the computer system convenient and easy to use for the user.
2 to use the computer hardware is a efficient way by handling the details of the operations of the hardware
All of the following are standards that enable programs to receive data from and display data to a variety of mobile and desktop devices except ________. Group of answer choices CSS 3 html5 javascript SOA AOL
Answer:
AOL
Explanation:
Some of the standards that enable programs to receive data from and display data to a variety of mobile and desktop devices includes;
I. CSS 3: it is a framework used for providing various styles used in web design.
II. HTML 5: this is a hypertext markup language used for creating web pages or website.
III. Javascript: it is a software framework that allows software components to send and receive data through a database.
IV. Service oriented architecture (SOA): this is an architectural pattern which allows various software application components to provide specific services to other applications through a network.
All of the following standards listed above enable programs to receive data from and display data to a variety of mobile and desktop devices except AOL. AOL is an acronym for American Online and it is typically used for providing internet connection through a dial-up.
All of the following are standards that enable programs to receive data from and display data to a variety of mobile and desktop devices except AOL.
The following information should be considered:
AOL means America Online .CSS3 is Cascading Style Sheet this standard represent the look and formatting of a document HTML5 is markup language .Javascript is Scripting language for WWW .SOA is Service Oriented Architecture this is type of standards provide service to the application component via communication protocol in network.Learn more: brainly.com/question/17429689
james creates a piece of artwork that consists of circles and squares. he carefully avoids using random shapes that do not fit into the design. what is james trying to achieve? a. dominance b. harmony c. gradation d. placement e. contrast
Answer:
ITS B
Explanation:
i just know
Imagine that you are preparing a multimedia presentation. What are the four things you need to consider when getting started?
Answer:
I need to consider my topic, my audience, the purpose of my presentation, and my method for giving it.
Explanation:
This is the sample response
The things you should consider when making a multimedia presentation are a text, images, audio, video, and animation.
What is a multimedia presentation?A multimedia instructional message is a presentation of words and images that are intended to promote meaningful learning. Multimedia displays facilitate faster greedy of ideas and concepts than what simple oratory reasons can hope to achieve.
As a result, multimedia-based completely coaching reduces the cost of training sessions while improving the overall quality of such classes.
Multimedia is prevalent in our lives today because when we connect and communicate with more than one medium, we use multiple of our senses. The use of a variety of creative or communicative media such as this facilitates making an idea or presentation sparkle and exciting, as well as providing more insight.
Therefore, When creating a multimedia presentation, you should consider the text, images, audio, video, and animation.
To learn more about the multimedia presentation, refer to the below link:
https://brainly.com/question/27800459
#SPJ2
PLEASE FASTTTTT
Which reasons explain why computer programmers use IDEs? Select all that apply.
An IDE provides an integrated work environment for the programmer.
An IDE writes the code for the programmer.
An IDE helps programmers automate repetitive tasks.
An IDE helps link code.
Answer:
Integrated work and repetitive tasks
Answer:
A C D
Explanation:
You plan on taking a five-part exam, each part worth 50 points. The maximum
score is measured in the
A. ones
B. tens
C. hundreds D. thousands
Answer:
okk I will do
Explanation:
mark me as brainliest and follow and like my answer
For two arrays A and B that are already in ascending order, write a program to mingle them into a new array ordered C evenly, the size of C is varied, depending on the values of A and B: the even-indexed (the index starts from 0) elements come from A while odd-indexed elements are from B. For instance, if A is (1,4, 10,12): B is 12.3,10, 11) then the new array C is (1, 2,4,10,12). If a black-box test approach will be used, how many test cases should you design?
Answer:
def generate_list(listA, listB):
listC = []
for item in listA[0::2]:
listC.append(item)
for items in listB[1::2]:
listC.append(items)
return sorted(listC)
Explanation:
The python program defines a function called generate_list that accepts two list arguments. The return list is the combined list values of both input lists with the even index value from the first list and the odd index value from the second list.