Answer: The correct answer is true
Explanation:
I got this answer right. Hope this helps :)
An Internet Service Provider(ISP) has three different subscription
packages for its customers:
Package A: For $15 per month with 50 hours of access provided.
Additional hours are $2.00 per hour over 50 hours.
Assume usage is recorded in one-hour increments,
Package B: For $20 per month with 100 hours of access provided.
Additional hours are $1.50 per hour over 100 hours.
Package C: For $25 per month with 150 hours access is provided.
Additional hours are $1.00 per hour over 150 hours
Assume the Billing Cycle is 30 days.
The ISP has contracted us to write the application software for their
new Billing System.
We will do the project over the next two weeks:
WEEK 9 -- Write the Functions to do the tasks that we will be using
to develop the application in Week 10.
WEEK 10 -- Write an Interactive Console Application using the
Functions which you developed in Week 9.
===========================================================================
DESCRIPTION of PROBLEM SET for Week 9
===========================================================================
Write the Function Definitions for the following tasks needed by
the ISP Billing System.
getPackage
validPackage
getHours
validHours
calculatePkg_A
calculatePkg_B
calculatePkg_C
---------------------------------------------------------------------------
getPackage: get value (A, B, C) for selected package from the keyboard.
validPackage: ensure that the value entered is an (A,B,C).
getHours: get value (0 - 720) for hours of usage from the keyboard.
validHours: ensure that the value entered is between 0 and 720.
calculatePkg_A: calculates the monthly charges for internet usage
based on hours of usage when Package 'A' is selected.
Use the knowledge of computational language in C code to write a code that has three different subscription packages for its customers.
How to write code about sales?To make it simpler the code is described as:
#include <iostream>
#include <string>
using namespace std;
int main() {
string package;
float time;
float price;
cout << "Choose package: ";
cin >> package;
// Package validation
if ((package == "A") || (package == "B") || (package == "C")) {
cout << "The number of hours: ";
cin >> time;
// Time validation
if (time <= 744) {
// Package A
if (package == "A") {
if (time > 50) {
price = 15 + (time - 50) * 2;
} else {
price = 15;
}
// Package B
} else if (package == "B") {
if (time > 100) {
price = 20 + (time - 100) * 1.5;
} else {
price = 20;
}
// Package C
} else if (package == "C") {
if (time > 150) {
price = 25 + (time - 150) * 1;
} else {
price = 25;
}
cout << "Price: $" << price;
}
See more about C code at brainly.com/question/19705654
QUESTION 7/10
Why would someone choose an agency role instead of an in-house role?
1 point
To work in a predictable environment
To work with one company and its products
To work with one industry only
To work on different projects across multiple industries
Someone may choose an agency role instead of an in-house role because: they want "To work on different projects across multiple industries" (Option D)
What is the explanation for the above response?
There are several reasons why someone may choose an agency role instead of an in-house role:
Exposure to a variety of industries and projects: One of the primary benefits of working for an agency is the opportunity to work on a diverse range of projects for a variety of clients across different industries. This can provide valuable exposure to different types of work and industries, which can be beneficial for personal and professional growth.
Work with a variety of clients: In an agency role, you have the opportunity to work with a range of clients, rather than being limited to working with just one company and its products. This can be rewarding for those who enjoy building relationships with different clients and helping them achieve their goals.
Opportunity for career growth: Agencies often have a flatter organizational structure, which can provide opportunities for career growth and advancement more quickly than in-house roles. In addition, working on different projects and with different clients can help you develop a diverse set of skills, which can be valuable for career growth.
Dynamic work environment: Agency roles can be fast-paced and dynamic, with new projects and clients coming in regularly. This can be exciting for those who thrive on change and enjoy working in a dynamic, fast-paced environment.
Thus, the decision to choose an agency role over an in-house role will depend on individual preferences and career goals.
Learn more about agency role at:
https://brainly.com/question/30156954
#SPJ1
how many bits long is a autonomous system number?
Answer:
There are two different formats to represent ASNs: 2-byte and 4-byte. A 2-byte ASN is a 16-bit number. This format provides for 65,536 ASNs (0 to 65535).
Explanation:
Lesson 3 - Calling All Operators
Exit
37 of 42
Test
Reset
order
75
do
create variable amount ToCoupon
75 +
order
print
"To receive a coupon, you will need to spend $ >
amount ToCoupon
print
Code
Check the customer's order amount. If it is less than $75, determine how much more
needs to be spent to reach $75 and give the customer that information.
< PREV
Answer:
.m
Explanation:
input("Enter a number: ")
print(num * 9)
Note that in the above case, if a person save the input as num,
this will print the input 9 times.
How do you go about this code?Therefore, since there is 9 times:
So
num = input("Enter a number: ")
print(num * 9)
If a person actually want to do a real math calculations, then one need to input needs to be inside the number.
num = float(input("Enter a number: "))
print(num * 9)
This is one that do not bring about any errors where the user do not input a number.
Learn more about coding from
https://brainly.com/question/23275071
#SPJ1
Power Practical Portable LED Rope Light Lantern, Multiple Size Selection, Waterproof Luminoodle Rope Light for Outdoor Camping, Hiking, Emergencies Use.
a. true
b. false
Bending the rope light back and forth repeatedly can damage the internal wiring and components, therefore try to bend it just in one direction.
Winding your rope lights around tiny diameter poles and trees might cause the wiring to break and short out parts. The most common variety of rope light is 120V, which is suitable for most indoor and outdoor lighting installations where an electrical outlet is available. A 12V (DC) rope light is commonly used for parade floats, bikes, boats, and low voltage landscape lighting and is powered by a converter or battery. Bending the rope light back and forth repeatedly can damage the internal wiring and components, therefore try to bend it just in one direction.
Learn more about wires here-
https://brainly.com/question/17316634
#SPJ4
What are the benefits of online notebooks? Check all that apply..
They allow users to store files.
They allow users to share files.
They give users a way to practice for tests.
They help users organize assignments.
They allow users to clip information from web pages.
They can serve as school calendars.
Answer:
its a They allow users to store files. b They allow users to share files. d They help users organize assignments and f They can serve as school calendars.
Explanation:
:))))
Answer:
abdf
Explanation:
Given two integers as user inputs that represent the number of drinks to buy and the number of bottles to restock, create a VendingMachine object that performs the following operations:
Purchases input number of drinks
Restocks input number of bottles
Reports inventory
The VendingMachine is found in VendingMachine.java. A VendingMachine's initial inventory is 20 drinks.
Ex: If the input is:
5 2
the output is:
Inventory: 17 bottles
Need this answer in java! !!!!!!!!!!!!
Answer:
import java.util.Scanner;
class Main {
public static void main (String args[])
{
Scanner input = new Scanner(System.in);
VendingMachine machine = new VendingMachine(20);
System.out.print("Enter nr to purchase: ");
int nrPurchased = input.nextInt();
System.out.print("Enter nr to re-stock: ");
int nrRestock = input.nextInt();
machine.Transaction(nrPurchased, nrRestock);
input.close();
}
}
class VendingMachine {
private int inventory;
public VendingMachine(int initialInventory) {
inventory = initialInventory;
}
public void Transaction(int nrToBuy, int nrToRestock) {
inventory += nrToRestock - nrToBuy;
System.out.printf("Inventory: %d bottles.\n", inventory);
}
}
The program is an illustration of a sequential program, and it does not require loops, iterations and branches.
The program in java, where comments are used to explain each line is as follows:
import java.util.Scanner;
class Main {
public static void main (String args[]){
//This creates a scanner object
Scanner input = new Scanner(System.in);
//This gets input for the number of purchases
int Purchased = input.nextInt();
//This gets input for the number of restocks
int Restock = input.nextInt();
//This calculates and prints the inventory
System.out.print("Inventory: "+(20 - Purchased + Restock)+" bottles");
}
}
At the end of the program, the net inventory is printed.
Read more about similar programs at:
https://brainly.com/question/22851981
You are a systems analyst. Many a time have you heard friends and colleagues complaining that their jobs and businesses are being negatively impacted by e-commerce. As a systems analyst, you decide to research whether this is true or not. Examine the impact of e-commerce on trade and employment/unemployment, and present your findings as a research essay.
E-commerce, the online buying and selling of goods and services, has significantly impacted trade, employment, and unemployment. This research essay provides a comprehensive analysis of its effects.
What happens with e-commerceContrary to popular belief, e-commerce has led to the growth and expansion of trade by breaking down geographical barriers and providing access to global markets for businesses, particularly SMEs. It has also created job opportunities in areas such as operations, logistics, customer service, web development, and digital marketing.
While certain sectors have experienced disruption, traditional businesses can adapt and benefit from e-commerce by adopting omni-channel strategies. The retail industry, in particular, has undergone significant transformation. E-commerce has empowered small businesses, allowing them to compete with larger enterprises and fostered entrepreneurial growth and innovation. However, there have been job displacements in some areas, necessitating individuals to transition and acquire new skills.
Read mroe on e-commerce here https://brainly.com/question/29115983
#SPJ1
Which concept deals with connecting devices like smart refrigerators and smart thermostats to the internet?
1 point
IoT
IPv6
NAT
HTTP
The concept that deals with connecting devices like smart refrigerators and smart thermostats to the internet is the Internet of Things (IoT).
The correct answer to the given question is option A.
It is a network of interconnected devices and systems that can interact with each other through the internet, and it includes anything that can be connected to the internet, from smartphones to cars, homes, and even cities.
IoT is a revolutionary technology that has the potential to change the way we live and work. It is built on the foundation of the internet and relies on the Internet Protocol (IP) for communication between devices.
To enable IoT to operate on a global scale, IPv6 was developed. This protocol provides a large number of unique IP addresses that can accommodate the growing number of IoT devices that are being connected to the internet. Network Address Translation (NAT) is another concept that is used to connect devices to the internet. It is a technique that allows multiple devices to share a single public IP address.
Hypertext Transfer Protocol (HTTP) is the primary protocol used to transfer data over the internet. In summary, IoT is the concept that deals with connecting devices like smart refrigerators and smart thermostats to the internet.
For more such questions on Internet of Things, click on:
https://brainly.com/question/19995128
#SPJ8
Write an interactive Java Program named HollowRightAngled Triangle.java which uses the JOptionPane class for input. The program should ask you to input a character of your choice, as well as the height/Depth of the Triangle. The character can be any character, e.g., a star, an integer, a letter of the alphabet, a $ sign, etc. When the character has been entered by the user, the program should echo using the System.out.println() output scheme, the words, "You have Entered The Character, according to the character entered. After that, the program should ask you to enter a depth/height. Once the height/depth has been entered, the pogram should then draw/output a right-angled triangle made of the chosen character .
Here is a Java program to draw a hollow right angled triangle:
import javax.swing.JOptionPane;
public class HollowRightAngledTriangle {
public static void main(String[] args){
String character = JOptionPane.showInputDialog(null, "Enter a character: ");
System.out.println("You have entered the character " + character);
String height = JOptionPane.showInputDialog(null, "Enter height: ");
int h = Integer.parseInt(height);
for (int i = 1; i <= h; i++) {
for (int j = 1; j <= i; j++) {
if (j == 1 || i == h || i == j){
System.out.print(character);
}
else {
System.out.print(" ");
}
}
System.out.println();
}
}
How it works:
We use JOptionPane to promt the user for input.We store the character in the String character.We store the height in the String height and parse it to an int.We use two nested for loops.The outer loop iterates over the height.The inner loop iterates over i , the current height.We print the character if j (the inner loop counter) is 1 (first element in row)or if i is equal to h (last row) or if i equals j (last element in row).Otherwise we print a space.After the inner loop, we go to the next line.How does so called marshalling solve the problem of different byte ordering of sender and receiver? 8. What is the purpose of a portmapper? How does so called marshalling solve the problem of different byte ordering of sender and receiver ?
8 . What is the purpose of a portmapper ?
Marshalling solve the problem of different byte ordering of sender and receiver by:
By the use of Common Object Request Broker Architecture (CORBA): What is Marshalling?Marshalling is the act of moving and formatting a group of data structures into an external data depiction type good for transmission in a message.
A port mapper is known to be a kind of protocol that tells or map the number or the kind of version of any type of Open Network Computing Remote Procedure Call (ONC RPC) program to a port that is often used in the work of networking by that version of that given program.
Learn more about portmapper from
https://brainly.com/question/879750
#SPJ1
what are demographics
Answer:
What Is Demographics? Demographic analysis is the study of a population based on factors such as age, race, and sex. Demographic data refers to socio-economic information expressed statistically including employment, education, income, marriage rates, birth and death rates and more
Explanation:
Yea
Answer:
The Characteristics of a population of people
Explanation:
learned it in class
Explain possible ways that Darla can communicate with her coworker Terry, or her manager to make sure Joe receives great customer service?
Answer:
They can communicate over the phone or have meetings describing what is and isn't working for Joe. It's also very important that Darla makes eye contact and is actively listening to effectively handle their customer.
Explanation:
how adobe photoshop can improve productivity of a organization
Read an integer value representing a year. Determines if the year is a leap year. Prompts the user to enter another year or quit.
A year is a leap year if −
1. It is evenly divisible by 100
2. If it is divisible by 100, then it should also be divisible by 400
3. Except this, all other years evenly divisible by 4 are leap years.
sample run:
Enter a year (0 to quit): 2024
2024 is a leap year
Enter a year (0 to quit): 1997
1997 is not a leap year
Enter a year (0 to quit):
The code to verify if an year is a leap year is developed throughout this answer.
Code to verify if the year is a leap yearWe are going to develop a C code, hence first we declare the main function, as follows:
int main(){
return 0;
}
Then, we declare the integer variable to store the year, as follows:
int main(){
int year;
return 0;
}
Then the year is read in a loop, until the year read is different of 0.
int main(){
int year;
do{
printf("Enter a year (0 to quit):\n");
scanf("%d", & year);
}while(year != 0);
return 0;
}
Then conditional clauses are inserted to verify if the year number is an acceptable input (non-negative number), and if it is a leap year.
do{
printf("Enter a year (0 to quit):\n");
scanf("%d", & year);
if(year > 0){
//Calculates the remainder of the division by 4.
if(year % 4 == 0){
//If divisible by 4 but not by 100, it is a leap year.
if(year % 100 != 0){
printf("%d is a leap year\n", year);
}
//If divisible by 100, it is only a leap year if divisible by 400 also
else{
if(year%400 == 0){
printf("%d is a leap year\n", year);
}
else{
printf("%d is not a leap year\n", year);
}
}
}
//If not divisible by 4, then it is a not leap year
else{
printf("%d is not a leap year\n", year);
}
}
}while(year != 0);
return 0;
}
Learn more about leap years at https://brainly.com/question/24224214
#SPJ1
Your professor is advising a new crowd-funding app for women's self-help groups (SHGs) in Latin America on their database architecture. This is the business requirement she has worked on: All campaigns belong to a SHG. An SHG must exist before a campaign is created, and when an SHG is deleted from the database, all its campaigns are deleted. SHGs always belong to a country, and a country must be added to the app before SHGs are added to it. Which of the following is true of the entities defined in the database? Select all that apply.
Question 6 options:
An SHG entity depends on a Campaign entity
A Campaign entity is a depend on the SHG entity
A Country is not dependent on the Campaign entity
An SHG entity is dependent on a Country entity
A Campaign is an Independent entity
Based on the given information, the following statements are true:
An SHG entity depends on a Country entity.A Campaign entity is dependent on the SHG entity.What is a country entity?In the context of database design, a country entity refers to a logical representation of a country within a database system.
It typically stores information related to countries, such as their names, codes, demographics, or any other relevant data.
The country entity serves as a reference point for other entities in the database, such as self-help groups (SHGs) or campaigns, allowing for proper organization and association of data within the system.
Learn more about Entity at:
https://brainly.com/question/29491576
#SPJ1
What is a word processing program? Give examples of word processing programs.
Answer:
A word processor, or word processing program, does exactly what the name implies. It processes words. It also processes paragraphs, pages, and entire papers. Some examples of word processing programs include Microsoft Word, WordPerfect (Windows only), AppleWorks (Mac only), and OpenOffice.org.
What is the keyboard shortcut for opening the Help Pane?
Ctrl+H
F9
F1
Shift+A
Answer:
In windows, the keyboard shortcut for opening the Help Pane is F1
by applying styles formats are being applied ?
A. The same
B. Different
C. Various
D. Similar
Answer:
A
Explanation:
The same formats are being applied.
Answer:
A
Explanation:
Let's take the letters in a keyboard. If I were to type a document; there are several word format I can chose like Calibre, Times New Roman, Gothic etc. However for each word format I can make the words bold or italicized which are styles.
QUICK PLEASE!!!!!! 100 POITNS
Which line of code will have "navy rainbow" as an output?
class pencil:
color = 'yellow'
hardness = 2
class pencilCase:
def __init__(self, color, art):
self.color = color
self.art = art
def __str__(self):
return self.color + " " + self.art
# main program
pencilA = pencil()
print (caseA)
Answer: (A) -> caseA.pencilCase(’navy’, ‘rainbow')
Explanation:
I believe that you may have written an error on the second to last line of your code, instead of setting:
pencilA = pencil() --> this should be: caseA = pencil()
which makes A the correct answer!
The given program reads a list of single-word first names and ages (ending with -1), and outputs that list with the age incremented. The program fails and throws an exception if the second input on a line is a string rather than an integer. At FIXME in the code, add try and except blocks to catch the ValueError exception and output 0 for the age.
Ex: If the input is:
Lee 18
Lua 21
Mary Beth 19
Stu 33
-1
then the output is:
Lee 19
Lua 22
Mary 0
Stu 34
code -
# Split input into 2 parts: name and age
parts = input().split()
name = parts[0]
while name != '-1':
# FIXME: The following line will throw ValueError exception.
# Insert try/except blocks to catch the exception.
age = int(parts[1]) + 1
print('{} {}'.format(name, age))
# Get next line
parts = input().split()
name = parts[0]
The programme serves as an example of how to use exception catching.
What do Python exceptions mean?An exception is a circumstance that develops while a programme is being run that prevents the regular flow of the program's instructions. When a Python script encounters a situation that it cannot handle, it will often throw an exception. An exception in Python is an object that describes a mistake.
age = int(parts[1]) plus one
print(name, age).format(")
# Obtain the next line.
split = input() parts ()
part = name[0]
other than ValueError:
"Invalid value!" is printed.
# Obtain the next line.
split = input() parts ()
part = name[0]
the entire programme
The whole schedule is as follows:
# Separate the name and age fields in the input.
split = input() parts ()
part = name[0]
as long as name!= '-1':
# CORRECTION: The next line will raise a ValueError exception.
# Add try/except blocks to your code to capture exceptions.
try:
age = int(parts[1]) plus one
print(name, age).format(")
# Obtain the next line.
split = input() parts ()
part = name[0]
other than ValueError:
"Invalid value!" is printed.
# Obtain the next line.
split = input() parts ()
part = name[0]
To know more about programme visit:-
https://brainly.com/question/30307771
#SPJ1
FOR CALL OF DUTY MOBILE GAMERS PLS HELP!
I am on lvl 42 and was wondering if I created a call of duty account will that reset my account or will it stay the same?
since the app are two different things its crucial to have a activision account, though the progress wont be reset unless you do have an activision account
Write a class definition named Book. The Book class should have data attributes for a book’s title, the author’s name, and the publisher’s name. The class should also have the following:
An _ _init_ _ method for the class. The method should accept an argument for each of the data attributes.
Accessor and mutator methods for each data attribute.
An _ _str_ _ method that returns a string indicating the state of the object
Make a class called "Book" that has data attributes for the title, author, and publisher. Include an initialization method, accessor and mutator functions for each attribute, and a str function to show the current state.
What do Python class members accessors and mutators do?A function that returns a duplicate of an internal variable or computed value is known as an accessor method. These are frequently given names that begin with the word get. A function that slightly alters the value of an internal data variable is known as a mutator method.
function __init__(self, title, author, publisher) class Book:
self.title is the same as title self.Author is the same as the author.Publisher is also Publisher.
Define get_title() and return self.title.
self.title = title; def set_title(self, title);
return self.author from the function def get_author
self.author equals author in the definition of set_author(self, author).
return self.publisher from the function def get_publisher
set_publisher(self, publisher) should be defined as self.Publisher is also Publisher.
return f from def __str__(self): "'self.title' by'self.author', published by'self.publisher'"
To know more about data visit:-
https://brainly.com/question/13650923
#SPJ1
TRUE OR FALSE the for loop is a posttest loop that has built-in expressions for initializing, testing, and updating.
It is false that the for loop is a posttest loop that has built-in expressions for initializing, testing, and updating.
What is for loop?For iterating repeatedly through a sequence, use a for loop (that is either a list, a tuple, a dictionary, a set, or a string).
This functions more like an iterator method seen in other object-oriented programming languages and is less like the for keyword found in other programming languages.
A While loop's test condition must always be an integer number. A posttest loop is the Do-While loop.
Because they evaluate the condition before processing the statement or statements in the loop body, the While and For loops are regarded as pretest loops.
Thus, the given statement is false.
For more details regarding loop, visit:
https://brainly.com/question/19116016
#SPJ1
demons I shall be your eternal nightmare
this workbook will be used by people with excel 2003 only. save it in the best format for those users allow compatibility issues
Answer:
2003 will only use the workbook
Implement it in C++.
The project descriptions are quite general, the way they are executed, designed, and refined in detail is left to you. Remember that the more technical aspects of object-oriented programming (classes, virtual methods, inheritance, abstract classes, operator overloading, constructors, destructors, etc.) you include in your project, the better.
The classes should contain methods allowing to read/set the value of individual fields (day, month, year, hour, minute, etc.), printing and reading in the appropriate format, comparing objects (earlier, later), shifting by a specified number of days, minutes, etc.
Here's an algorithm for implementing a date and time class in C++ with the mentioned features:
The AlgorithmCreate a class called "DateTime" with private member variables for day, month, year, hour, and minute.
Include public methods to read and set the values of individual fields.
Implement methods to print the date and time in the desired format.
Add comparison methods to determine if one DateTime object is earlier or later than another.
Implement methods to shift the DateTime object by a specified number of days, minutes, etc.
Utilize operator overloading to enable intuitive comparisons and arithmetic operations on DateTime objects.
Use constructors and destructors for proper initialization and memory management.
By following this algorithm, you can create a robust and versatile DateTime class in C++.
Read more about algorithm here:
https://brainly.com/question/29674035
#SPJ1
Write a function longer_string() with two string input parameters that returns the string that has more characters in it. If the strings are the same size, return the string that occurs later according to the dictionary order. Use the function in a program that takes two string inputs, and outputs the string that is longer.
Answer:
Here you go :)
Explanation:
Change this to your liking:
def longer_string(s1, s2):
if len(s1) > len(s2):
return s1
elif len(s1) < len(s2):
return s2
else:
return s2
x = input("Enter string 1: ")
y = input("Enter string 2: ")
print(longer_string(x, y))
We know that February has either 28 or 29 days, but there is a year in the future, February will have 30 days
What exactly is this year?
Answer:
39 days is the offensive number
Explanation:
cuz calendar no have that numer