Answer:
Organization
Explanation:
The term that describes the order of arrangement of files and folders on a computer is organization. It is very important the organization of the files and folders to be effective, in order to work with them quickly and efficiently.
Answer:
The term that describes the order of arrangement of files and folders on a computer is organization.
Explanation:
When backing up a database server to LTO tape drives, the following schedule is used. Backups take one hour to complete.
Sunday (7PM) : Full backup
Monday (7PM) : Incremental
Tuesday (7PM) :I Incremental
Wednesday (7PM) : Differential
Thursday (7PM) : i Incremental
Friday (7PM) : i Incremental
Saturday (7PM) : Incremental
On Friday at 9:00PM there is a RAID failure on the database server. The data must be restored from backup. Which of the backup tapes that will be needed to complete this operation?
A. 1
B. 2
C. 3
D. 4
E. 5
Answer:
C. 3
Explanation:
Linear Tape Open LTO tape drives are magnetic tapes used to store data. This can be used with small and large computers for backup purposes. The backup needs to maintained frequently so that new data is backup on every interval. The is a RAID failure on database server to ensure complete backup there must be 3 backup tapes needed.
You are an ISP. For the Address Block 195.200.0.0/16 a. If you have 320 Customers that need 128 addresses/customer - will there be enough addresses to satisfy them? and explain why? b. Say the first block of 64 customers want 128 addresses/customer - what would the address space look like?
Answer:
a. The network will not satisfy the customers because the required addresses is 128 but what can be offered is 126.
b. 195.200.0.0/22
Explanation:
195.200.0.0/16
The number of bits to give 512 is 9
2^9=512
2^8=256 which is not up to our expected 320 customers that requires a network ip
Note we have to use a bit number that is equal or higher than our required number of networks.
The number of host per each subnet of the network (195.200.0.0/25) is (2^7)-2= 128-2=126
The network will not satisfy the customers because the required addresses is 128 but what can be offered is 126.
b. 64 customers requires 6 bits to be taken from the host bit to the network bit
i.e 2^6 = 64
195.200.0.0/22
The number of host per each subnet of the network (195.200.0.0/22) is (2^10)-2=1024 - 2 = 1022 hosts per subnet
This network meet the requirement " 64 customers want 128 addresses/customer "
The attack in which the attacker sends a fragmented message that the victim cannot reconstruct is a(n) ________ attack.
Answer:A teardrop attack
Explanation:
A teardrop attack also called denial-of-service attack is one which an attacker, usually a hacker sends many fragmented bug data messages to a victim's machine causing a crash in the device. This is because data moves in small data packets of whose transmission should follow layers according to the model of the devise be it OSI or TCP/IP model. Now when a hacker continually sends huge amounts of packets of bug data, the process of data transmission fails and packet data becomes overlapped, making the victim 's device machine in disarray and difficult to reconstruct while trying to rearrange them. When the hacker continually sends in more bug data packets to the already confused machine, The machine system crashes.
In a deployment with multiple indexes, what will happen when a search is run and an index is not specified in the search string?
Answer:
no events will be returned
Explanation:
Write a statement that uses the decrement operator, in prefix mode, to decrease the value of the variable time.
Answer:
public class Main
{
public static void main(String[] args) {
int time = 60;
--time;
System.out.println(time);
}
}
Explanation:
*The code is in Java.
Initialize an integer called time and set it to some value, in this case 60
To use the decrement operator in prefix mode, you need to write the decrement operator, --, before the variable time. The decrement operator decreases the variable value by one first and then gives back the new value. In our example the output will be 59.
Define the term residential subscriber as it pertains to the telecommunications industry. Explain what is meant by the term rate center as it pertains to local telephone service. Who is responsible for determining the rate center boundaries for a calling region? Explain the difference between the terms rate center and wire center as they pertain to the local telephone serving area.
Answer:
According to section 40-15-102(18) of the Colorado Revised Statutes (CRS), a residential “Residential subscriber” is an individual who has elected to receive residential telephone service with a local exchange provider. The definition of “Person” here is extended to include any other persons living or residing with the residential subscriber.
A rate center is a geographical area used to define and organise the perimeter for local calling, for billing, and for assigning specific phone numbers, which can include multiple area codes.
The rate center boundaries are determined by Local Exchange Carriers (LEC)
LEC is just a regulatory jargon in the telecoms sector for the local telephone company.
A wire center is the actual physical telephone exchange building.
A rate center, on the other hand, is a regulatory concept designed with the primary goal to make billing administration within the local telephone serving area easy.
Cheers!
The Employee class will contain a String attribute for an employee’s name and a double attribute for the employee’s salary. Which of the following is the most appropriate implementation of the class?
a. public class Employee
{
public String name;
private double salary;
// constructor and methods not shown
}
b. public class Employee
{
private String name;
private double salary;
// constructor and methods not shown
}
c. private class Employee
{
public String name;
public double salary;
// constructor and methods not shown
}
d. private class Employee
{
private String name;
private double salary;
// constructor and methods not shown
}
Answer:
The answer is "Option b".
Explanation:
In the choice b, a public class "Employee" is declared, in which two private variables "name and salary" is declared whose data type is a string and double. At this, the class is accessible outside the scope but it variable accessible in the class only and the wrong choice can be defined as follows:
In choice a, datatypes access modifiers were different that's why it is wrong.In choice c and d both classes use a priavte access modifier, which means it can't accessible outside that's why it is wrong.C++ 3.4.4: If-else statement: Print senior citizen. Write an if-else statement that checks patronAge. If 55 or greater, print "Senior citizen", otherwise print "Not senior citizen" (without quotes). End with newline.
Answer:
#include <iostream>
using namespace std;
int main()
{
int patronAge = 71;
if(patronAge >=55)
cout<<"Senior citizen"<<endl;
else
cout<<"Not senior citizen"<<endl;
return 0;
}
Explanation:
Initialize the patronAge age, in this case set it to 71
Check the patronAge. If it is greater than or equal to print "Senior citizen". Otherwise, print "Not senior citizen". Use "endl" at the end of each print statement to have new lines.
Your smartphone, digital camera, and printer are all part of a network in your workspace. What type of network is likely in use
Answer:
PAN
Explanation:
PAN, short form of Personal Area Network, is a type of computer network built for personal use typically within a building. This could be inside a small office or a bedroom in a residence. This type of network basically consists of one or more personal computers, digital camera, printer, Tv, scanner, telephones, peripheral devices, video games console, and other similar devices.
It is pretty much simple to set up and allow for great flexibility. In this network, a single modem can be set up to enable both wired and wireless connections for multiple devices within the building.
For the Address Block 195.200.0.0/16 a. If you have 320 Customers that need 128 addresses/customer - will there be enough addresses to satisfy them? and explain why? b. Say the first block of 64 customers want 128 addresses/customer - what would the address space look like?
Answer / Explanation:
195.200.0.0/16
Note: Class C address can not be assigned a subnet mask of /16 because class c address has 24 bits assigned for network part.
2ⁿ = number of subnets
where n is additional bits borrowed from the host portion.
2ˣ - 2 = number of hosts
where x represent bits for the host portion.
Assuming we have 195.200.0.0/25
In the last octet, we have one bit for the network
number of subnets = 2¹ =2 network addresses
number of host = 2⁷ - 2= 126 network addresses per subnets
Financial application: calculate future investment value)
Write a program that reads in an investment amount, the annual interest rate, and the number of years, and then displays the future investment value using the following formula:
futureInvestmentAmount = investmentAmount * (1 + monthlyInterestRate) ^ numberOfMonths
For example, if you enter the amount 1000.56, an annual interest rate of 4.25%, and the number of years as 1, the future investment value is 1043.33. Here is a sample run:
Enter investment amount: 1000.56
Enter annual interest rate: 4.25
Enter number of years: 1
Accumulated value is 1043.92.
In Python.
Answer:
Using Python
python code:
investmentAmount=float(input("Enter investment amount: "))
annualInterestRate=float(input("Enter annual interest rate: "))
numberOfYears=int(input("Enter no. of years: "))
futureInvestmentAmount=investmentAmount*((1+(annualInterestRate/1200))**(numberOfYears*12))
#formula defined
print ("Accumulated value: ",round(futureInvestmentAmount,2))
output
Enter investment amount: 1000.56
Enter annual interest rate: 4.25
Enter number of years: 1
Accumulated value is 1043.92
A hard disk has four surfaces (that's top and bottom of two platters). Each track has 2,048 sectors and there are 131,072 (217) tracks per surface. A block holds 512 bytes. The disk is not "zoned." What is the total capacity of this disk
Answer:
128 GB
Explanation:
Here, we are interested in calculating the total capacity of the disk.
From the question, we can identify the following;
Number of surfaces = 4
Tracks per surface = 131,072
Number of sectors = 2,048
Each Block size = 512 bytes
Mathematically;
Total data capacity of the disk = no of tracks * no of sectors * block size
= 131,072 * 2048 * 512 bytes
= 2^17 * 2^11 * 2^9 bytes = 2^37 bytes
1 GB = 2^30 bytes
So 2^37 = 2^7 * 2^30
= 128 GB
Suppose the count function for a string didn’t exist. Define a function that returns the number of non-overlapping occurrences of a substring in a string.
Answer:
I am writing a Python program:
import re
def NonOverlapping():
string = input("Enter a string: ")
substring = input("Enter a substring to find its non-overlapping occurances in " + string +": ")
occurrences=len(re.findall(substring,string))
return occurrences
print("The number of non-overlapping occurrences: " , NonOverlapping())
Explanation:
I will explain the program line by line.
import re this is the module for performing regular expressions matching operations in Python.
def NonOverlapping(): this is the function definition. The function name is NonOverlapping and this function returns the number of non-overlapping occurrences of a substring in a string.
string = input("Enter a string: ")
substring = input("Enter a substring to find its non-overlapping occurances in " + string +": ")
The above two statement ares used to take input from the user. First the user is prompted to enter a string and the string is stored in string variable. Next user is asked to input the substring and its stored in susbtring variable.
occurrences=len(re.findall(substring,string)) This is the main line of the function. It has two methods i.e. len() and re.findall().
The re.findall() method returns all non-overlapping matches of substring in string. The string is checked for the given substring from left to right and all the non-overlapping occurrences of the substring are found and a list of matches is returned. len() method is used to return the length of the string but here it is used to count the number of non-overlapping occurrences substring in a string which are returned by re.findall() method. The whole result of these two methods is stored in occurrences.
return occurrences This statement returns the number of non-overlapping occurrences of a substring in a string computed in the above statement.
print("The number of non-overlapping occurrences: " , NonOverlapping())
This statement displays the result by calling NonOveralling() method.
When you program in a language that uses GUI components, you need to create them from scratch.
a. True
b. False
Answer:
B. False
Explanation:
You do NOT need to start from scratch when you program in a language that uses GUI components. You can think of it like the components are add-ons to your programming language.
Answer:
The correct answer is b. False
Explanation:
You don't need to create them from scratch.
Hope this helps!
Which of the following could an attacker use to overwrite instruction pointers in order to execute malicious code?
a) Memory leak
b) SQL injection
c) Resource exhaustion
d) Buffer overflow
Answer:
d) buffer overflow
Explanation:
When buffer overflow happens, data gets overwritten by caller data that is not supposed to be overwritten.
If the caller data is carefully crafter instruction code, this would be a way to execute malicious code.
Select the correct answer.
Maggie is preparing a business report. Which type of keys will she use to type in letters, numbers, symbols, and punctuations?
A typing keys
B. navigation keys
C.
function keys
OD
control keys
Answer:
Explanation:
On a windows operating system or any computer based application there are only three types of keys, these are alphanumeric keys, punctuation keys and special keys. Therefore the answers provided are not accurate. Each of these types of keys serves different purposes as follows.
Letters – use alphanumeric keys Numbers – use alphanumeric keys Symbols – use punctuation keys Punctuations – use punctuation keysIf you must use the answers choices provided we can say the following
Letters – use alphanumeric keys - typing keysNumbers – use alphanumeric keys - typing keysSymbols – use punctuation keys - function keysPunctuations – use punctuation keys - typing keys
The type of keys Maggi will use to type in letters, numbers, symbols, and punctuations are: A. typing keys.
An input device can be defined as an electronic device that is typically designed and used for sending data to a computer system. Thus, these devices are used for entering data (information) into a computer system.
In Computer technology, some examples of input devices include the following:
MouseScannerMicrophoneKeyboardA keyboard refers to a an electronic device that is typically designed to allow end users type textual information such as letters, numbers, symbols, and punctuations.
In this scenario, the type of keys Maggi will use to type in letters, numbers, symbols, and punctuations are typing keys because it comprises the 26 alphabets, number one to nine, and special characters or symbols.
Read more: https://brainly.com/question/17402566
The concept of a process in an operating system embodies two primary characteristics, one of which is:
Answer:
Resource Ownership and Scheduling execution
Explanation:
In process characteristic the characteristic is
Resource ownershipScheduling / ExecutionIn Resource ownership, the OS performs a protection function where unwanted interference in processes are with resources
In scheduling execution, the process has execution state and scheduled. They can be separated by resource ownership.
The dispatching of the process is the lightweight process, and it is multi-threading. The ability of the operating system supports the single concurrent process.
The process is a unit in the resource protection and protected the CPU and other processes. It contains the multiple thread execution
Each thread contains the running, ready state and saved the thread context and access the memory. Some necessary activities of the various threads are the same address space and the resources.
Problem You Need to Solve for This Lab:
You are asked to write an app to keep track of a relatively small music library. The app should load song information from a data file once the app is started. It should allow user to view, add, remove, and search for songs. The app should save the data back to the same data file when the program exits.
What Your Program Should Do:
Write an interactive text based menu interface (using a loop) that will allow the user to
ï‚· Enter information for a new song
ï‚· Display information for all the songs in the database with index for each song
ï‚· Remove a song by index
ï‚· Search for songs by a certain artist
ï‚· Search for songs by a certain album
ï‚· Quit
For each song, you need to keep track of:
title
artist
duration
album
Allow the program to keep looping until user wants to quit. When the program starts, it should load the tasks from external file ("songs.txt") into memory. When user enters information about the new song, the program needs to read them in, save them in memory and eventually write them to the external data file ("songs.txt"). The file format could look like:
Stereo Hearts;Gym Class Heroes;3;34;The Papercut Chronicles II
Counting Stars;OneRepulic;4;17;Native
The ';' is used as a delimiter or field separator. Each record ends with a new line character.
Some Implementation Requirements:
Write at least four functions WITH arguments for this assignment.
Use struct named Song to model each song
Use array of structs to model the collection of songs.
Hint: In this assignment, some data fields may have multiple words in it. Therefore,
you now SHOULD read using the 3 argument version of get.
Watch out. When using the 3 argument version of get you need to make sure to
remove the delimiter or newline. Therefore, anytime you read (even a confirmation
message), make sure to eat the newline using cin.ignore(...)!
Make sure to have a delimiter written between each item in the file – like a newline.
This will be important when you read the information back from the file.
For submission, your data file should contain a sufficient set of test data. It should have test cases for same artist with multiple songs and same album with multiple songs in it.
Do-Not List:
No Global Variables (you can have global constants)
Do not use Classes or Linked Lists
You must use cstring and char arrays. (do not use )
No use of the stdio library (use iostream and fstream)
Instead of the string class, you will be using arrays of characters and the cstring library
No STL containers such as vector. You must implement your own array for this class.
Answer:
Write questions properly
Explanation:
Then it is easy to say answer
Constructing a concurrent server by spawning a process has some advantages and disadvantages compared to multithreaded servers. Discuss a few.
Answer:
The advantage and the disadvantage of the relevant query are illustrated in the explanation in the paragraph below.
Explanation:
Advantage:
The benefit of creating a simultaneous server through spawning a mechanism seems to be that alternative methods are shielded against everyone else, which would be very necessary whenever the extremely database manages communication services entirely.Disadvantage:
The downside about creating a concurrent system through spawning a methodology seems to be that this process seems to be very expensive but using multicore processing systems should save this expense. It is also easier when using threads again for the aim of communicating between two or even more participants although we stop the kernel executing the correspondence.A(n) ________ event is an alert that is generated when the gossip traffic enables a platform to conclude that an attack is under way
A. PEP
B. DDI
C. IDEP
D. IDME
Answer:
B. DDI
Explanation:
A(n) DDI event is an alert that is produce or invoke when the gossip traffic allow a platform to conclude that an attack or potential attack is under way.
A device driver is a computer program that operates or controls a particular type of device that is attached to a computer system.
A driver provides or supply a software interface to hardware devices which enable the operating systems and other computer programs to access hardware functions without needing to know the exact details in respect of the hardware being used.
DDI means Device Driver Interface
A driver relate or communicate with the device via the computer bus or communications subsystem to which the hardware is connected. Whenever a calling program invokes a routine in the driver, the driver will subsequently transmit commands to the device.
The common channel signaling (CCS) system provides a separate network dedicated to control and signaling over the PSTN. This enables subscribers to establish calls on an on-demand basis.
A. True
B. False
Common Channel Signaling (CCS) is a type of signaling used in multichannel communications systems to control, account for, and manage traffic on all the channels of a link. User information is not sent over the common-channel signaling channel.
What CCS system provides a separate network?Digital communication signaling takes the form of channel-associated signaling (CAS), often referred to as per-trunk signaling (PTS).
It uses routing information, like the majority of telecommunication signaling techniques, to send the voice or data payload to the intended recipient.
The SMS effectively serves as the CAS's administration hub. It is a hardware and software combination that is integrated with the CAS server. Each subscriber's information, including the TV stations they have chosen to subscribe to, is stored and managed via SMS.
Therefore, it is true that (CCS) is a type of signaling where a collection of speech and data channels share an exclusive channel for control signals.
Learn more about system here:
https://brainly.com/question/29491324
#SPJ5
A security analyst is performing a BIA. The analyst notes that in a disaster, failover systems must be up and running within 30 minutes. The failover systems must use back up data that is no older than one hour. Which of the following should the analyst include in the business continuity plan?
A. A maximum MTTR of 30 minutes
B. A maximum MTBF of 30 minutes
C. A maximum RTO of 60 minutes
D. An SLA guarantee of 60 minutes
Answer:
D. A maximum RPO of 60 minutes
Explanation:
Note that an option is not included in this list of options.
The complete list of options is:
A. A maximum MTTR of 30 minutes
B. A maximum MTBF of 30 minutes
C. A maximum RTO of 60 minutes
D. A maximum RPO of 60 minutes
E. An SLA guarantee of 60 minutes
The Recovery Point Objective tells how old a backup file must be before it can be recovered by a system after failure.
Since the data in the failover systems described in this question must be backup and recovered after the failure, it will be important to include the Recovery Point Objective (RPO) in the Business Continuity Plan.
Since the failover systems must use back up data that is no older than one hour, the backup of the system data must be done at intervals of 60 minutes or less. Meaning that the maximum RPO is 60 minutes.
Note that RPO is more critical than RTO in data backup
The ethical framework that assumes that people are deeply connected to one another in webs of relationships, and that ethical decisions cannot be made outside the context of those relationships is known as
Answer:
Ethics of Care
Explanation:
Ethics of care is a feminist philosophical idea that promotes the idea that the interpersonal relationship between individuals should be a determinant of their moral response to different situations. The theory was developed by Carol Gilligan. The emphasis of this theory is on how to respond to situations, taking into context, a person's relationship with others.
According to a philosopher named Tronto, for people to be effective at displaying care, they would need to;
1. be attentive to the needs of others
2. be responsible for their situations
3. be adequately qualified to render such help, and
4 be responsive enough to the needs of others.
What are the differences between editing manually and editing digitally? What tools are used for each?
Answer:
Both manual and digital editing are concepts used in proofreading.
Manual editing is also called "hard proofreading" (or "hard proofing" for short). It is the process of proofreading, modifying or revising printed documents. In this type of proofreading, one would normally manually mark parts of the printed documents with editing materials such as ink, pen, marker e.t.c
Digital editing is also called "soft proofing". In contrast to manual editing, this type is done on digital documents. These documents include, but not limited to, DOC, txt, PDF, image, audio and video files.
Tools for editing manually are;
i. pen
ii. ink
iii. tipex
Tools for editing digitally are;
i. Photoshop application
ii. Text editors such as notepad++, Microsoft word
Proofreading has evolved in recent times as a result of advancements in technology. Now, manual proofreading has paved way for digital proofreading, which allows revising of PDF and DOC files. The difference in both forms is as follows:
Manual Editing: In the process of revising or proofing printed documents, one would manually apply standard proofreading marks. Manual editing is also known as "Hard proofing", as the process requires proofreaders to mark the hard copies.
Digital Editing: In the process of revising or proofing digital documents i.e. PDF and DOC files, one would digitally apply the proofreading marks. Thus, corrections and edits are transferred electronically among authors, proofreaders. Digital editing is also known as "Soft proofing", as the process requires proofreaders to mark the soft copies i.e. without using any paper or pen.
There are a number of electronic tools and marks available for both techniques of
proofreading. Some tools used for manual proofreading include- deletion, capitalization, and insertion, close-up, transpose.
Tools used in digital proofreading include- spell check, readability levels, trite expressions, and comment, track changes.
Learn More: https://brainly.com/question/10002469
What would be suggested way to share and sustain knowledge with members in a team ?
A) Sharing of best practices and lessons learnt through emails
B) Sharing knowledge through knowledge sharing sessions
C) Sharing knowledge through informal conversations, for example, during lunch breaks.
D) Sharing best practices, lessons learnt and other topics in a central place where team can collaborate
Answer: D) Sharing best practices, lessons learned and other topics in a central place where the team can collaborate
Explanation: Knowledge sharing within a team is usually an important aspect of building a strong and efficient team. Acquiring knowledge usually comes from the experience gathered from previous projects, learning, or tips learned from various sources. Therefore, sharing knowledge is always a good way to ensure that what is gained is sustained by letting others know. Sharing and sustaining knowledge is most effective when transmitted or aired to a group of people usually a team gathered in an interactive setting which allows members to freely share experience and get feedback, views, or thoughts from other collaborators.
True or False: It is okay to just paste the URLs of the items you used for references at the end of a paper. Select one: True False
It is not okay to just paste the URLs of the items you used for references at the end of a paper therefore the answer is False
For better understanding, lets explain why the answer is false
When citing a reference it not OK to cite URLs. when you are citing onlh the URL is wrong because theURL could change at any time and the fact remain that it is not everyone who reads your paper can do it electronically or has access to the internet., so the url is not the first step to take. The right thing to do is to give the name of the paper, the author(s), the Journal it was published in and the year it was published.
From the above, we can therefore say that the answer is It is not okay to just paste the URLs of the items you used for references at the end of a paper therefore the answer is False, is correct.
Learn more about referencing from:
https://brainly.com/question/13003724
A technician is evaluating malware that was found on the enterprise network. After reviewing samples of the malware binaries, the technician finds each has a different hash associated with it. Which of the following types of malware is MOST likely present in the environment?
a. Trojan
b. Polymorphic worm
c. Rootkit
d. Logic bomb
e. Armored virus
Answer:
(b) polymorphic worm
Explanation:
A polymorphic worm can be compared with a chameleon. It changes its color so as to blend with the background of the surrounding to avoid being seen or caught. A polymorphic worm is a special type of worm that keeps changing its constituent features in order to avoid being detected. The most common way in which polymorphic worms hide their codes is by using encryption.
Polymorphic worms have two parts: the part that changes and the one that does not change. The part that changes include the characteristics of the worm such as encryption key, associated hash value e.t.c. The part that does not change is basically its functionality. Therefore, although the characteristics of the worm keep changing, its overall function remains the same.
In total, how many 8-bit registers are there in the Intel 80x86 CPU design presented in class? Name one of these 8-bit registers.
Answer:
In general the number of bit registers in Intel 80x86 CPU design when combined together forms a 16 - bit register
An example of the -bit registers are AH, AL, BH, BL, CH, CL, DH, and DL
Explanation:
Solution
The 8086 CPU design has a total of eight 8-bit registers and these register can be integrated together to make 16- bit register as well.
The 16-bit data is stored by breaking the data into a low-order byte and high order byte.
The name of the 8 bit registers is shown below:
AH, AL, BH, BL, CH, CL, DH, and DL
Consider the following table used for grading assignments.
Score in points Grade
90-100 A
80-89 B
70-79 C
60-69 D
59 and below F
Your task is to test a course assessment utility that uses the criteria given above. List the valid and invalid equivalent partitions and give the test cases for each. Your test cases are required to incorporate boundary value testing.
Answer:
We can use if-else statements to implement the given problem.
C++ Code:
#include <iostream>
using namespace std;
int main()
{
int marks;
cout<<"Enter the marks"<<endl;
cin>>marks;
if (marks>=90 && marks<=100)
{
cout<<"Grade: A"<<endl;
}
else if (marks>=80 && marks<=89)
{
cout<<"Grade: B"<<endl;
}
else if (marks>=70 && marks<=79)
{
cout<<"Grade: C"<<endl;
}
else if (marks>=60 && marks<=69)
{
cout<<"Grade: D"<<endl;
}
else if (marks>=0 && marks<=59 )
{
cout<<"Grade: F"<<endl;
}
else
{
cout<<"Invalid marks!"<<endl;
}
return 0;
}
Test results:
Enter the marks
100
Grade: A
Enter the marks
90
Grade: A
Enter the marks
89
Grade: B
Enter the marks
80
Grade: B
Enter the marks
79
Grade: C
Enter the marks
70
Grade: C
Enter the marks
69
Grade: D
Enter the marks
60
Grade: D
Enter the marks
59
Grade: F
Enter the marks
45
Grade: F
Enter the marks
105
Invalid marks!
Enter the marks
-6
Invalid marks!
Hence all the cases are working fine!
Can Someone Help
Please Show Work
Answer:
1) 1/14
2) 1/7
Explanation:
Summer Vacation
Number of times letters listed
S 1
U 1
M 2
E 1
R 1
V 1
A 2
C 1
T 1
I 1
O 1
N 1
Probability= Successful outcome ÷ Possible outcome.
Successful outcome(C)=1
*Successful outcome(M)=2
Successful outcome refers to letters chosen.
*Possible outcome=14
*Possible outcome refers to total number of letters.
Probability of C =1/14
Probability of M= 2/14=1/7
Hope this helps ;) ❤❤❤
Let me know if there is an error in my answer.