A class-scope variable hidden by a block-scope variable can be accessed by preceding the variable name with the class name followed by:
1. ::
2. :
3. .
4. ->

Answers

Answer 1

The class name followed by:: can be used to access a class-scope variable that is hidden by a block-scope variable.

What is meant by class scope variable ?

A variable's scope can be categorized into one of three categories: 1) Class level scope (instance variables): All methods in a class have access to any variable declared within that class. It may occasionally be accessed outside the class depending on its access modifier (public or private).

The namespace where a class is declared is its scope. The class is global if it is declared in the global namespace. Every translation unit that makes use of ODR must specify the class.

Variables in Java are only used within the region in which they were created. Scope is what this is.

To learn more about class scope variable refer to :

https://brainly.com/question/19592071

#SPJ4


Related Questions


which type of network cable is commonly used to connect office computers to the local network
a. coaxial Cable
b. glass fiber-optic cable
c. plastic fiber optic cable
d. twisted pair cable

Answers

Answer: Twisted pair cable

Explanation:

Twisted pair cabling simply refers to a wiring whereby two conductors that are gotten from a single circuit will be twisted together so that their electromagnetic compatibility can be enhanced.

This type of network cable is commonly used to connect office computers to the local network and it is used for Ethernet networks. A circuit is formed from the pair of wires which can be used in the transmission of data.

Answer:

I think the answer is B.

Explanation:

What can a user modify on a business card using the Edit Business Card dialog box? Check all that apply.
card dimensions
layout
image
O
font
background color
O sharing mode

Answers

Answer:

layout,image,font,background color,

Explanation: i just did it on edge

Answer:

B C D E

Explanation:

Please Help I'm Very Stressed, my school is holding a competition of making the best video game and the winner gets 1000$ and I really want 1000$, the problem is that I can't make any good games or don't have any ideas for anything the game has to have lore and a plot and characters and it's really stressing so please help me get a idea or something easy enough to make

Answers

Answer:

make a game like fun run

Explanation:

Answer:

u should make an competive game where people battle each other sorry if i cant spell good its cause im rushing

Explanation:

Differentiate the first five generations of computers using the table below
YEAR
CIRCUITRY MEMORY SIZE
HEAT
PROGRAMMING
DISSIPATION LANGUAGE

Answers

The first generation of computers used vacuum tubes, while the fifth generation relies on machine learning and artificial intelligence.

What are computers?

Computers are defined as a software that can store, retrieve, and process data. At least one digital processor is used in modern computer systems.

Vacuum tube-based first-generation computers (1942–1954). Transistor-based second generation computers were used from 1955 to 1964. Integrated circuit-based computers of the third generation were used from 1965 to 1974. Since 1975, the fourth generation of computers have used VLSI microprocessors. Fifth generation still under development.

Thus, the first generation of computers used vacuum tubes, while the fifth generation relies on machine learning and artificial intelligence.

To learn more about computers, refer to the link below:

https://brainly.com/question/21080395

#SPJ1

Purchase a PC
This exercise can be done in class and allows the Instructor to walk through the process of deciding on which equipment to purchase from an online vendor for personal use or professional use.
You can visit the site here: Configurator
Create a Word Document and Answer the following:
1. Why choose the accessories?
2. What is RAM and explain in general terms what the different types are (DDR3, DDR4)?
3. Why does some RAM have DDR4-3200? What does the 3200 mean?
4. What is the difference between Storage devices like SSD and HDD?
5. Why choose an expensive Video card (GPU)?
6. What are the general differences between i3, i5, i7, i9 processors?
7. What is the difference in Audio formats like 2.1, 5.1, 7.1, Atmos, and so on? What is the .1?

Answers

1. Choosing accessories depends on the specific needs and requirements of the individual or the purpose of use. Accessories enhance functionality, improve performance, and provide additional features that complement the main equipment.

They can optimize user experience, improve productivity, or cater to specific tasks or preferences.

2. RAM stands for Random Access Memory, a type of computer memory used for temporary data storage and quick access by the processor. DDR3 and DDR4 are different generations or versions of RAM. DDR (Double Data Rate) indicates the type of synchronous dynamic random-access memory (SDRAM). DDR4 is a newer and faster version compared to DDR3, offering improved performance and efficiency.

3. DDR4-3200 refers to the speed or frequency of the RAM. In this case, 3200 represents the data transfer rate of the RAM module in mega transfers per second (MT/s). Higher numbers, such as DDR4-3200, indicate faster RAM with higher bandwidth and improved performance than lower-frequency RAM modules.

4. SSD (Solid-State Drive) and HDD (Hard Disk Drive) are both storage devices but differ in technology and performance. HDDs use spinning magnetic disks to store data, while SSDs use flash memory chips. SSDs are generally faster, more durable, and consume less power than HDDs. However, SSDs are typically more expensive per unit of storage compared to HDDs.

