in all our examples of recursive thinking, the series of recursive calls eventually reached a call that did not involve further recursion that is, it reached a .

Answers

Answer 1

A recursion will continue to make recursive calls indefinitely if it never hits a base case, and the program will never come to an end. This is referred to as infinite recursion, and it is typically not recommended.

A program with infinite recursion won't typically run forever in most programming environments. Recursion allows us to imagine both our own and other people's thoughts. Memory is allocated for a called function on top of memory allocated to the calling function, and a new copy of local variables is created for each function call. It also endows us with the capacity for mental "time travel," which allows us to bring past or hypothetically future experiences into the present.

Learn more about recursion here-

https://brainly.com/question/20749341

#SPJ4


Related Questions

verilog code with comments for the 2:4 binary decoder, the 4:2 binary encoder, and the 4:2 prior- ity encoder. do not use behavioral verilog for these descriptions! use the structural and dataflow concepts introduced in the previous lab.

Answers

The Verilog code is /* 4 to 2 priority encoder */

Data flow description is given below:

module two_four_decoder (

input wire [1:0] w, input wire En, output wire [3:0] y);\\input output declaration

assign y[0]= (En & (~w[1] & ~w[0]));\\y0=1 when w1 and w0 are 00;

assign y[1]= (En & (~w[1] & w[0]));\\y1=1 when w1 and w0 are 01

assign y[2]= (En & (w[1] & ~w[0]));\\y2=1 when w1 and w0 are 10

assign y[3]= (En & (w[1] & w[0]));\\y3=1 when w1 and w0 are 11

endmodule

/* 4 to 2 encoder*/

module four_two_encoder(input wire [3:0] w, output wire [1:0] y, output wire zero);

assign y[1]=w[3] | w[2];

assign y[0]=w[3] | w[1];

assign zero= w[3] | w[2] | w[1] | w[0];

endmodule

/* 4 to 2 priority encoder */

module priority_encoder(input wire [3:0] w, output wire [1:0] y, output wire zero);

assign y[1]=w[3] | w[2];

assign y[0]=w[3] | (~w[2] & w[1]);

assign zero= w[3] | w[2] | w[1] | w[0];

endmodule

Learn more about Verilog code here:

https://brainly.com/question/15119491

#SPJ4

suppose that a 64-bit processor uses the following cache: 2kb block size, 16-way associativity, and total size of 32mb. determine how many bits are used for the tag, index, and block offset.

Answers

We are aware that 64 KB equals 64K words, or 2 to the power of 14 words (2 to the power of 1 word = 2 to the power of 14 blocks).

Each block has 32 bits of data, a 32-14-2 bit tag, and a valid bit. Therefore, for a 64-KB cache, the overall cache size is (2 to the power 14)*49=784 bits, or 98KB. Since there are 64 bytes per line and a cache line's size equals a main memory block's size, the block offset is 6 bits. Associative 2-way cache stores two lines as a single set. The remaining 18 bits for the tag are calculated as follows: number of sets = total cache lines/2 = (512KB/64)/2 = 212, translating to 12 bits for the set.

Learn more about block here-

https://brainly.com/question/17354891

#SPJ4

in this lab, your task is to: implement your physical security plan by dragging the correct items from the shelf onto the various locations in the building. as you drag the items from the shelf, the possible drop locations are highlighted. to implement your plan, you must:

Answers

The protection measures for an installation or facility are specified in a physical security plan. we will be able to recognize the significance of each component of a physical security plan in defending DOD assets by the end of this short.

Physical security relates to preventing theft, vandalism, natural disasters, man-made disasters, and accidental damage to construction sites, equipment, and the data and software included therein (e.g., from electrical surges, extreme temperatures, and spilled coffee). Access control, surveillance, and testing make up the three key parts of the physical security system. The degree to which each of these elements is implemented, enhanced, and maintained can frequently be used to measure the effectiveness of a physical security program for an organization.

Learn more about Security here-

https://brainly.com/question/28070333

#SPJ4

Which of the following is the most likely disadvantage caused by the inability to access the internet?

A. inability to access educational and other resources
B. inability to communicate with business partners
C. inability to apply for jobs that use online recruitment
D. inability to relate to others in a social network

