Write a modular program that accepts up to 20 integer test scores in the range of 0 to 100 from the user and stores them in an array. Then main should report how many perfect scores were entered (i.e., scores of 100), using a value-returning countPerfect function to help it. Hint: Have the program count the scores as they are entered. Your program may need this information later.

Answers

Answer 1

Answer:

The program in Java is as follows:

import java.util.*;

public class Main{

public static int countPerfect(int [] scores, int n){

    int count = 0;

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

     if(scores[i] == 100) {count++;}  }

 return count; }

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

 int n;

 System.out.print("Number of scores: ");

 n = input.nextInt();

 if(n<1 || n>20){n=20;}

 int [] scores = new int[n];

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

     scores[i] = input.nextInt();  }

 System.out.print("Perfect Scores: "+countPerfect(scores,n));  

}

}

Explanation:

The countPerfect function begins here

public static int countPerfect(int [] scores, int n){

This initializes the count to 0

    int count = 0;

This iterates through the array elements

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

If current score is 100, count is incremented by 1

     if(scores[i] == 100) {count++;}  }

This returns the value of count

 return count; }

The main begins here

public static void main(String[] args) {

 Scanner input = new Scanner(System.in);

This declares the number of scores, n

 int n;

Prompt to enter the number of scores

 System.out.print("Number of scores: ");

This gets input for n

 n = input.nextInt();

If input is less than 1 or greater than 20, n is set to 20

 if(n<1 || n>20){n=20;}

This declares the scores as an array

 int [] scores = new int[n];

This iterates through the array and get inputs for each score

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

     scores[i] = input.nextInt();  }

This calls the function and print the number of perfect scores

 System.out.print("Perfect Scores: "+countPerfect(scores,n));  

}


Related Questions

sniffing is a situation where esomeone examines that passes their nic, whether addressed for them or not. T/F

Answers

False, sniffing is a situation where someone captures and examines network traffic that passes through their network interface card (NIC), whether the traffic is addressed to them or not.

What is NIC?

The Government of India's technological partner is the National Informatics Centre (NIC), which is a division of the Ministry of Electronics and Information Technology (MeitY). With the intention of offering Central and State Governments technology-driven solutions in a variety of development-related areas, it was founded in 1976. NIC has played a crucial role in helping the Central Government embrace and support information and communication technology (ICT) and eGovernment.

False. Sniffing is a situation where someone captures and examines network traffic that passes through their network interface card (NIC), whether the traffic is addressed to them or not. Sniffing is typically done using specialized software or hardware tools, and it can be used for legitimate purposes such as network monitoring and troubleshooting, or for malicious purposes such as stealing sensitive information or spreading malware.

In contrast, network traffic that is addressed to a specific network interface card (NIC) is typically not captured and examined by sniffing tools, as it is intended for the device with that specific NIC. Traffic that is not addressed to a specific NIC is referred to as "broadcast" or "multicast" traffic and may be captured and examined by sniffing tools.

To know more about NIC checkout https://brainly.com/question/20689912

#SPJ4

Using the data for age given in Exercise 3.3, (a) Plot an equal-width histogram of width 10. (b) Sketch examples of each of the following sampling techniques: SRSWOR, SRSWR, cluster sampling, and stratified sampling. Use samples of size 5 and the strata “youth,” “middle-aged,” and “senior.”

Answers

Using the knowledge in computational language in python it is possible to write a code that Use samples of size 5 and the strata “youth,” “middle-aged,” and “senior.”

Writting the code;

{13,15,16,16,19,20,20} interval [11-20] F=7 ages

{21,22,22,25,25,25,25,25,30} interval [21-30] F=8 ages

{33,33,35,35,35,36,40} interval[31-40] F=8 ages

{45,46} interval [41-40] F=2 ages

{0} interval [51-60] F=0 age

{70} interval [61-70] F=1 age

Each unit can be chosen one time

therefore Sample size=5

{13,15,16,19,20}

repetition is allowed

Sample size=5

{13,13,13,15,16}

All units in a cluster is selected

{33,35,36,40}

Youth {16,19,20,21,22}