5. Expensive video cards, also known as graphics processing units (GPUs), offer higher performance, better graphics rendering capabilities, and improved gaming experiences. They can handle demanding tasks such as high-resolution gaming, video editing, 3D modeling, and other graphically intensive applications. Expensive GPUs often have more advanced features, higher memory capacities, and faster processing speeds, allowing for smoother gameplay and better visual quality.

6. i3, i5, i7, and i9 are processor models from Intel. Generally, i3 processors are entry-level and offer basic performance for everyday tasks. i5 processors provide a good balance between performance and affordability and are suitable for most users. i7 processors offer higher performance and are better suited for demanding tasks such as gaming and multimedia editing. i9 processors are the most powerful and feature-rich, designed for professional users and enthusiasts who require top-tier performance for resource-intensive applications.

7. Audio formats like 2.1, 5.1, 7.1, and Atmos refer to the configuration of speakers and audio channels in a surround sound system. The number before the dot represents the number of prominent speakers (left, right, center, surround) in the system, while the number after the dot represents the number of subwoofers for low-frequency sounds. For example, 2.1 indicates two main speakers and one subwoofer, 5.1 refers to five main speakers and one subwoofer, and so on. Atmos is an immersive audio format that adds height or overhead channels to create a more

To know more about RAM:

https://brainly.com/question/31089400

#SPJ1

e requirements of Phase 3 are as follows:

In this third phase, you will be obtaining the case, power supply, and monitor for your computer. You will also include a printer.
Case:
Analyze the specifications for the case. Discuss what stood out to you about your choice. For example, "Why did you choose this specific component?" What stood out to you (price, specifications, etc.)?
What are the specifications, source, and price of the case? How did each of these components influence your decision to select it?
Power Supply:
Analyze the specifications for the power supply. Discuss what stood out to you about your choice. For example, "Why did you choose this specific component?" What stood out to you (price, specifications, etc.)?
What are the specifications, source, and price of the power supply? How did each of these components influence your decision to select it?
Monitor:
Analyze the specifications for the monitor. Discuss what stood out to you about your choice. For example, "Why did you choose this specific component?" What stood out to you (price, specifications, etc.)?
What are the specifications, source, and price of the monitor? How did each of these components influence your decision to select it?
Printer:
Analyze the specifications for the printer. Discuss what stood out to you about your choice. For example, "Why did you choose this specific component?" What stood out to you (price, specifications, etc.)?
What are the specifications, source, and price of the printer? How did each of these components influence your decision to select it?
References:
List references used.
References should relate to decision-making articles in addition to a website where one could purchase the product.
All references must be in APA format.
Any images used must be cited properly.
Format:
APA formatted cover page as well as the entirety of the document.
Paragraphs are coherently organized, including the use of proper grammar and correct spelling.
Clearly organized using graphics and tables (where appropriate).
Acronyms are spelled out on first use.

Answers

Because this is a research that should b carried out, I will guide you on how to do same. Pay attention to the requirement on APA Formatting.

How can the above research be executed?

In order to make an informed decision on each component, it is imperative that you conduct thorough research on their specifications, source and price.

Reliable sources of information such as reputable tech review websites should be utilized in the comparison of features and prices for each option available.

Proper citation using APA format will need to be observed together with inclusion of any images used. Organizing your document with clear and coherent structure will further enhance readability- utilizing tables and graphics where applicable.

Learn more about APA Formatting:

https://brainly.com/question/12548905
#SPJ1

What are some ways you can work with templates? Check all that apply.
A. creating a new template from scratch
B. scanning a template from a printed page
C. using many different templates in one document
D. using a preexisting template
E. modifying a preexisting template

Answers

What are some ways you can work with templates? Check all that apply.

Answer: (A,D,E) see picture below for help also.
What are some ways you can work with templates? Check all that apply.A. creating a new template from

Answer:

Look at the other answer that guy knows what he is talking about

Explanation:

7. A puzzle game featuring falling bricks which need to be3 organized on the screen describes which of the following very popular games from the 80s?
a) Tricks
b) Tetris
c) Sonics
d) Bricks

Answers

Answer:

Tetris

Explanation:

2) Using two statements, create an object bestDessertPlace, followed by an object bestIndianFood.


3)Given the code below, how many objects are created?
Restaurant bestIndianFood = new Restaurant();
Restaurant bestSushi = new Restaurant();
Restaurant bestCoffeeShop = new Restaurant();
int newRating;

4) Object bestSushi is of type Restaurant. Type a statement that sets bestSushi's name to "Sushi Station".

5) Type a statement to print bestCoffeeShop's name and rating.

Answers

Answer:

Explanation:

The following code is written in Java and assumes that the available main class is the Restaurant class and that the other objects are all from the Restaurant class or a subclass of it.

2)  Restaurant bestdessertplace = new Restaurant();

    Restaurant bestindianfood = new Restaurant();

3) This snippet of code creates 3 individual objects which are bestIndianFood, bestSushi,  bestCoffeeShop.

4) bestSushi.name = "Sushi Station";

5) System.out.println(bestCoffeeShop.name + " " + bestCoffeeShop.rating);