Answers

The one that is the disadvantage caused by the inability to access the internet is inability to relate to others in a social network. The correct option is D.

What is social networks?

The use of world wide web social media sites to stay connected with family and friends, community, colleagues, or customers is referred to as social networking.

Through all the sites, online communication can serve a social, business, or both purposes.

The disadvantage caused by a lack of internet access is the inability to interact with others in a social network.

Thus, the correct option is D.

For more details regarding social network, visit:

https://brainly.com/question/14312767

#SPJ1

a customer needs to look up tips for proper machine use in the user guide for their product. they do not know where to find the user guide. where should you tell them to look?

Answers

A task-oriented document is a user manual or guide. It includes operating and maintenance instructions as well as technical descriptions, drawings, flowcharts, and diagrams.

Even though instructions on how to use or repair a product are documented, it might not always suit the intended purpose. A user handbook, often referred to as a user guide, is designed to help users use a specific good, service, or application. Typically, a technician, a product developer, or a member of the company's customer support team will write it. Because of this, nonvolatile memory—which retains its data even if a computer's power is switched off or a storage device is unplugged from a power source—is frequently employed in conjunction with RAM. Additionally, unlike some volatile memory, nonvolatile memory does not require periodic content refreshment.

Learn more about memory here-

https://brainly.com/question/28754403

#SPJ4

any computer that stores hypermedia documents and makes them available to other computers on the internet is called a . group of answer choices a. client b. server c. station d. domain

Answers

Option B is correct. A computer program or apparatus that offers a service to another computer program and its user, also known as the client, is referred to as a server.

The term "client" refers to any computer that keeps hypermedia documents and makes them accessible to other computers over the Internet. Anywhere in the world can be used to store hypermedia documents. The Advances Research Projects Agency Network is the owner of the Internet (ARPANET). The Domain Name System (DNS) protocol converts domain names to IP addresses when data is moved between networks. DNS servers are servers that run this protocol and keep a list of computer and website addresses as well as the IP addresses that go with them.

Learn more about documents here-

https://brainly.com/question/20696445

#SPJ4

what solutions will help slow or sluggish website and page loading performance? consent mode analytics 4 gtm template libraries universal analytics server side tagging tag assistant

Answers

The solutions will help slow or sluggish website and webpage loading performance include the following:

GTM Template Libraries Server Side Tagging Universal Analytics Go-ogle Analytics 4

What is a website?

A website is a collective name which connotes a series of webpages that are interconnected and linked together with the same domain name, so as to provide certain information to end users.

In Computer technology, Server Side Tagging is a solution that would help a website to improve its performance and the amount of time it takes to load. Other solutions that can help to better mitigate and reduce slow or sluggish website and webpage loading performance include the following:

Go-ogle Tag Manager (GTM) Template Libraries Universal Analytics Go-ogle Analytics 4

Read more on website here: https://brainly.com/question/15827053

#SPJ1

what are the three main steps that routers that use a distance vector routing protocol (e.g., rip) perform to keep their routing tables up-to-date?

Answers

A specified destination, a metric (the shortest distance to the destination), and the following hop on the shortest path from the current router to the destination are all included in each item in the table.

This is how distance vector routing operates. A routing table is kept by each router. A router is required by a distance-vector routing (DVR) protocol to periodically notify its neighbors of topological changes. The previous ARPANET routing method was known as (or known as Bellman-Ford algorithm). The Border Gateway Protocol is a distance-vector protocol created for wide area networks (WANs) (BGP). Since BGP is an external gateway protocol, border and exterior routers on the Internet use it. Through a Transmission Control Protocol (TCP) session, it communicates data between routers.

Learn more about protocol here-

https://brainly.com/question/27581708

#SPJ4

a level 1 security system is used to protect against unauthorized access. group of answer choices a. users' workstations b. back-end systems c. internal database servers d. front-end servers

Answers

Option D is correct. A software firewall is a software program that you install on your computer that protects your computer from unauthorized incoming and outgoing data.