Middle aged {33,35,36,40,45,46}{

Senior {52,70}

Sample={16,21,33,40,52}

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

#SPJ1

4) Consider the following code segment:
s1 = "CAT"
s2 = "cat"
Which of the following if statements has a condition that evaluates to True?
a) if s1 == s2
b) if s1 = s2
c) if s1 < s2
d) if s1 > s2

Answers

Answer:

The correct answer is if s1 < s2.

Explanation:

In this case, the condition s1 < s2 will evaluate to True because the string "CAT" comes alphabetically before the string "cat".

Benefits of Encapsulation:
The fields of a class can be made read-only or write-only.
A class can have total control over what is stored in its fields.
The users of a class do not know how the class stores its data. A class can change the data type of a field and users of the class do not need to change any of their code.

Answers

Data concealing, increased flexibility, and ease of reuse are advantages of encapsulation programming.

What uses for encapsulation are there?

Preventing reactivity with other ingredients in food products, such as oxygen or water, is another objective of using encapsulation. Encapsulation can also be used to encapsulate cells or enzymes in food processing applications, such as the fermentation process and the synthesis of metabolites.

What Benefits Come with Encapsulation?

Encapsulation is the process of concealing complex, lower-level data by combining data and operations into a single abstracted entity. By using access modifiers, it can limit erroneous human changes, prohibit unauthorized access to sensitive data, and conceal information.

To know more about encapsulation visit:-

https://brainly.com/question/29762276

#SPJ4

TRUE/FALSE. once you've modified the color of margins or columns or both in the preferences dialog box, each new document you create will have margins and columns that appear with those new colors.

Answers

The statement "once you've modified the color of margins or columns or both in the preferences dialog box, each new document you create will have margins and columns that appear with those new colors" is False.

What is a dialog box?

The dialog box is a graphical control element that appears as a small window and conveys information to the user while also asking for a reaction. Depending on whether they prevent communication with the software that opened the dialog, dialog boxes are categorized as "modal" or "modeless." A dialog box is a transient window that a program creates to collect user input. Dialog boxes are frequently used in applications to ask users for more details about menu items.

Modeless, modal, and system modal are the three different forms of dialog boxes. In a program, modal dialog boxes are typically used to display messages and configure program settings.

To learn more about a dialog box, use the link given
https://brainly.com/question/28813622
#SPJ4

A signal transduction pathway is initiated when a _____ binds to a receptor.
a signal molecule
b cyclic AMP
c tyrosine kinase
d G protein
e calmodulin

Answers

The correct answer to the given question about signal transduction is option a) Signal Molecule.

As a collective noun for chemicals that bind particularly to other molecules, such as receptors, signaling molecules are frequently referred to as ligands. The message sent by a ligand is frequently transmitted inside the cell through a series of chemical messengers. A cellular response is produced as a result of a series of molecular processes, most frequently protein phosphorylation catalyzed by protein kinases, known as signal transduction, which is the process by which a chemical or physical signal is transferred through a cell. Although in some instances the term sensor is used, generally speaking, proteins that detect stimuli are referred to as receptors. A signaling route, which is a series of biochemical events known as a biochemical cascade, is initiated by the changes brought about by ligand binding (or signal detecting) at a receptor.

To learn more molecules click here

brainly.com/question/19922822

#SPJ4

match the wireless networking term or concept on the left with its appropriate description on the right. (each term may be used once, more than once, or not at all.)

Answers

Moving a wireless device- Roaming Used by Cisco wireless equipment to route frames back and forth between the wireless network and the wired LAN- LWAPP -

Specifies the number of clients-Device densityAutomatically partitions a single-VLAN poolingGraphically displays wireless- Heat mapConnects two wired networks over a WiFi network- Wireless bridgeIdentifies how strong a radio signal is that the receiver- (leave blank)The number of useful bits delivered from sender to receiver within a specified amount of time-Goodput

Wireless communication is what?

Using wireless technology. a form of communication whereby data is sent over a long distance without the need of a physical medium. Electromagnetic waves like radio waves and microwaves as well as light pulses are both used to transfer information, data, and voice. Point-to-point.

What does the term "wireless networking" mean?