HELP ME OUT PLEASE!!

Industry standards are the agreed-upon rules, specifications, and guidelines followed by the members of an industry.

True False​

Answers

The statement "Industry standards are the agreed-upon rules, specifications, and guidelines followed by the members of an industry" is true.

What are industry standards?

An industry is a collection of profitable businesses or organizations that produce or provide products, services, or sources of income. Primary, secondary, tertiary, and quaternary industries are separated into four groups in economics; secondary industries are further split into heavy and light industries.

Part specifications that are required in some businesses are known as industry standards. Components governed by a standards body are known as industry-standard parts.

Therefore, the statement is true.

To learn more about industry standards, refer to the link:

https://brainly.com/question/1538175

#SPJ1

I keep getting an index out of range error on this lab

I keep getting an index out of range error on this lab
I keep getting an index out of range error on this lab
I keep getting an index out of range error on this lab

Answers

The Python code for parsing food data is given. This code first reads the name of the text file from the user. Then, it opens the text file and reads each line.

How to depict the code

Python

import io

import sys

def parse_food_data(file_name):

 """Parses food data from a text file.

 Args:

   file_name: The name of the text file containing the food data.

 Returns:

   A list of dictionaries, where each dictionary contains the following information about a food item:

     * name: The name of the food item.

     * category: The category of the food item.

     * description: A description of the food item.

     * availability: Whether the food item is available.

 """

 with io.open(file_name, 'r', encoding='utf-8') as f:

   food_data = []

   for line in f:

     data = line.strip().split('\t')

     food_data.append({

       'name': data[0],

       'category': data[1],

       'description': data[2],

       'availability': data[3] == '1',

     })

   return food_data

if __name__ == '__main__':

 file_name = sys.argv[1]

 food_data = parse_food_data(file_name)

 for food in food_data:

   print('{name} ({category}) -- {description}'.format(**food))

This code first reads the name of the text file from the user. Then, it opens the text file and reads each line. For each line, it splits the line into a list of strings, using the tab character as the delimiter. It then creates a dictionary for each food item, and adds the following information to the dictionary:

Learn more about code on

https://brainly.com/question/26497128

#SPJ1

NEED HELP! FAST PLS!
6.1.2 Ball and Paddle (Java Script)
Please write out all the code if possible.

NEED HELP! FAST PLS! 6.1.2 Ball and Paddle (Java Script)Please write out all the code if possible.

Answers

In Line 2, the syntax for creating a new circle is incorrect. It should be Circle ball = new Circle(BALL_RADIUS);.

How to explain the information

Line 3: It appears you are trying to set the position of the ball. However, the correct method should be ball.setPosition(getWidth() / 2, getHeight() / 2);.

Line 4: It's important to make sure to add the ball to the appropriate container or display.

Line 7: The syntax for creating a new rectangle is incorrect. It should be Rectangle paddle = new Rectangle(PADDLE_WIDTH, PADDLE_HEIGHT);.

Line 8: The position of the paddle is set incorrectly. It should be paddle.setPosition(getWidth() / 2 - paddle.getWidth() / 2, getHeight() - paddle.getHeight() - PADDLE_OFFSET);.

Learn more about syntax on

https://brainly.com/question/831003

#SPJ1

Networks and the interconnectivity of media have affected our society in that:
A. information is hard to get and has not been democratized.
B. countries have shifted away from a global economy.
C. ideas and information are shared quickly and easily.
O
D. the quantity of media now loses out to quality.

Answers

Ideas and information are shared quickly and easily

Answer:

C. Ideas and information are shared quickly and easily

Explanation:

1. What do you understand by the term Integrated Circuit? ». Describe the following widely used IC's: (i) Logic Gate IC (ii) Timer IC (iii) Operational Amplifier . State three (2) Advantages and two (2) Disadvantages of Integrated Circuit. 1. Design a logic circuit that has three inputs A, B and C, and whose output will be high only when a majority of the inputs is high Show that: (i) A+ A' B = A + B (ii) (A + B) (A + B) = A​

Answers

An integrated circuit (IC) is a miniaturized electronic circuit consisting of transistors, resistors, capacitors, and other components connected together to perform a specific function.

What is electronic circuit?

An electronic circuit is an interconnected network of electronic components, such as resistors, transistors, capacitors, inductors and diodes, that allows the flow of electrical current. These components are connected together with conductive wires, which allow the electrical energy to be transferred from one component to another.

(i) Logic Gate IC: A logic gate IC is an integrated circuit that performs logical operations.

(ii) Timer IC: A timer IC is an integrated circuit that provides digital timing signals for the control of electronic devices.

(iii) Operational Amplifier: An operational amplifier (op amp) is an integrated circuit that amplifies electrical signals.

Advantages of Integrated Circuits: Small size and low cost: Integrated circuits can pack a large number of components into a small space, resulting in lower costs, Improved performance.

To learn more about electronic circuit

https://brainly.com/question/24167692

#SPJ1