A software firewall only protects the computer on which it is installed. Additionally, many antivirus scanners include a software firewall. Unauthorized use of computer data for personal gain. B. Transfer funds from someone else's account or debit purchases from someone else's account. Monitor and record keystrokes. It can be a software device or a hardware device. Network traffic capture and recording. "Unauthorized Access" means accessing, breaking into, communicating with, storing data, obtaining data, or otherwise intercepting and modifying computer resources without consent. These laws pertain to these and other actions that disrupt computers, systems, programs, or networks.

Learn more about network here-

https://brainly.com/question/15088389

#SPJ4

write a console-based application named sumdoubles that allows the user to enter any number of doubles continuously until the user enters 0.99. display the sum of the values entered, not including 0.99.

Answers

The program of console-based application will be:

public class sumdoubles {

public static void main(String[] args) {

Scanner input = new Scanner(System.in);

double num = 0.0;

double sum = 0.0;

while (num != 0.99) {

System.out.print("Enter a double value (0.99 to quit): ");

num = input.nextDouble();

if (num != 0.99)

sum += num;

}

System.out.println("Sum of values entered: " + sum);

}

}

What is console application?

A console application is a computer programme that is intended to be used through a text-only computer interface, such as a text terminal, some operating systems' command-line interface, or even the text-based interface it's included in most graphical user interface (GUI) operating systems, like the Windows Console in Microsoft Windows, the Terminal throughout macOS, and xterm in Unix.

To learn more about console application

https://brainly.com/question/27031409

#SPJ4

An image that looks pixelated is one with:

Question 10 options:

A) high resolution.


B) low resolution.


C) typical resolution.


D) rasterized resolution.

Answers

Answer:

B) low resolution.

Explanation:

Low resolution means few pixels. Then, pixels are relatively big, so you can see them.

a company is looking to lower its total cost of ownership (tco) by moving the file system used for its business-critical, linux-based applications to a managed file system in the cloud. which service meets their needs?

Answers

Any application required for business continuity is considered a business critical application.Normal business operations for the organization cannot continue if a business-critical application fails or is stopped.

Why Linux is popular in industries and in business application?

Because Linux is so adaptable and cost-free, businesses use it to run servers, appliances, cellphones, and more. Many people agree that Linux crashes less frequently than Windows.Additionally, updating the system is simpler than having to reset it, as is necessary in a Windows environment.This translates into higher productivity and system uptime. Mission-critical application examples differ amongst industries.An automatic vehicle location (AVL) app, for instance, would be mission-critical for an ambulance firm, but if a plumbing company utilizes the same software, it might be considered significant but not vital. Business Critical Services are those that must be restored first in the case of a disaster and include the elements indicated in the descriptions of the disaster recovery services in Section 5 of Exhibits A and F, where appropriate. How heavily an enterprise depends on an application is the first essential definition of a critical application.Critical apps are by definition distributed internationally, contain large data storage, versatile processing engines, and are tightly connected with other dependent application services. Linux is open-source and free.Developers and programmers can save money on software and licenses.Users can enable Windows apps to run on Linux by using open-source software like Wine.Wine is mainly used by gamers, however the Wine database also contains a sizable variety of productivity appsDue to its lower cost, adaptability, and other various advantages, Linux has recently risen to the top position as the preferred operating system for servers.Linux is used by a huge number of successful companies to keep their operations running efficiently and with little downtime. Because Linux is open-source and has the potential for a very small OS footprint, it might end up in a variety of linked devices, including our homes, cars, and places of business.There is a good likelihood that Linux will dominate the field of high-performance computing.

        To learn more about  business linux applications refer

        https://brainly.com/question/27937626

        #SPJ1

 

tonya needs to buy a new laptop. she compares models from apple, dell, and hewlett-packard on criteria such as processor speed, memory, screen size, and price. what type of consumer product does this represent?

Answers

The shopping product is the second category of consumer goods. Shopping products are those that a client typically compares while picking and buying based on factors like quality, price, and style.

The type of user and two main product categories are related in marketing. Consumer goods are goods bought by the final consumer. Business products (also known as industrial or B2B products) are things that businesses purchase to help create other goods that can be sold. A well defined target market, precise customer needs and wants, and information about what the product will be and do to meet those demands should all be included in the protocol. The protocol's shortcomings would cause issues with product development.