By using wireless networking, businesses, households, and telecommunications networks can avoid the pricey procedure of installing wires inside buildings or as a connection between different pieces of equipment.

To know more about wireless networking: https://brainly.com/question/26956118

#SPJ4

a technician is troubleshooting a windows computer experiencing slow startup. which of the following steps should the technician take first to determine whether startup processes are responsible for the slow startup?

Answers

The technician should time how long it takes the system to boot normally and then compare that to how long it takes the system to boot cleanly.

Which of the following should the technician do first to see if the slow startup is the result of startup processes? The technician should clock how long it takes the system to boot normally and contrast that with how long it takes for a clean boot.A sophisticated Windows monitoring program called Process Monitor displays process and thread activity as well as file system and registry activities in real time.The BIOS appears here.You can modify the location from which the BIOS installs the operating system by pressing F2 to access a configuration screen.Although the operating system is often kept on the hard drive, it can also be loaded via a USB device or CD.To see Windows event logs, Microsoft supplies the Event Viewer in both its Windows Server and Windows client operating systems. By selecting the Start button and typing Event Viewer into the search bar, users can access the Event Viewer.

To learn more about startup processes refer

https://brainly.com/question/23498988

#SPJ4

The link between violent video games and criminal behavior is based on broken windows theory.
True
False

Answers

The given statement "the broken windows theory underlies the association between violent video games and criminal behavior" is TRUE.

What is broken windows theory?

According to the shattered windows theory in criminology, visual evidence of criminal activity, antisocial behavior, and public disorder lead to an urban setting that promotes additional criminal activity and disorder, including serious crimes.

According to the notion, policing strategies that focus on insignificant offenses like vandalism, loitering, public intoxication, jaywalking, and fare evasion aid in fostering a sense of order and lawfulness.

The link between violent video games and criminal behavior is explained by the broken windows theory.

James Q. Wilson and George L. Kelling, two social scientists, first presented the notion in a 1982 article.

Therefore, the given statement "the broken windows hypothesis underlies the association between violent video games and criminal behavior" is TRUE.

Know more about broken windows theory here:

https://brainly.com/question/13514579

#SPJ4

To prevent the loss of a single message due to accidental decryption
from affecting other encrypted messages, which of the following
properties is needed?
A. Stream encryption
B. Perfect forward secrecy
C. Entropy
D. Obfuscation

Answers

Stream encryption shields other encrypted messages from being damaged if one message is accidentally decrypted and lost.

Symmetric encryption is what?

The same key is used for encryption and decryption in symmetric encryption. Therefore, it is crucial to take into account a secure way while transferring the key between the sender and recipient.

What are the two elements required for encryption and decryption operations in an asymmetric encryption system?

A public key and a private key, which are related mathematically, are used in asymmetric encryption for encryption and decryption. The associated private key is used for decryption if the public key is utilized for encryption. The associated public key is utilized if the private key is used for encryption.

To know more about encryption visit:-

https://brainly.com/question/17017885

#SPJ4

Question 8
To authenticate user accounts on a computer against AD, what must be done to the computer first?

Answers

Answer:

Join it to the domain.

1. You are a consultant hired by a large company to help plan their website upgrade. Write a paragraph that explains the advantages of cloud computing to include in your report to this company.

Answers

Cloud computing offers several advantages for companies looking to upgrade their website. One major benefit is the ability to scale resources on demand. With cloud computing, a company can easily increase or decrease their computing resources as needed, without the need to invest in additional hardware. This can save the company money on upfront costs and maintenance expenses. Additionally, cloud computing offers enhanced security and reliability, as the data is stored on servers managed by experienced professionals. This can give the company peace of mind knowing that their data is being well taken care of. Another advantage of cloud computing is the ability to access data and applications from anywhere with an internet connection, which can increase productivity and flexibility for employees. Overall, cloud computing can provide cost savings, enhanced security and reliability, and increased flexibility for a company looking to upgrade their website.

web pages that are opinionated and are in reverse chronological order are termed . blogs wikis buttons social bookmarks banners 1 points save answer

Answers

The web pages that are opinionated and are in reverse chronological order are termed as blogs. The correct option is A.