The best way to share criticism is to ______. a. write it in the break room b. talk it about with all your coworkers c. talk about it privately d. discuss it at meetings

Answers

Answer:

C.

Explanation:

Answer:

The correct answer is C. hope this helps

Explanation:

I also got a %100 one the test so its right.

Match the cell reference to its definition,
absolute reference
The cell has combination of two other types
of cell references.
relative reference
The cell remains constant when copied or
moved.
mixed reference
The cell changes based on the position of
rows and columns

Match the cell reference to its definition,absolute referenceThe cell has combination of two other typesof

Answers

Answer:

Absolute reference- the cell remains constant when copied or moved

Relative reference- the cell changes based on the position of rows and columns

Mixed references- the cell has combination of two other types of cell references

Explanation:

A company that wants to send data over the Internet has asked you to write a program that will encrypt it so that it may be transmitted more securely. All the data is transmitted as four-digit integers. Your app should read a four-digit integer entered by the user and encrypt it as follows: Replace each digit with the result of adding 7 to the digit and getting the remainder after dividing the new value by 10. Then swap the first digit with the third, and swap the second digit with the fourth. Then display the encrypted integer. Write a separate app that inputs an encrypted four-digit integer and decrypts it (by reversing the encryption scheme) to form the original number. Use the format specifier D4 to display the encrypted value in case the number starts with a 0

Answers

Answer:

The output of the code:

Enter a 4 digit integer : 1 2 3 4

The decrypted number is : 0 1 8 9

The original number is : 1 2 3 4

Explanation:

Okay, the code will be written in Java(programming language) and the file must be saved as "Encryption.java."

Here is the code, you can just copy and paste the code;

import java.util.Scanner;

public class Encryption {

public static String encrypt(String number) {

int arr[] = new int[4];

for(int i=0;i<4;i++) {

char ch = number.charAt(i);

arr[i] = Character.getNumericValue(ch);

}

for(int i=0;i<4;i++) {

int temp = arr[i] ;

temp += 7 ;

temp = temp % 10 ;

arr[i] = temp ;

}

int temp = arr[0];

arr[0] = arr[2];

arr[2]= temp ;

temp = arr[1];

arr[1] =arr[3];

arr[3] = temp ;

int newNumber = 0 ;

for(int i=0;i<4;i++)

newNumber = newNumber * 10 + arr[i];

String output = Integer.toString(newNumber);

if(arr[0]==0)

output = "0"+output;

return output;

}

public static String decrypt(String number) {

int arr[] = new int[4];

for(int i=0;i<4;i++) {

char ch = number.charAt(i);

arr[i] = Character.getNumericValue(ch);

}

int temp = arr[0];

arr[0]=arr[2];

arr[2]=temp;

temp = arr[1];

arr[1]=arr[3];

arr[3]=temp;

for(int i=0;i<4;i++) {

int digit = arr[i];

switch(digit) {

case 0:

arr[i] = 3;

break;

case 1:

arr[i] = 4;

break;

case 2:

arr[i] = 5;

break;

case 3:

arr[i] = 6;

break;

case 4:

arr[i] = 7;

break;

case 5:

arr[i] = 8;

break;

case 6:

arr[i] = 9;

break;

case 7:

arr[i] = 0;

break;

case 8:

arr[i] = 1;

break;

case 9:

arr[i] = 2;

break;

}

}

int newNumber = 0 ;

for(int i=0;i<4;i++)

newNumber = newNumber * 10 + arr[i];

String output = Integer.toString(newNumber);

if(arr[0]==0)

output = "0"+output;

return output;

}

public static void main(String[] args) {

Scanner sc = new Scanner(System.in);

System.out.print("Enter a 4 digit integer:");

String number = sc.nextLine();

String encryptedNumber = encrypt(number);

System.out.println("The decrypted number is:"+encryptedNumber);

System.out.println("The original number is:"+decrypt(encryptedNumber));

}

}

Press the
What are the two main parts to any VR experience?
A prototypes
B
screens
C code
D
hardware
E software

Answers

The two main parts to any VR experience are:

SoftwareHardware

What hardware is used for virtual reality?

There are different kinds of hardware. A common method to make or create any form of a realistic 3D depiction of a virtual world is to use a small computer monitor in front of all of the human eye.

Note that all the monitor shows is the perspective that is said to be matching or corresponding  eye would be able to see in an actual environment.

Note that that kind of system is said to be called a binocular head-mounted display (HMD).

Therefore, based on the above, one can say that the two main parts to any VR experience are:

SoftwareHardware

Learn more about VR experience from

https://brainly.com/question/28224061
#SPJ1

IN python

Write a main function that asks the user to enter a series of numbers on the same line. The
function should store the numbers in a list and then display the lowest, highest, total, and average
of the numbers in the list in addition to the list of numbers above the average.
The program should have the following functions:
• A function that takes a list of numbers and returns the lowest number in the list.
• A function that takes a list of numbers and returns the highest number in the list.
• A function that takes a list of numbers and returns sum of the numbers in the list.
• A function that takes a list of numbers and returns the average of the numbers in the list.
• A function that takes a list of numbers and returns a list of numbers above the average.