Learn more about product here-

https://brainly.com/question/22852400

#SPJ4

you have an azure subscription that includes a network security group named nsg1. you plan to add an inbound security rule named rule1 to nsg1. you need to configure a priority for rule1. rule1 must have the highest priority for inbound security rules in nsg1. which priority should you configure for rule1?

Answers

From the information given about Azure, you need to set the configuration for rule 1 to the highest priority for inbound security rules in NSG1.

What is Azure?

Microsoft Azure, sometimes known as Azure, is a cloud computing service provided by Microsoft that allows for application administration through Microsoft-managed data centers.

Microsoft Azure (previously Windows Azure) is the company's public cloud computing platform. It offers a wide range of cloud services, such as computation, analytics, storage, and networking.

It enables you to access and manage Microsoft cloud services and resources. These services and tools include storing and converting your data according to your needs.

The Azure Firewall has three different types of rules.

NAT RegulationsNetwork Regulations.Application Guidelines.

Your security group's incoming rule must allow traffic on all ports. This is required because the destination port number of any inbound return packets is set to a randomly assigned port number.

To establish an inbound security rule in Azure, follow these steps.

Choose a new network security group.From the left menu, choose Inbound security rules, then Add.You can restrict the Source and Source port ranges as desired, or leave them as is.You can specify a specific destination or leave the default of Any.

Learn more about Azure:
https://brainly.com/question/28813522
#SPJ1

given two integers as user inputs that represent the number of drinks to buy and the number of bottles to restock, create a vending machine object that performs the following operations: purchases input number of drinks restocks input number of bottles reports inventory

Answers

A vending machine object that performs the following operations: purchases input number of drinks restocks input number of bottles reports inventory is given below

The Program

public boolean removeItemType(int index)

 {

   if (index < 0)

   {

     return false;

 }

   else

   itemCount = index;

   index--;

  return true;

 }

 public boolean reStock(int which, int qty)

{

   if (index < 0)

   {

     return false;

 }

   else

     

  return true;

 }

public class ItemType

{

private String name;

 private double price;

 private int quantity;

 public ItemType(String n, int p)

 {

   this.quantity = 0;

   this.name = n;

   if (p <= 0){

     this.price = 5;

   }

   else{

     this.price = p;

   }

 }

 public String getName()

 {

   return this.name;      

 }

 public int getPrice()

 {

   return (int) this.price;      

 }

 public int getQuantity()

 {

   return this.quantity;

 }  

public int addQuantity(int n)

 {

   if (quantity <0) {

   return -9999;  

   }

   else{

     if (quantity + n <= 10)

       quantity += n;

    return quantity;

 }

 }

 public int getItem()