What are blogs?

A blog, often known as a weblog, is a frequently updated online page that is used for commercial or personal comments.

A area where readers can leave comments is usually included at the bottom of each blog article because blogs are frequently interactive.

It started off as straightforward online diaries that were posted in reverse chronological order, but it has since grown into a popular publishing platform for both private and business use. have existed for more than ten years.

Thus, the correct option is A.

For more details regarding blogs, visit:

https://brainly.com/question/14649220

#SPJ4

Chase is trying to extract records for employees 423 through 428 out of a comma separated values file and store them in another one. Which of the following commands would accomplish this? (Choose all that apply.)
O grep "42[3-8]" employees.csv > employees-newhires.csv
O cat employees.csv | grep "42[3-8]" > employees-newhires.csv
O grep "42[3-8]" < employees.csv > employees-newhires.csv

Answers

All the three commands would accomplish this. They would extract records for employees 423 through 428 out of the file employees.csv and store them in the file employees-newhires.csv.

The grep command searches for lines that match a given pattern, and the > operator redirects the output of the command to a file. The cat command is used to concatenate and display the contents of one or more files, and the | operator is used to pipe the output of one command as the input of another.

The first command, grep "42[3-8]" employees.csv > employees-newhires.csv, searches for lines that match the pattern 42[3-8] in the file employees.csv and redirects the output to the file employees-newhires.csv.

The second command, cat employees.csv | grep "42[3-8]" > employees-newhires.csv, concatenates and displays the contents of employees.csv, pipes the output to grep, which searches for lines that match the pattern 42[3-8], and then redirects the output to the file employees-newhires.csv.

The third command, grep "42[3-8]" < employees.csv > employees-newhires.csv, is similar to the first command, but it uses the < operator to specify the input file instead of providing it as an argument to the grep command.

All three of these commands would accomplish the task of extracting records for employees 423 through 428 out of the file employees.csv and store them in the file employees-newhires.csv.

To find more on comma separated value format, use the link;

brainly.com/question/19386905

#SPJ4

You have decided to conduct a business meeting at a local coffee shop. The coffee shop you chose has a wireless hotspot for customers who want internet access.
You decide to check your email before the meeting begins. When you open the browser, you cannot gain internet access. Other customers are using the internet without problems. You are sure your laptops wireless adapter works because you use a wireless connection at work. What is the likely cause of the problem?
Different LAN protocols are being used.
WAP is out of range.
Antenna strength on the WAP is too low.
A mismatched SSID.
PPP is not configured correctly.

Answers

The cause of the problem of unable to get internet access on the wireless hotspot is a mismatched SSID.

What is SSID?

SSID or service set identifier is the unique name that contains sequence of characters in wireless LAN, it also be called as network name.

The SSID function to determine the stations to be connected to the desired network when multiple independent networks is available in the same area.

For the case, since the other customers can using the internet without the problems, so the network doesn't have any problem. Then, the laptops is wireless adapter works, so the device also doesn't have any problem.

So, the only problem is when connecting the device to the LAN, and this can happen if the user mismatches the SSID.

Learn more about SSID here:

brainly.com/question/27975067

#SPJ4

Can you use Python programming language to wirte this code?

Thank you very much!

Answers

Using the knowledge of computational language in python it is possible to write code that repeatedly prompts a user for integer numbers until the user enters 'done'.

Writting the code:

class MyIntegral(Integral):

   def __add__(self, other):

       if isinstance(other, MyIntegral):

           return do_my_adding_stuff(self, other)

       elif isinstance(other, OtherTypeIKnowAbout):

           return do_my_other_adding_stuff(self, other)

       else:

           return NotImplemented

   def __radd__(self, other):

       if isinstance(other, MyIntegral):

           return do_my_adding_stuff(other, self)

       elif isinstance(other, OtherTypeIKnowAbout):

           return do_my_other_adding_stuff(other, self)

       elif isinstance(other, Integral):

           return int(other) + int(self)

       elif isinstance(other, Real):

           return float(other) + float(self)

       elif isinstance(other, Complex):

           return complex(other) + complex(self)

       else:

           return NotImplemented

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