Here is a sample run:
Enter numbers on the same line
10 23 45 71 8 13 99 5 2 88
Low: 2.0
High: 99.0
Total: 364.0
Average: 36.4
Above Average: [45.0, 71.0, 99.0, 88.0]

iN python

Answers

Using the knowledge of the computational language in python it is possible to write a code that write a main function that asks the user to enter a series of numbers on the same line.

Writting the code:

def minimum(a):

   low = a[0]

   for i in range(1,n):

       if a[i] <= low:

           low = a[i]

   return low

def maximum(a):

   high = a[0]

   for i in range(1,n):

       if a[i] >= high:

           high = a[i]

   return high

def total(a):

   tot = 0

   for i in range(0,n):

       tot += a[i]

   return tot

def average(a):

   total = 0

   for i in range(0,n):

       total += a[i]

   return total/n

   

def above_average(a):

   total = 0

   for i in range(0,n):

       total += a[i]

       

   average = total/n

   above_avg = []

   for i in range(0,n):

       if a[i] > average:

           above_avg.append(float(a[i]))

       

   return above_avg

if __name__ == "__main__":

   print ('Enter numbers on the same line')

   a = list(map(int,input().split()))

   n = len(a)

   

   print("Low: {0:.1f}".format(minimum(a)))

   print("High: {0:.1f}".format(maximum(a)))

   print("Total: {0:.1f}".format(total(a)))

   print("Average: {0:.1f}".format(average(a)))

   print("Above Average:",above_average(a))

See more about python at brainly.com/question/18502436

#SPJ1

IN pythonWrite a main function that asks the user to enter a series of numbers on the same line. The

I need help with Pearson Python coding Unit 8, Lesson 10 - the objectGame.py portfolio. I can't get the script to run properly even coping directly from the lesson.

Answers

Without more information about the specific error message and the context in which the code is being run, it is difficult to say for sure what the problem might be.

However, here are a few things that you can try to troubleshoot the issue:

Make sure that you have the correct version of Python installed on your computer. The script may be written in a version of Python that is not compatible with the version you have installed.

Check for any syntax errors in your code. Make sure that all of the syntax is correct and that there are no missing or extra characters.

Verify that you have all of the necessary libraries and modules imported at the beginning of your script. Make sure that you have imported the specific modules and libraries that are used in the script.

What is Python coding?

In regards to your coding issue, these also can help:

Make sure that you have saved the script with the correct file extension, such as .py, and that it is located in the correct directory.

Try running the script in a different environment or editor, such as IDLE or Anaconda, to see if the problem is specific to the environment you are currently using.

Make sure that you have the correct permissions to run the script.

Check the script for any missing or misnamed variables that might cause errors.

Check the script for any missing or misnamed functions that might cause errors.

It's also helpful to have a look at the script and compare it to the one on the lesson, this way you can spot any differences and correct them accordingly.

Therefore, If the problem persists, you may want to reach out to your instructor or seek help from a tutor for further assistance.

Learn more about Python coding from

https://brainly.com/question/26497128

#SPJ1

Assume the variable s is a String and index is an int. Write an if-else statement that assigns 100 to index if the value of s would come between "mortgage" and "mortuary" in the dictionary. Otherwise, assign 0 to index.

Answers

Using the knowledge in computational language in python it is possible to write a code that Assume the variable s is a String and index is an int.

Writting the code:

Assume the variable s is a String

and index is an int

an if-else statement that assigns 100 to index

if the value of s would come between "mortgage" and "mortuary" in the dictionary

Otherwise, assign 0 to index

is

if(s.compareTo("mortgage")>0 && s.compareTo("mortuary")<0)

{

   index = 100;

}

else

{

   index = 0;

}

See more about JAVA at brainly.com/question/12975450

#SPJ1

Assume the variable s is a String and index is an int. Write an if-else statement that assigns 100 to

Imagine you have just learned a new and more effective way to complete a task at home or work. Now, you must teach this technique to a friend or coworker, but that person is resistant to learning a new way of doing things. Explain how you would convince them to practice agility and embrace this new, more effective method.

Answers

if a person is resistant to learning a new way of doing things, one can  practice agility by

Do Implement the changeMake a dialogue with one's Unconscious. Free you mind to learn.

How can a person practice agility?

A person can be able to improve in their agility by carrying out some   agility tests as well as the act of incorporating any form of  specific drills into their workouts.

An example, is the act of  cutting drilling, agility ladder drills, and others,

A  training that tends to help in the area of agility are any form of exercises  such as sideways shuffles, skipping, and others.

Therefore,  if a person is resistant to learning a new way of doing things, one can  practice agility by

Do Implement the changeMake a dialogue with one's Unconscious. Free you mind to learn.

Learn more about agility from

https://brainly.com/question/15762653
#SPJ1