 {

   if (quantity < 1){

     return -9999;

   }

   else

     this.quantity --;

   return quantity;

   

 }

Read more about programming here:

https://brainly.com/question/23275071

#SPJ1

When computing a bootstrap confidence interval for a parameter, at least how many times should we re-sample from the original sample?.

Answers

Bootstrap - There is no definitive answer to this question, but a common rule of thumb is to resample at least 1000 times.

What is Bootstrap?
An HTML, CSS, and JS library called Bootstrap aims to make the creation of educational web pages as simple as possible (as opposed to web apps). The main goal of adding to a web project would be to apply the colour, size, font, and layout options of Bootstrap to that project. Therefore, the main determinant is whether the responsible developers like those options. All HTML components have basic style declarations once Bootstrap is introduced to a project. As a result, texts, tables, and form components appear consistently in all web browsers. In order to further personalise the appearance of their contents, developers can make use of the CSS classes defined in Bootstrap.

To learn more about Bootstrap
https://brainly.com/question/8908486
#SPJ4

consider a source and destination host. before packets leave the source host, the host needs to define the path over which the packets will travel to reach the destination host. false

Answers

Before packets leave the source host, the source host does not define the path over which the packets will be traveling to reach the destination host. Thus the given statement is false.

When packets are transmitted over the network from a source host to a destination host, the source host does not determine the path through which packets will travel toward the destination host from the source host. Instead, it is the router that defines the best path and directs the packets from the source host to the destination host.

What is a router?

A router is a network layer device that determines the optimal path along which packets are forwarded over the network. Based on network layer information, routers forward packets from one network to the other network.

You can learn more about routers at

https://brainly.com/question/28180161

#SPJ4

how is computer Science used in entretainment?​

Answers

Answer:

video editing

Explanation:

there are many ways

in c++ Write a program that will read in an array of 10 numbers. Have the program find the largest, the smallest, find the numbers above 0, find how many numbers = 0, or find the numbers less than 0.

Answers

Using the knowledge in computational language in C++ it is possible to write a code that have the program find the largest, the smallest, find the numbers above 0, find how many numbers = 0, or find the numbers less than 0.

Writting the code:

#include<stdio.h>

main()

{

int a[10],i,sum=0;

printf("enter array\n");

for(i=0;i<10;i++)

{

scanf("%d",&a[i]);

sum=sum+a[i];

}

printf("sum of array =%d",sum);

}

See more about C++ at  brainly.com/question/19705654

#SPJ1

A C++ program is one that is used to create high-performance programs. A program that will read an array of 10 numbers can be created by using a chart array.

What is a program?

A program is a specified set of codes that are used to run the computer. They are set instructions for the computer.

The C++ program is;

#include<stdio.h>

main()

{

int a[10],i,sum=0;

printf("enter array\n");

for(i=0;i<10;i++)

{

scanf("%d",&a[i]);

sum=sum+a[i];

}

printf("sum of array =%d",sum);

}

Therefore, a C++ program that will read an array of 10 numbers is given above.

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

https://brainly.com/question/28959658

#SPJ1

recitative is... group of answer choices sung in rhythm of ordinary speech with many words on the same pitch a recital a dramatic, serious, or tragic opera the text(lyrics) of an opera

Answers

Rather than emphasizing melody or musical motives, recitative monody (accompanied solo song) stresses and even imitates the rhythms and accents of spoken language.

Recitative, which is based on oratory, emerged in opposition to the polyphonic, or multi-voiced, style of 16th-century choral music in the late 1500s. Singing that is repetitive is more similar to speech than song. Opera and oratorio employ it to advance the plot. An illustration of recitative from the movie Juan, which is based on Wolfgang Amadeus Mozart's 1789 opera "Don Giovanni." A counterpoint to this style of singing is an aria. Since recitative frequently follows speech patterns, the rhythm in R&R alludes to speech rhythm.

Learn more about recitative here-

https://brainly.com/question/14724776

#SPJ4

you are given two sequences a and b of n numbers each, possibly containing duplicates. describe an efficient algorithm for determining if a and b contain the same set of numbers, possibly in different orders. what is the running time of this algorithm?

Answers

Given are two sequences, S1 and S2, both with n items and possibly including duplicates. Efficient algorithm would be extremely wasteful to compare two sets of sequences if they were in some random order.

"A collection of finite rules or instructions to be followed in calculations or other problem-solving procedures" is what the word algorithm signifies. Or, "A finite-step process for solving a mathematical problem that frequently uses recursive operations."

As a result, an algorithm is a set of limited procedures used to solve a certain problem. Depending on what you want to do, algorithms might range from simple to sophisticated.

By using the process of making a novel recipe as an example, it can be understood. When following a new recipe, one must read the directions and carry out each step in the correct order. The new meal is cooked to perfection as a result of this procedures.

You employ algorithms every time you use a phone, computer, laptop, or calculator. Similar to this, algorithms assist programmers in carrying out tasks to produce desired results. The developed algorithm is language-independent, meaning that it consists only of simple instructions that can be used to build it in any language and still produce the desired results.

To know more about algorithm click on the link:

https://brainly.com/question/22984934

#SPJ4

if they run the tool again (but still with the destination ip address for code.org), in what way could the next packet's path be different? ????️note that there may be multiple answers to this question.

Answers

Answer:

Explanation:

stay the same  

move

What is output by the following line of code? print(5*2 + 9)

Answers

The output of the given line of code is 19.

What is a Computer Code?

This refers to the sequence of instructions that are given to a computer system in order to perform an action or execute a task.

Hence, we can see that the given computer code tells the computer to print the value of the mathematical operation 5 * 2 + 9 which would be given down below.

Using the BODMAS/PEMDAS rule,

5 * 2= 10

Then 10 + 9 = 19.

This is what the output of the computer code would be as the print function would be executed.

Read more about computer codes here:

https://brainly.com/question/23275071

#SPJ1

Which OSI layer provides switching and routing technologies?
A. Application
B. Network
C. Physical
D. Transport

Answers

Answer:   The correct answer is B. Network

Explanation:   The network layer of the OSI provides switching and routing support through network layer protocols.

in the tftp protocol: if the client changes its port number on a subsequent connection, but the server does not, what prevents an old-duplicate data packet sent by the server from being accepted by the new client? if the server changes its port number on a subsequent connection, but the client does not, what prevents an old-duplicate data packet sent by the server from being accepted by the new client?

Answers

The client will attempt to establish a TCP connection with the incorrect process or a nonexistent process if you use different port numbers. There will be errors.

An internet message or other network communication that arrives at a server can be redirected to a specific process by using the port number. All network-connected devices have standardized ports with a unique number installed. Multiple connections can be accepted simultaneously by a single listening port. There is a restriction of 64K that is frequently mentioned, but it should be made clear that this applies to each client and each server port. The client will connect to a machine and choose the port to use for communication. If the server is accessible through the port requested by the client, communication occurs.

Learn more about communication here-

https://brainly.com/question/22558440

#SPJ4

create a program, gpacalc.py, that takes four letter grade arguments and prints out the corresponding gpa, to two decimals. your program should work both in arguments are upper-case and lower-case.

Answers

Today's environment is highly automated, making computer programming essential. The relationship between people and machines needs to be under human control.

We utilize computer programming to harness such computational power because computers and machines can perform tasks so precisely and effectively. A computer follows a collection of instructions called a program to carry out a certain task. [computing] The size of a computer program affects the likelihood that an error may occur. A program is a group of initiatives that are managed collectively to generate scale-based efficiencies. Program management is the coordination of linked initiatives that are grouped together, just like project management involves the coordination of individual activities.

Learn more about Programming here-

https://brainly.com/question/11023419

#SPJ4

why is it so common in internet protocols that clients speak before servers do? (in other words, what would be an important advantage of having a client speak first, or, thought differently, an important disadvantage of having a server speak first instead?)

Answers

Answer:

The client will send a request through the API with the TCP protocol, which the server then receives and delivers your request. This makes sure a connection is established. This is the standard quota for all web pages!

Explanation:

Hope this helps you out!

what feature allows a firewall to permit traffic to flow from a trusted network (for example, a corporate intranet) to an untrusted network (for example, the internet) and then allow return traffic for that session, while blocking sessions initiated on the untrusted network?

Answers