#SPJ1

Gunnar is creating a document that explains risk response techniques. Which of the following would he NOT list and explain in his document?

Answers

We are aware that the agreement covers risk transfer, risk avoidance, and risk mitigation, but not (A) risk extinguishment.

What is Transfer risk?

The danger that a local currency cannot be transferred into the currency of another country due to fluctuations in nominal value or because of certain regulatory or exchange constraints is known as transfer risk.

Avoid risk:
By avoiding risks, you reduce your exposure to lawsuits by attempting to stay away from potentially damaging situations.

Reducing your exposure to risk can help you keep your company's losses and other damages under control.

Mitigate risk:

Planning for disasters and finding a strategy to decrease their effects is the practice of risk mitigation.

Although a corporation should be prepared for all potential risks, a comprehensive risk mitigation plan would analyze each risk's impact and give that impact priority when prioritizing planning.

Now, we know that transferring risk, avoiding risk, and mitigating risk are included is the document, they extinguish risk is not included in the document.

Therefore, we are aware that the agreement covers risk transfer, risk avoidance, and risk mitigation, but not (A) risk extinguishment.

Know more about Transfer risk here:

https://brainly.com/question/7040039

#SPJ4

Complete question:
Gunnar is creating a document that explains risk response techniques. Which of the following would he NOT list and explain in his document?

(A) Extinguish risk

(B) Transfer risk

(C) Avoid risk

(D) Mitigate risk

We are aware that the agreement does not address (A) risk extinguishment, but rather risk transfer, risk avoidance, and risk reduction.

How does transfer risk work?

Transfer risk refers to the risk that a local currency cannot be converted into the currency of another nation owing to changes in nominal value or because of specific regulatory or exchange restrictions.

Avoid risk: By making an effort to avoid potentially harmful circumstances, you can lessen your exposure to litigation.

You may manage losses and other damages to your firm by reducing your exposure to risk.

Reduce risk:

The technique of risk mitigation involves making preparations for calamities and coming up with a plan to lessen their consequences.

Despite the fact that a firm should be ready for every conceivable risk, a thorough risk mitigation strategy would examine each risk's impact and give that impact precedence when prioritizing preparation.

We now know that while transferring risk, avoiding risk, and managing risk are covered in the agreement, eliminating risk is not.

Therefore, we are aware that (A) risk extinguishment is not covered by the agreement, only risk transfer, risk avoidance, and risk reduction.

Know more about Transfer risk here:

brainly.com/question/7040039

#SPJ4

Complete question:

Gunnar is creating a document that explains risk response techniques. Which of the following would he NOT list and explain in his document?

(A) Extinguish risk

(B) Transfer risk

(C) Avoid risk

(D) Mitigate risk

which is the correct way to construct and assign a 2d array, with 8 rows and 10 columns, to the variable popcorn? int[8][10] popcorn; int[8][10] popcorn

Answers

The right approach to create and assign a 2d array with 8 rows and 10 columns to the variable popcorn is int[][] popcorn = new int[8][10].

Which variable is the dependent one?

A dependent variable is one that is altered as a result of the modification of an independent variable. Your independent variable "depends" on the outcome you're interested in measuring.

Why does popcorn pop, anyway?

Water that has been trapped inside the popcorn kernel is what causes it to pop. This water will turn into steam if the kernel is cooked to a sufficient temperature. The hard, largely impermeable shell prevents the steam from venting, which causes pressure to build up inside the kernel.

To know more about variable visit:-

https://brainly.com/question/13375207

#SPJ4

when you create a new database which object is created first

Answers

Table
a collection of records for a single subject, such as all customer records
Query
a subset of data from one or more tables

Answer:

When you first create a database, it's almost empty. But to get you started, Access creates your first database object—a table named Table1.

Explanation:

You are working with an employee database that has some incorrect hiring dates. Which of the following SQL commands will you use to make these changes?
-ALTER
-CREATE
-UPDATE
-LOAD

Answers

SQL commands you will use to make these changes by UPDATE.