Kyla has composed a draft of her term paper using Microsoft Word. She now wants to revise the paper. Which tool can she use to store the
document with a different name and makes changes in the new document?
O A. Download
OB. Save As
O C. Save
OD. Export

Answers

A tool which Kyla can use to store the document with a different name and makes changes in the new document is: B. Save As.

What is a document?

A document simply refers to a computer resource that is designed and developed to enable end users to easily store data as a single unit on a computer storage device.

Generally speaking, all computer documents can be identified by a title (name), date modified, size, and type such as the following;

SystemTextAudioImageVideoWhat is the Save as command?

A Save as command can be defined as a type of command associated with the file menu of a software application or document and it causes a copy of the current file to be created and stored to a different location, file name, and/or file type.

In this context, we can reasonably infer and logically deduce that Kyla  should save the document by using the "Save as" command.

Read more on Save as command here: https://brainly.com/question/16852455

#SPJ1

Please write in python:

Week 1 (Print menu and take a selection)

At program start, you will print a menu with the contents of your vending machine.

Customize your own vending machine with items of your interest

Your vending machine should have at least 5 items

Accept items to be purchased, or until a sentinel value is entered.

Print the selected item after each selection.

Week 2 (Take many selections, calculate total, and accept payment)

Extend your code to allow users to repeatedly select items for purchase and keep a running subtotal

Your menu should contain a sentinel value for the user to select checkout as an option to finish shopping.

Check that the selection entered is an option of the menu. If not, then print an error message and start over requesting a new selection or to quit.

Calculate amount due with subtotal + sales tax (for your state).

Accept payment in whole dollars

Following the deposit (payment), calculate change due (difference between payment and amount due)

Week 3 (Dispense change)

Extend your code to determine the dollars and coins to be dispensed from the change due or as a refund. This calculation will depend on the payment accepted. For example, if the user selected items totaling $10.35 and they only deposit $7.00, they have provided insufficient payment.

Check that the payment received is greater than or equal to the amount due. If the payment is less than the amount due, then print an error message and prompt the user to enter sufficient funds. If the payment is equal to the amount due, then print a message saying “No change due.”

Print the number of dollars and coins to be dispensed and their denominations.

Week 4 (Incorporating functions)

Extend your code to include the following functions,

print_menu(): non-value returning function to print out the menu at the start of the program and after each item for purchase is chosen. This menu should contain a sentinel for the user to checkout when the user is finished selecting items.

calculate_total(new_item): a value returning function to add up the cost of the item selected.

make_change(change_due): (previous lab assignment): Calculate the users change (“Here is your change: “) in dollars and coins and print a closing message (“Have a great day”).

amount_due(total_price): a value returning function that prints a subtotal and final total that includes sales tax (for your state) added to the total. This function will also require the user to input a whole dollar amount for payment and return the amount of change due and should prompt the user to retry if too little cash is paid.Write a program that reads a list of integers into a list as long as the integers are greater than zero, then output the smallest and largest integers in the list.

Answers

Week 1:

print("1. Skittles    2. M&M's\n3. Starbursts   4. Twizzlers\n5. Twix")

while True:

   item = input("Enter the number of your item to be purchased: ")

   if item == "1":

       print("You chose skittles.")

   elif item == "2":

       print("You chose M&M's.")

   elif item == "3":

       print("You chose Starbursts.")

   elif item == "4":

       print("You chose Twizzlers.")

   elif item == "5":

       print("You chose Twix.")

Week 2:

print("1. Skittles    2. M&M's\n3. Starbursts   4. Twizzlers\n5. Twix")

total = 0

while True:

   item = input("Enter the number of your item to be purchased: ")

   if item == "1":

       print("You chose skittles.")

       total += 2

   elif item == "2":

       print("You chose M&M's.")

       total += 2

   elif item == "3":

       print("You chose Starbursts.")

       total += 1

   elif item == "4":

       print("You chose Twizzlers.")

       total += 3

   elif item == "5":

       print("You chose Twix.")

       total += 4

   elif item == "exit":

       exit()

   elif item == "out":

       total += round(total*0.0625,2)

       print("Your total is: ${}".format(total))

       deposit = int(input("How much money did you input? "))

       change_due = round(deposit - total,2)

       print("Your change due is ${}".format(change_due))

   else:

       print("Please choose an option or enter \"exit\" to exit the vending machine.")

week 3:

print("1. Skittles    2. M&M's\n3. Starbursts   4. Twizzlers\n5. Twix")

total = 0

while True:

   item = input("Enter the number of your item to be purchased: ")

   if item == "1":

       print("You chose skittles.")

       total += 2

   elif item == "2":

       print("You chose M&M's.")

       total += 2

   elif item == "3":

       print("You chose Starbursts.")

       total += 1

   elif item == "4":

       print("You chose Twizzlers.")

       total += 3

   elif item == "5":

       print("You chose Twix.")

       total += 4

   elif item == "exit":

       exit()

   elif item == "out":

       total += round(total * 0.0625, 2)

       print("Your total is: ${}".format(total))

       deposit = int(input("How much money did you input? "))

       while deposit < total:

           deposit = int(

               input("Please input a dollar amount greater than or equal to the total (whole numbers only): "))

       change_due = round(deposit - total, 2)

       if change_due == 0:

           print("No change due.")

       else:

           print("You are owed {} dollars and {} cents".format(int(change_due), round(change_due - int(change_due),2)))

   else:

       print("Please choose an option or enter \"exit\" to exit the vending machine.")