       A firewall is a security tool, either computer hardware or software, that can assist safeguard your network by filtering traffic and preventing unwanted access to the sensitive information on your computer by outsiders.

It entails running software on a host in order to defend against attacks that have been thoroughly documented?

Firewalls based on hosts

       It is a piece of software—or a group of software—that is included with the operating system. Each host is shielded from assaults and unauthorized access by a host firewall.

Different Forms of Network Security Measures

        Firewall. Network traffic is managed by firewalls using pre-established security rules. Network segmentation, remote access VPN, email security, data loss prevention (DLP), intrusion prevention systems (IPS), sandboxing, and hyperscale network security are a few examples of network security measures.

     Which of the following is another name for a firewall that performs router functions?  A sacrificial host is a firewall that provides protection behind the organization's router. Another name for a sacrificial host is a bastion host.

To Learn more About firewall, Refer:

https://brainly.com/question/13693641

#SPJ4

assuming that inputfile is a scanner object used to read words from a text file, select an expression to complete the following code segment, which counts the number of words in the input file.

Answers

A Scanner object may read a text file. Utilizing the methods included with the Scanner class is a benefit of utilizing the Scanner.

To guarantee that the file is closed, the application should define the Print Writer variable in a try-with-resources statement. Leading and trailing spaces are removed by the built-in Java String function trim(). The space character's Unicode value is "u0020." Java's trim() function looks for this Unicode value before and after the text, removes any spaces if they are present, and then returns the string that was omitted. The exception produced inside the try block will be propagated up the call stack if it occurs both inside the try-with-resources block and when a resource is closed (when close() is used).

Learn more about Unicode here-

https://brainly.com/question/17147612

#SPJ4

write a java program using switch that determine if the employee will not be allowed to attend the class if his/her attendance is less than 80% and you will ask your user to input:
a. How many classes were held?
b. Attendance at classes
c. Display the percentage of class attended
d. Output if he/she allowed to attend the class or not

Answers

import java.util.Scanner;

class check_st {

public static void main(String[] args) {

Scanner f = new Scanner(System.in);

double x,y,d;

System.out.println("How many classes were held?: ");

x = f.nextInt();

System.out.println("Attendance in class: ");

y = f.nextInt();

d = (y/x)*100.0;

float k = (float) Math.round(d * 100) / 100;

System.out.println("The percentage of class attended: %"+k);

int m = (k<80.0) ? 0 : 1;

switch(m)

case 0:

System.out.println("Failed the course!");

break;

case 1:

System.out.println("Passed the course!");

break;

default:

;;

}

}

Other Questions
given a int variable named yescount and another int variable named nocount and an int variable named response write the necessary code to read a value alculate the total revenues per distributor category, and assign the customer costs to each distributor type by using revenues as the allocation base. selling price for one unit is $150. round calculations to the neare What energy is there that is conserved in a trebuchet Suppose you put $350 into a bank account today. Interest is paid annually and the annual interest rate is 6 percent. The future value of the $350 after 4 years is. 3. Write a hypothesis based on observations and scientific principles. Answer each part. If necessary, round your answers to the nearest hundredth.(a) It takes 51 pounds of seed to completely plant a 9-acre field.How many acres can be planted per pound of seed?acres per pound(b) Christine runs 4 miles in 22 minutes.How many minutes does she take per mile?minutes per mile Determine which integers in the set S: {2, 3, 4, 5} will make the inequality 2p 8 < 5p + 4 true. S:{2, 3} S:{3, 4} S:{4, 5} S:{2, 5} Employment opportunities for medical assistants are expected to do which of the following through 2028?a. declineb. growc. be eliminatedd. stay consistent Because people will not invest if they believe that thieves, bandits, or a rapacious and tyrannical government will steal their investments or their expected returns, ______ are important. Does Doris change in a fundamental way over the course of the story?No, Doris keeps crying herself to sleep every night.Yes, because Doris does not get to keep the dog.No, Doris stays obedient and warm-hearted throughout the story.Yes, because Doris accepts that her family cannot afford the dog. Please help me asap determining that the amount of cash agrees with the accounting records is (a) posting. (b) journalizing. (c) proving cash. (d) none of these. when planning a program to reduce the number of never events in an organization, the program planner should focus on the leading cause of never events, which is related to a problem with: What is the value of the missing angle Why are Roman numerals needed in the names of ionic compounds containing a metal that forms more than one type of ion? Type one contains a metal with a invariant charge-One that does not vary from one compound to another. Type two contains a metal with a charge that can differ in different compounds. Match the items in the left column to the appropriate blanks in the sentences on the right Question 3 options:Premises:If you have a cat, then it will chase mice.You have a cat.Conclusion:Your cat will chase mice.The Law of ___________________________makes this argument true. Let g(x) be the indicated transformation .Write the rule for g(x) Linear function defined in the table vertical translation down 2 units I will send you a picture In a recent year, 31.4% of all registered doctors were female. If there were 47,300 female registered doctors that year, what was the total number of registered doctors? which theory maintains that all people have the potential to violate the law, as modern society presents many opportunities for illegal activities that promise immediate reward and gratification? investments represent a(n) multiple choice question. a fully depreciated asset. long-term commitment of funds. temporary expenditure. short-term commitment of funds. sally has a cube of side length units such that the number of square units in the surface area of the cube equals of the number of cubic units in the volume. she also wants to make a square for which the number of square units in the area of the square is equal to the number of cubic units in the volume of the cube. what should the side length of the square be?