What is SQL and its commands?Structured Query Language is known as SQL. The instructions needed to interface with a database in order to carry out operations, functions, and queries on data are known as SQL commands. The database may be searched using SQL commands, and they can also be used to create, add data to, change, and remove tables, among other things.A database may be communicated with using SQL. It is the accepted language for relational database management systems, claims ANSI (American National Standards Institute). To change data on a database or to obtain data from a database, SQL statements are employed.A common language for navigating and modifying databases is SQL.

Learn more about SQL commands refer to ;

https://brainly.com/question/25694408

#SPJ4

which of the following data types are considered complex data types for data mining? (check those that apply) group of answer choices financial transactions sequence data graphs and networks spatiotemporal data

Answers

Sequence data types are considered complex data types for data mining.

What kinds of complicated data are there for data mining?

Typically, a complex data type is a synthesis of different forms of data. For instance, you may develop a complicated data type with built-in types, opaque types, separate kinds, or other complex types as its constituents. Advanced data mining techniques are needed for complex data kinds. Sequence data, which comprises Time-Series, Symbolic Sequences, and Biological Sequences, is one of the most complex data kinds.

Data mining techniques

analysis using predictive data mining.Analyses using descriptive data mining.

various data types or attribute kinds:

Nominal Qualitative:Ordinal Property:Binomial Attribute:Numeral quality:

It is quantitative in the sense that a quantity may be measured and expressed as an integer or a real number.

To learn more about data mining refer to:

https://brainly.com/question/2596411

#SPJ4

The following query will execute without errors.
select customer.customer_name, salesman.sales_quota
from customer
where customer.salesman_id =
(select salesman_id
where lname = 'SMITH');
True
False

Answers

You can combine the results of two or more inquiries into a single result set that contains every row that was produced by each Union-related query by using the Union operator.

A codependent query is what?

Codependency is characterised by a reciprocal need for the other person, who in turn needs to be needed.

When is the subquery's exists or not exists clause used?

Without considering the number, use EXISTS to determine whether a link exists. For instance, [NOT] EXISTS returns true if no rows are returned from the subquery, and EXISTS returns true if any rows are returned. If at least one row is returned by the subquery, the EXISTS condition is deemed to be satisfied.

To know more about Union operator visit:-

https://brainly.com/question/15126489

#SPJ4

you manage a network with multiple subnets connected to the internet. a user reports that she can't access the new server used in the accounting department. you check the problem and find out that her computer cannot access any server on that subnet. however, the computer does access other computers on other subnets as well as the internet. which of the following is most likely the cause of the problem?

Answers

If I'm in charge of managing a network with several subnets connected to the internet, I guess missing default route on a router is probably going to cause some issue.

What is a router?

A router is a device that normally connects to a modem or a fiber optic network terminal using an Ethernet connection (ONT).

It builds a local network by connecting all of your wired and wireless devices to the one internet connection in your home. Additionally, it's utilized for network administration and to keep your local devices hidden from the Internet.

A router can be used independently or as a component of a wireless gateway, a modem/router hybrid device.

The purpose of a router is that it might be real or virtual, it accepts, examine, and forward data packets between computer networks.

A router determines the optimal way to send packets by looking at the headers and forwarding tables, as well as the destination IP address of a specific data packet. The well-known manufacturers of routers include Cisco, 3Com, HP, Juniper, D-Link, Nortel, and others.


To know more about packets, visit: https://brainly.com/question/28180161

#SPJ4

a search engine lists the hits in a search results list in a certain order, usually with more relevant hits at or near the top of the list.

Answers

Search engine , a search engine lists the hits in a search results list in a certain order, usually with more relevant hits at or near the top of the list..

What are some examples of search engines?

An online resource known as a search engine enables users to look up information on the World Wide Web (WWW), a component of the Internet.

                     This will be accomplished by the search engine by searching through numerous web sites for matches to the user's search inputs. The search engine's popularity and relevancy algorithms will determine the order of the results.

What makes it a search engine?

A software program developed specifically to do web searches is known as a search engine.

                      They carry out a methodical search of the World Wide Web for specific data that is specified in a text web search query. Search engine results pages, which are lists of results that show the search results typically, are used to refer to them (SERPs).