week 4:

def print_menu():

   print("1. Skittles    2. M&M's\n3. Starbursts   4. Twizzlers\n5. Twix    Enter \"out\" to checkout.")

def calculate_total(new_item):

   total = 0

   if new_item == "1":

       print("You chose skittles.")

       total += 2

   elif new_item == "2":

       print("You chose M&M's.")

       total += 2

   elif new_item == "3":

       print("You chose Starbursts.")

       total += 1

   elif new_item == "4":

       print("You chose Twizzlers.")

       total += 3

   elif new_item == "5":

       print("You chose Twix.")

       total += 4

   return total

def make_change(change_due):

   print(

       "Here is your change: {} dollars and {} cents".format(int(change_due), round(int(change_due) - change_due, 2)))

   print("Have a great day")

def amount_due(total_price):

   sales_tax = 0.0625

   final_price = total_price * +(total_price * sales_tax)

   print("Subtotal: {}".format(total_price))

   print("Final total: {}".format(final_price))

   deposit = int(input("Enter how much you deposited: "))

   while deposit < final_price:

       deposit = int(input("Enter an amount greater than or equal to {}".format(final_price)))

   make_change(deposit - final_price)

total = 0

while True:

   item = input("Enter the number of your item to be purchased: ")

   if item == "1":

       print("You chose skittles.")

       total += 2

   elif item == "2":

       print("You chose M&M's.")

       total += 2

   elif item == "3":

       print("You chose Starbursts.")

       total += 1

   elif item == "4":

       print("You chose Twizzlers.")

       total += 3

   elif item == "5":

       print("You chose Twix.")

       total += 4

   elif item == "exit":

       exit()

   elif item == "out":

       sales_tax = 0.0625

       total += round(total * sales_tax, 2)

       print("Your total is: ${}".format(total))

       deposit = int(input("How much money did you input? "))

       while deposit < total:

           deposit = int(

               input("Please input a dollar amount greater than or equal to the total (whole numbers only): "))

       change_due = round(deposit - total, 2)

       if change_due == 0:

           print("No change due.")

       else:

           print(

               "You are owed {} dollars and {} cents".format(int(change_due), round(change_due - int(change_due), 2)))

   else:

       print("Please choose an option or enter \"exit\" to exit the vending machine.")

I didn't implement the functions because the problem never stated that we had to. Best of luck.

Which will you see on the next line 9, 2, 3.5, 7]

Answers

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

When searching for image files by typing house in the Search bar, the result will show all image files in what?
A) file name only
B) tag only
C) both file name and tag
D) either file name or tag

Answers

The answer may vary depending on the specific search settings and file organization system being used, but the correct answer is D) either file name or tag.

How to explain

However, typically when searching for image files by typing "house" in the Search bar, the result will show image files that match the search term in either the file name or the tag.

This means that the search results could include image files with "house" in their file names or images that have been tagged with the term "house." Therefore, the correct answer is D) either file name or tag.

Read more about image files here:

https://brainly.com/question/31635598

#SPJ1

where do you think data mining by companies will take us in the coming years

Answers

In the near future, the practice of companies engaging in data mining is expected to greatly influence diverse  facets of our daily existence.

What is data mining

There are several possible paths that data mining could lead us towards.

Businesses will sustain their use of data excavation techniques to obtain knowledge about each individual customer, leading to personalization and customization. This data will be utilized to tailor products, services, and advertising strategies to suit distinctive tastes and requirements.

Enhanced Decision-Making: Through the use of data mining, companies can gain valuable perspectives that enable them to make more knowledgeable decisions.

Learn more about data mining from

https://brainly.com/question/2596411

#SPJ1

What is the difference between Information Technology and Communication Technology?​

Answers

Answer:

Explanation:

information tech is technology that teaches you information, and communication tech is tech that lets you talk to family and friends and meet new people.

Answer:

The main difference between information technology and communication technology is that Information technology is a subject that is use of computers to store, retrieve, transmit and manipulate data, or information, often in the context of business or other enterpise whereas a Communication technology is the use of computers to communicate with family and friends.

When the function below is called with 1 dependent and $400 as grossPay, what value is returned?

double computeWithholding (int dependents, double grossPay)

{
double withheldAmount;
if (dependents > 2)
withheldAmount = 0.15;
else if (dependents == 2)
withheldAmount = 0.18;
else if (dependnets == 1)
withheldAmount = 0.2;
else // no dependents
withheldAmount = 0.28;
withheldAmount = grossPay * withheldAmount;
return (withheldAmount);
}

a. 60.0
b. 80.0
c. 720.0
d. None of these

Answers

Answer:

b. 80.0

Explanation:

Given

\(dependent = 1\)

\(grossPay = \$400\)

Required

Determine the returned value

The following condition is true for: dependent = 1

else if (dependnets == 1)

withheldAmount = 0.2;

The returned value is calculated as:

\(withheldAmount = grossPay * withheldAmount;\)

This gives:

\(withheldAmount = 400 * 0.2\)

\(withheldAmount = 80.0\)

Hence, the returned value is 80.0

How to code for a database?​

Answers

Answer: How to code for a database?​ A database is an organized collection of data, generally stored and accessed electronically from a computer system. Where databases are more complex they are often developed using formal design and modeling techniques.

WWW. Wikipedia.com

Explanation: When creating a database first you need to make a software program then you need to start planing on what to do ...

{ A database management program (DBMS) is a software package design designed to manipulate, define, retrieve, and manage data in database.

A DBMS generally manipulates the data itself, the the data format, field names, record structure and file structure.}

HoPe ThIs HeLpS YoU!!

Other Questions
What's the theme in the Mr.Fox Fairytale? C 18F P Cr Fe Ga Se 81 Kr Sr 9m Tc 1331 19Hg 2011 Carbon-11 Fluorine-18 Phosphorus-32 Chromium-51 Iron-59 Gallium-67 Selenium-75 Krypton-81m Strontium-81 Technetium-99m Iodine-131 Mercury-197 Tha The first psychology laboratory was founded by Wolfgang Kohler true or false What is the theme of Edwards' message to his congregation? Some hormones are soluble in water, while others are not. Cortisol is a steroid hormone. Lutenizing hormone (LH) is a glycoprotein. Epinephrine is an amine (modified amino acid). Which of these hormones can cross the plasma membrane to interact with intracellular receptors maggie stacked some cubes as shown below. how many cubes are not visible The Declaration of Independence: What does this quote mean? "He has constrained our fellow Citizens taken Captive on the high seas to bear Arms against their country, executriers of their friends and Brethren, or to fail themselves by their hands." 20>5 + 2n - 9Plz help me with this What volume of 0. 256 m sodium bromide contains 18. 7 grams of sodium bromide?. Read the following excerpt from Herman Melville's Moby-D!%, in which Captain Ahab sits alone in the cabin of his ship and broods: They think me mad Starbuck does; but I'm demoniac, I am madness maddened! That wild madness that's only calm to comprehend itself! The prophecy was that I should be dismembered; and Aye! I lost this leg. I now prophesy that I will dismember my dismemberer.What trait of Gothic literature does this passage have in common with Edgar Allan Poe's "The Raven"?A. A setting that is dark and forebodingB. A preoccupation with fate and destinyC. An exploration of humanity's dark sideD. An unreliable perspective on events why did marian anderson perform at the lincoln memorial instead of in the constitution hall? true or False: Abraham Lincoln was assassinated only five days after the Civil War ended. Please answer I need it asap. Please solve if you can! An air track cart of mass 152 g travels in the +x-direction at a speed of 1. 4 m/s with a second cart of mass 296 g traveling in the opposite direction at 0. 3 m/s. Find the area of the blue shaded portion. Miguel ofers to sell Nisha 100 laptops at $50 each. Nisha ponders over the offer but mails her acceptabnce that evening to Miguel. Before her acceptance reaches Miguel, Mignuel finds another buyer who is willing to pay $70.00 each for the laptops. Miguel sends a revocation mail the next day to cancel his intiial offer to to Nisha, but a storm has hit the city causing the mail services to halt temporariily. Which of the following satements is true about this situation? A) as per the miror image rule, Nisha cannot sue Miguel for revoking his initial offer b) Miguel can use the doctrine of the promissory estoppel to defend his right to find and sell his laptops to another buyer c) As per the mailbox rule, Miguel cannot revolke his initial offer to Nisha as she had accepted his offer d) Nisha cannot sue Miguel as the deposited asseptance does not create a binding contract despite Miguel's revocation. e) Nisha cannot sue Miguel as the storm prevents Miguel from mailing his revocation. today you turned on your computer after being on vacation for a week. you see spinning white dots on a black screen. you decide that an update might be installing, so you allow the computer to work for approximately 20 minutes. after 20 minutes, you turn off your computer and then restart it, and it fails two more times. choose the tool you would use to help repair your computer system. The total cost, c, of buying Mickey Mouse Ears, where m is amount of ears bought and 1 magnet, is given by the formula c = 22m + 8. Which equation is equivalent to this formula when solved for m? *1 pointm = (c - 8)/22m = (c+ 8)/22m = c/22- 8m = c What characteristics of the Mississippi River make it important to national trade? Select three options.It is used for business and tourism.It supplies water to nearby communities.It is a migration route for many forms of wildlife.It serves as a sewage system for nearby communities.It flows through the United States to the Gulf of Mexico. What is the rule for the equation below?