Learn more about Search engine

brainly.com/question/18559208

#SPJ4

_____means that each individual byte has a unique address. O Word addressable O Byte addressable O Location bound O Unique byte

Answers

Byte addressable means that each individual byte has a unique address. The correct option is b.

What is Byte addressable?

Hardware architectures that use byte addressing allow for byte-by-byte access. Byte addressability, which allows a single character to be read from or written to any memory byte, highlights the key distinction between memory and storage.

Disks, SSDs, and flash drives, on the other hand, can only read and write data in predetermined chunks of hundreds or thousands of bytes (see sector).

Therefore, the correct option is b, Byte addressable.

To learn more about Byte addressable, refer to the link:

https://brainly.com/question/20115601

#SPJ4

Write a program named CheckMonth2 that prompts a user to enter a birth month and day.
Display an error message that says Invalid date if the month is invalid (not 1 through 12) or the day is invalid for the month (for example, not between 1 and 31 for January or between 1 and 29 for February).
If the month and day are valid, display them with a message. For example, if the month entered is 2, and the day entered is 17, the output should be 2/17 is a valid birthday.
(answer in c#)
-----------------------------------------------------------------------------------------------------------------------------------
using System;
using static System.Console;
class CheckMonth2
{
static void Main()
{
// Write your main here
}
}

Answers

The program named CheckMonth2 prompts a user to enter a birth month and day, written below in python.

What is programming?

The first line of the code in the Python program below is used to hold the list of the month. The user's input is then used to create a message for the user and saved into a variable on the second line.

month=['January', 'Februrary', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] #list which stores the name of the month.

CheckMonth= int(input("Enter the number of the month")) #it is used to take the inputs from the user.

if CheckMonth>=1 and CheckMonth<=12: #check the condition for valid month.

  print(str(CheckMonth)+" is a valid month which name is: "+ str (month [CheckMonth-1])) #print the name of month which is enter by the user.

else:

  print(str(CheckMonth)+" is not a valid month, please enter the valid month") # print for the invalid month.

Therefore, the program is written above

To learn more about programming, refer to the link:

https://brainly.com/question/11023419

#SPJ4

What is PowerPoint? Why is it used?

Answers

Answer:

Microsoft PowerPoint is a presentation software that allows you to create slide shows and presentations. It is part of the Microsoft Office suite of productivity tools.

You can use PowerPoint to create professional-looking presentations for a variety of purposes, such as:

Business meetings and presentationsConferences and eventsOnline and distance learningMarketing and sales presentationsEducational and training materials

PowerPoint includes a range of features that make it easy to create visually appealing presentations, including:

Pre-designed templates and themes

A range of text, image, and media formatting optionsSupport for charts, diagrams, and other types of graphicsThe ability to add animation and transition effects to slidesSupport for collaboration and teamwork, including the ability to share and co-author presentations with others

Overall, PowerPoint is a powerful tool that can help you effectively communicate your ideas and information in a clear, organized, and visually appealing way.

PowerPoint is a Microsoft presentation software that significantly permits a user to construct slide shows and presentations on any topic in order to spread information.

What is the significance of PowerPoint?

The significance of PowerPoint is determined by the fact that it allows presenters to translate complex ideas, facts, or figures into easily digestible visuals. Visual representations of information activate the right hemisphere of the brain, which allows viewers to interpret, expound, and engage with what they're seeing.

It is used to support a user in order to present information in multiple ways (a multimodal approach) through the projection of color, images, and video for the visual mode; sound and music for the auditory mode; text and writing prompts for the reading/writing mode; and interactive slides that ask students to do something.

This presentation software is widely used in business ideas, education, job seekers, governmental and citizen services, etc.

To learn more about Microsoft PowerPoint, refer to the link:

https://brainly.com/question/23714390

#SPJ2

You have computer system with a dual-core processor. You would like to upgrade to a quad-core processor, but you don't want to replace the motherboard. Which of the following should you do first?

Answers

Answer:

To upgrade to a quad-core processor, you should first check if your current motherboard is compatible with a quad-core processor. Some motherboards are only compatible with certain types of processors, and attempting to install a processor that is not compatible with your motherboard could damage your system.

To determine whether your motherboard is compatible with a quad-core processor, you should consult the documentation for your motherboard or check the manufacturer's website for compatibility information. You can also try looking up the make and model of your motherboard online to see if it is compatible with a quad-core processor.

Once you have determined that your motherboard is compatible with a quad-core processor, you can then proceed to purchase and install the new processor. This typically involves removing the current processor from the motherboard and installing the new one in its place. It is important to be careful when handling the processors and to follow the instructions provided by the manufacturer to ensure a successful installation.

Explanation:

unselected aminoacyl-trna synthetase unselected ribozymes unselected gtp unselected atp unselected transcription units unselected i don't know yet

Answers

A ribozyme is an enzyme made of ribonucleic acid (RNA) that catalyzes a chemical reaction. The ribozyme catalyzes specific reactions in the same way that protein enzymes do.

What exactly is Ribozyme?

Ribozymes, also known as catalytic RNA, are found in the ribosome and join amino acids together to form protein chains. Ribozymes also play important roles in RNA splicing, transfer RNA biosynthesis, and viral replication.

The discovery of the first ribozyme in the early 1980s led to researchers demonstrating that RNA functions as both a genetic material and a biological catalyst. This contributed to the widespread belief that RNA played an important role in the evolution of self-replicating systems.

To know more about researchers, visit: https://brainly.com/question/25247835

#SPJ4

the selection structure is used when a programmer wants to repeatedly process one or more program instructions. true or false

Answers

The selection structure is used when a programmer wants to repeatedly process one or more program instructions that are true.

What are the program instructions?

A style of teaching where each student learns independently and at their own pace.

Programmable learning resources in the form of books or teaching aids, as well as different forms of self-instructional materials, are examples of software instructional sequences.

A learner may readily learn on their own with the help of the Steps, which are the components of new information that make up programmed learning.

When a programmer wishes to continually run one or more true program instructions, they utilize the selection structure.

More about the program instructions link is given below.

https://brainly.com/question/13166283

#SPJ4

Other Questions
7th grade social studies help me pleaseee Consider a convergent- Plz help me plz I am timed!! Cars require a lot of space in cities. What evidence from the passage best supports this conclusion? What should I watch on Netflix (shows for a 14 year old) ? Janie ordered boxed lunches for a student advisory committee meeting. Each lunch costs $4.25. The total cost of the lunches is $53.75, including a $7 delivery fee.Part AWhich equation will help you find x, the number of boxed lunches Janie ordered?a 4.25x = 60.75b 4.25 + 7x = 53.75c 4.25x + 7 = 53.75d 4.25(x + 7) = 53.75Part BSolve the equation from Part A to find x.x = _____ April is the peak month of dry season. Yes or no? can someone tell me if this is right plzz (tryna give points) what's 2+2? ALGEBRAidentify the terms, coefficients, and constants in the expression.3p^2+7 13. Assessment Darrin has 274 basketballstickers and 100 football stickers.How many sports stickers does he have?A 174, 284B 184D 374cation, Inc. 2Topic 10Topic 10 Use a factor tree or similar method to write 4400 as a product ofprime factors. Display your factor tree in your answer. If youchoose to use an alternative method, clearly show your working:just writing down the answer is not sufficient. A temperature of C degrees Celsius is the same as 5/9C+32 degrees Fahrenheit. According to weather records, the highest recorded temperature in the state of New Mexico is 50 degrees Celsius. Type the correct answer in the box.2 units2 units2 units8 units2 units2 units22 units6 unitsThe area of the figure issquare units. Look photoplz help meI will give brainliest What is the best way to describe |-2| On a number line tiles are going to all be lined next to each other, how many inches long will they cover along the walkway? A. 0.475 inch B. 47.5 inches C. 475 inches D. 4,750 inches what did the 14th amendment do? Van a poner balfosas en una calle que mide 3 hm y 9 dam de largo. Ya han embaldosado 125 m de calle A cuantos metros les falta poner baldosas What is the capital of Paraguay?MontevideoAsuncinSantiagoManaguaAnswers: B A D C B D