Answer:
From what I see, you're trying to convert an int to a double&. This is illegal. Do you have any arrays with ints?
Which XXX will prompt the user to enter a value greater than 10, until a value that is greater than 10 is actually input?
do {
System.out.println("Enter a number greater than 10:");
userInput = scnr.nextInt();
} while XXX;
a. (!(userInput < 10))
b. (userInput < 10)
c. (userInput > 10)
d. (!(userInput > 10))
Answer:
b. (userInput < 10)
Explanation:
The piece of code that will accomplish this would be (userInput < 10). The code will first ask the user to "Enter a number greater than 10:" then it will compare the value of userInput to 10, if it is less than 10 it will redo the loop over and over again until the userInput is greater than 10. Once the userInput is greater than 10 it will break out of the do-while loop and continue whatever code is written under and outside the do-while loop
If Laura wanted to solve a problem using recursion where the last statement executed is the call to the same method, what type of recursion should she use?
A. tail method
B. tail recursion
C. base recursion
D. infinite recursion
Answer:
B: Tail recursion
Explanation:
The answer is tail recursion because in python, tail recursive function is defined as the function when the recursive call is the last thing that will be executed by the given function in question.
This definition tallies with the definition we have in the question.
So, option B is correct.
Sarah is a detail-oriented programmer. While testing her program, what other skill would she have to apply in order to detect all bugs?
A.
troubleshooting
B.
business skills
C.
managerial skills
D.
concentration
E.
time management
Answer:
A. troubleshooting
Explanation:
Troubleshooting is the process of trying to detect problems with a software or hardware component so as to apply solutions to it.
Therefore, Sarah would need troubleshooting skills to help her test her program to detect all bugs and fix it.
(Reverse number) Write a program that prompts the user to enter a four-digit inte- ger and displays the number in reverse order. Here is a sample run:
Answer:
The program in Python is as follows:
num = int(input("4 digit number: "))
numstr = str(num)
if(len(numstr)!=4):
print("Number must be 4 digits")
else:
numstr = numstr[::-1]
num = int(numstr)
print(num)
Explanation:
This prompts user for input
num = int(input("4 digit number: "))
This converts the input number to string
numstr = str(num)
This checks if number of digits is or not 4
if(len(numstr)!=4):
If not, the following message is printed
print("Number must be 4 digits")
else:
If digits is 4,
This reverses the string
numstr = numstr[::-1]
This converts the reversed string to integer
num = int(numstr)
This prints the reversed number
print(num)
Using a while loop, create an algorithm extractDigits that prints the individual digits of a positive integer.
Answer:
The algorithm is as follows
1. Start
2. Declare Integer N
3. Input N
4. While N > 0:
4.1 Print(N%10)
4.2 N = N/10
5. Stop
Explanation:
This line starts the algorithm
1. Start
This declares an integer variable
2. Declare Integer N
Here, the program gets user input N
3. Input N
The while iteration begins here and it is repeated as long as N is greater than 0
4. While N > 0:
This calculates and prints N modulus 10; Modulus of 10 gets the individual digit of the input number
4.1 Print(N%10)
This remove the printed digit
4.2 N = N/10
The algorithm ends here
5. Stop
Bonus:
The algorithm in Python is as follows:
n = 102
while n>0:
print(int(n%10))
n= int(n/10)
Create a python code with 5 circles, 5 polygons, 5 line commands, 2 for loops, and 1 global variable
Answer:
# Interactive Drawing
# Shapes
# This is an overview of the shapes that can be drawn on the
# canvas. For full details, please look at the documentation.
# If you are having issues figuring out which shape is drawn
# by which line of code, try commenting some of them out.
# General notes: It is acceptable to use either () or [] when
# listing points. However, be careful that you match
# the number and type of () or [] that you are using. Also,
# polygons and circles have optional parameters that allow
# you to select a fill color.
import simplegui
import math
# Global Variables
canvas_width = 600
canvas_height = 600
# Event Handlers
def draw(canvas):
# Line Segment
point_one = (10, 20)
point_two = (300, 20)
line_width = 5
line_color = "Red"
canvas.draw_line(point_one, point_two, line_width, line_color)
canvas.draw_line((335, 25), (550, 50), 25, "Blue")
# Connected Line Segments
# Note that any number of points are allowed, and they
# connect in the order that they are listed in the
# method parameters. (same goes for polygons)
point_one = (30, 50)
point_two = (130, 150)
point_three = (170, 100)
line_width = 10
line_color = "Purple"
canvas.draw_polyline([point_one, point_two, point_three], line_width, line_color)
canvas.draw_polyline([(500, 150), (400, 100), (342, 117), (301, 151), (200, 150)], 3, "Orange")
# Polygons - All
point_one = (50, 200)
point_two = (80, 260)
point_three = (170, 210)
point_four = (100, 225)
point_five = (75, 205)
line_width = 5
line_color = "Aqua"
fill_color = "Lime"
canvas.draw_polygon([point_one, point_two, point_three, point_four, point_five], line_width, line_color)
point_one = (250, 200)
point_two = (280, 260)
point_three = (370, 210)
point_four = (300, 225)
point_five = (275, 205)
canvas.draw_polygon([point_one, point_two, point_three, point_four, point_five], line_width, line_color, fill_color)
canvas.draw_polygon([(450, 200), (550, 200), (450, 300), (550, 300)], 10, "Navy", "Olive")
# Polygons - Rectangles
# Same syntax as polygons, just using four points
canvas.draw_polygon([(50, 300), (50, 350), (150, 350), (150, 300)], 8, "Green")
# Simple formulas:
# Top left corner = (a, b), Bottom right = (c, d)
a = 200
b = 300
c = 220
d = 350
canvas.draw_polygon([(a, b), (a, d), (c, d), (c, b)], 2, "Yellow", "Yellow")
# Top left corner = (a, b)
a = 275
b = 300
width = 140 # For squares, width = height
height = 75
canvas.draw_polygon([(a, b), (a, b + height), (a + width, b + height), (a + width, b)], 20, "Fuchsia")
# Polygons - Triangles
# Same syntax as polygons, just using three points
canvas.draw_polygon([(50, 420), (150, 470), (200, 370)], 5, "Teal", "Teal")
# For right triangles:
a = 200
b = 450
width = 100 # For one type of isosceles triangle, width = height
height = 100
canvas.draw_polygon([(a, b), (a + width, b), (a, b + height)], 6, "White")
# Formula for equilateral triangles:
a = 450
b = 450
width = 100
canvas.draw_polygon([(a, b), (a + width, b), ((2 * a + width) / 2, b + width / 2 / math.tan(math.pi / 6))], 5, "Black", "Gray")
# Circles
center = (75, 550)
radius = 30
line_width = 5
line_color = "Silver"
fill_color = "Maroon"
canvas.draw_circle(center, radius, line_width, line_color)
center = (150, 550)
canvas.draw_circle(center, radius, line_width, line_color, fill_color)
canvas.draw_circle((350, 550), 50, 10, "Red")
canvas.draw_circle((350, 550), 25, 10, "Blue", "Blue")
# Frame
frame = simplegui.create_frame("Shapes", canvas_width, canvas_height)
# Register Event Handlers
frame.set_draw_handler(draw)
# Remember to start the frame
frame.start()
Explanation:
This Should Work :)
Fax cover sheets are used to _____. Hint: Select three.
make a good first impression
provide detailed pricing information
make sure message reaches the correct person
let the recipient know the subject of the message
ensure safe, private communication
Answer:
Let the recipient know the subject of the message,ensure safe,private communication.This is important,especially if the receiving company or business uses one fax machine for the entire employee pool.
52. An assignment statement will:
a. Perform a calculation
b. Store the results of a calculation
c. Display the results of a calculation
d. Both a and b.
Answer:
D.both a and b.
Explanation:
sana makatulong
Answer:
I believe that the answer is d. both a and b.
Who first demonstrated the computer mouse ?
Answer:
Douglas Engelbart
Douglas Engelbart invented the computer mouse in 1963–64 as part of an experiment to find a better way to point and click on a display screen.
Explanation:
.
In the space provided, analyze the pros and cons of becoming a member of an artistic guild. Your answer should be at least 150 words. I need help on this in less than an 1 hour. make sure its for edge2020.
Answer:
As with almost everything in life, membership of an artistic guild comes with its pros and cons.
Explanation:
PROS
Protection:It is impossible to gain access to somethings in the industry as a stand-alone artist. Membership of the guild ensures for instance that one is guaranteed a minimum wage at the least.Many artists are given premium treatment when they are being engaged but treated like lepers when its time to pay-up for services rendered. Guild membership helps to correct that.Other benefits for those in paid jobs include but are not limited to Healthcare and Pension.Arts in most of it's forms as well as credits for same,. are very easy to steal Guild membership also guarantees that the artist gets and enjoys the benefits of getting the credit for their work.For newcomers into the industry, joining a guild guarantees a soft landing as well ease of access /navigation through the industry, information and networking opportunities.Reward from creative rights are also great incentives for joining an artistic guildResiduals
Residuals are financial compensation paid to artists especially those in the moVie industry such as actor, directors and other personnel involved in the makting of a particular movies, and or Television show whenever such works are streamed online, watched at a cinema, re-run or further distributed via other means.
Most non-guild artists may never get such wonderful incentives. However, membership to a guild can guarantee that they do because most guilds are involves in the formation, and compliance with these kind of industry regulations.
CONS
Strong Control Over ones Career/JobBecause the guild is powerful and highly networked, they can decide whether or not you get to keep a job, whether or not the company you work for remains part of the guild etc.In many cases, if ones organization is not yet a member of the guild, they can insist that you cannot become a member until the organization that has just hired you joins the guildMembers are required to pay dues
Discuss the advantages of DBMS over file-based information systems
Answer:
The primary benefits of DBMS over all the file processing parameters are described elsewhere here.
Explanation:
Flexibility:
So even though initiatives, as well as data, seem to be autonomous, projects don't have to be reconfigured because once totally unconnected input parameters were also incorporated or otherwise deactivated or removed from either the directory and whenever storage devices modifications are introduced.Less storage:
Hypothetically, only certain instances of data elements now have to be collected once and only, eradicating the availability of redundant information.Question #1
Dropdown
What is the value of the totalCost at the end of this program?
quantity = 5
cost = 3
totalCost = quantity * cost
totalCost is
15
3
8
Answer:
the answer is 25
Explanation:
because ot is 25 due to the GB
The total cost when given cost as 3 and quantity as 5 is; 15
We are given;
Quantity = 5
Cost = 3
Now we are told that formula for the total cost is;
Total Cost = quantity × cost
Plugging in the given values of quantity and cost gives us;
Total Cost = 5 × 3
Total cost = 15
In conclusion, the total cost from the values of quantity and individual cost we are given is 15
Read more about total cost at;https://brainly.com/question/2021001
In VPython, a _____ is used to determine the placement of a box or sphere.
frame
vector
object
canvas
Answer:
vector
Explanation:
The tag that is used to position an object such as a box or sphere is known as a vector. Vectors provide sets of coordinates which indicate where on the canvas the object in question is being placed. As long as the vector coordinates attached to the object are within the bounds of the canvas then it is displayed correctly. In Python, a vector would be the following...
v1 = vector(1,2,3)
in which each of the arguments represents the x,y, and z-axis on a plane.
Answer:
the guy above is correct, vector is the answer
Explanation:
Write a program with a car's miles/gallon and gas dollars/gallon (both floats) as input, and output the gas cost for 10 miles, 50 miles, and 400 miles.
Ex: If the input is 20.0 3.1599
The output is: 1.57995 7.89975 63.198
Answer:
Explanation:
The following is written in Python. It is a function that takes in two parameters called miles for miles/gallon and gasCost for gas dollars/gallon. Then it creates three variables for each number of miles used (10,50,400) and calculates the total cost for each. Finally, it returns all three costs to the user
def mileage(miles, gasCost):
tenMiles = (10.00 / miles) * gasCost
fiftyMiles = (50.00 / miles) * gasCost
fourHundredMiles = (400.00 / miles) * gasCost
return tenMiles, fiftyMiles, fourHundredMiles
Which subscription options, if any, include bank feeds, access from any device at any time, and integration with a wide range of apps?
Answer:
QuickBooks Online Plus
Explanation:
Given that QuickBooks Online Plus is a form of package or subscription that provides all the benefits and characteristics of QuickBooks Online in a basic subscription.
It also offers additional functionality such as embedding the banking services which allows access from any smart device at any point in time, which is supported with various software applications. This helps to monitor the inventory and oversee the profitability of the project.
Hence, in this case, the correct answer is QuickBooks Online Plus.
Do you still get messages and calls when silent your phone and power off it
Answer:
yes
Explanation:
it will just be muted so you wont hear when someone text or calls you.
Su now wants to modify the text box that contains her numbered list. She accesses the Format Shape pane. In what ways can Su modify the text box using the pane? Check all that apply.
She can rotate the text box.
She can add color to the text box.
She can add a shape to the text box.
She can add a border to the text box.
She can insert a picture in the text box.
Answer:
She can add color to the text box.
She can add a border to the text box.
Explanation:
Answer:
B. She can add color to the text box.
D. She can add a border to the text box
Explanation:
hope this helps :)
See the answer
Write a Console program, let users to enter prices calculate subtotal, tax, and total.
- Delcare variable data type as decimal (6 variables needed)
decimal apple;
- Conver string to decimal from input
apple = Convert.ToDecimal(Console.ReadLine());
- Do addition for subtotal
- Multiplication for tax (0.065M) --- M or m stands for money value, read page 94.
- Addition for total
- You need to show only two digits after decimal point
Answer:
um what
Explanation:
What when can you expect technology to be effective?
Answer:
we dont have to expect , the technology are effective , as each day the technology are being advance and developed day by day. each day the technology are being more and more effective. they are effective now and they will be effective in future too
One can expect technology to be effective when its selection and implementation of that technology is said to meet the need that it was created for.
What is the effectiveness of any technology?Technology is often used to change the learning experience of people. Students now have means to greater amount of new opportunities through the use of it.
Conclusively, technology helps students to be a little more creative and to be connected to others and technology is effective when its selection and implementation of that technology is said to meet the need that it was made for.
Learn more about technology from
https://brainly.com/question/25110079
Write a program that lets the user enter a nonnegative integer and then uses a loop to calculate the factorial of that number. Print the factorial to standard output
Answer:
In C++:
#include <iostream>
using namespace std;
int main(){
int num,fact=1;
cout<<"Positive integer: ";
cin>>num;
if(num<0){
cout<<"Positive integers only";
}
else{
for(int i =1;i<=num;i++){
fact*=i;
}
cout<<num<<"! = "<<fact;
}
return 0;
}
Explanation:
This line declares num and fact as integer. It also initializes fact to 1
int num,fact=1;
This line prompts the user for a positive integer
cout<<"Positive integer: ";
This line gets input from user
cin>>num;
This line checks if input is negative
if(num<0){
If input is negative, This line prints the following message
cout<<"Positive integers only";
}
else{
If input is positive or 0; The following iteration calculates the factorial
for(int i =1;i<=num;i++){
fact*=i;
}
This prints the calculated factorial
cout<<num<<"! = "<<fact;
}
What is a free and compatible alternative to the Microsoft Office Suite (word processing, spreadsheets, and calendars)?
WordPad
Open Office
Notepad
Lotus Notes
Answer:
Open Office
Explanation:
Open Office may be regarded as an open source productivity tool which allows users to enjoy the ability to create and edit documents similar to Microsoft Word, create spreadsheet files and documents similar to Microsoft excel and Presentation tool similar to Microsoft PowerPoint. With the open source category of open office, it means it is a free software whereby users can enjoy these tools without having to purchase any user license. The other tools in the option such as Notepad, Lotus note do not posses all these functionality.
You respond to a fire at a pharmaceutical production plant. One of the outside storage tanks is on fire. The placard on the tank shows the ID number is 1053. What is this material?
Answer:
Hydrogen sulfide.
Explanation:
Hydrogen sulfide is a chemical compound formed due to the reaction of hydrogen and sulfur. It is a colorless, corrosive, poisonous and highly flammable gas having the foul smell of rotten eggs.
Under the United Nations/North America number datasheet, the identification number for hydrogen sulfide is 1053.
In this scenario, you respond to a fire at a pharmaceutical production plant. One of the outside storage tanks is on fire. The placard on the tank shows the ID number is 1053. Therefore, this material is hydrogen sulfide.
Write a python program that:
- Defines a tuple of 5 integer numbers
- prints the tuple
- Appends a new value to the end of the tuple
- prints the tuple again
Answer:
Explanation:
The following code is written in Python and creates a tuple of 5 integer numbers and then prints out the tuple. Tuples are immutable objects meaning that they cannot be changed at all. Therefore, they have no append methods and cannot have any values added or removed so the last two tasks of this question are impossible to accomplish.
my_tuple = (2, 5, 7, 9, 6)
print(my_tuple)
Johnathan was assigned to complete a project with three other people. What benefit will he get from working with the team?
Independence
Increased creativity
Easy class credit
Easy decision making
Answer:
2.
Explanation:
working with other people can increase ones creativity
There's a chupacabra that looks like a mixed alligator , gecko it looks' like that but if you try harming it will it eat you "look up chupacabra only don't try looking up if it eats meat because that thing is a legendary animal and barely haves answers and has been cured alot and lives in the folklore mostly like the woods" it looks scary and cool the same time but some people said it has been instinct but it isn't it is spanish "which is puerto rican" lives in the united states, and mexico.. ( does it eat meat ) hasn't been seen around but you'll see a picture of it..
Answer:
wait. is this even a question or is it just informing us?
Explanation:
either way it is cool
Need some help writing a simple PYTHON Student registration program:
Students must enter their information including name, last name, phone number, email address and create a password.
By default, the program must assign a unique student ID between 1 to 1000.
The program should allocate 100 points to each registered student account automatically (students can use these points for shopping)
The system must print the allocated student ID on the screen (Student uses his/her ID for access to the rest of system functions)
The program must return to the main page.
import random
database = {}
while True:
try:
user_choice = int(input("Enter your student id to bring up your information (Press enter if you don't have one) : "))
if user_choice in database:
print("Student ID:",database[user_choice][0],"\nFirst name:",database[user_choice][1],"\nLast name:",database[user_choice][2],"\nPhone number:",database[user_choice][3],"\nEmail address:",database[user_choice][4],"\nPassword:",database[user_choice][5],"\nPoints:",database[user_choice][6])
except ValueError:
name = input("Enter your first name: ")
last_name = input("Enter your last name: ")
phone_number = input("Enter your phone number: ")
email = input("Enter your email address: ")
password = input("Enter a password: ")
points = 100
student_id = random.randint(1,1000)
while student_id in database:
student_id = random.randint(1,1000)
print("Hello,",name,"your student ID is:",student_id)
database[student_id] = [student_id,name, last_name, phone_number, email, password, points]
I wrote my code in python 3.8. I hope this helps.
3n - 12 = 5n - 2
how many solutions?
Pick one of the following scenarios and
a. Model using at least 5 classes: one parent, two children, and two grandchildren of one of the child classes.
b. Provide at least one field and one method that compellingly differentiates each class from the others.
c. Do not include constructors, getters, or setters in your description.
Scenarios - lots of them spring to mind, but I don't want the list to be too long. In this way, you can compare your ideas with those of other students, and I encourage to consider what other students have posted, you are also encouraged to make suggestions of other's postings and make additional postings updating your own ideas in light of the suggestions by others.
1. An airplane
2. A train
3. An e-commerce company (eg, Amazon)
4. A city government
5. An airline (aspects of an entire company)
6. A government organization (eg, EPA, Defense)
Answer:
Follows are the solution to this question:
Explanation:
Please find the complete question and diagram in the attached file.
Following are the scenario of the training:
In the given UML diagram, it used to increases the student's generalizability, and the type of vehicle categories, which includes their data components at the top one would be the parent or less are kids' classes which have parent class properties.
What are the primary IP addresses for DNS servers hosted on the x128bit, iskytap and cloudparadox domains
Answer:
208.91. 197.27 and 50.225.
Explanation:
In the world of computers, the term "IP" stands for Internet Protocol. The IP address or the Internet Protocol address is defined as a numerical label that is provided to every device which is connected to any computer network for communication. It works as providing the location address of the device and also identifies the network interface.
The primary IP addresses for the DNS servers that is hosted on :
-- x128bit is 208.91. 197.27
-- iskytap is 208.91. 197.27
-- cloudparadox is 50.225.
What will the "background-color" of the "topButton" be when the program is finished running?
Answer:
Blue
Explanation:
set_Property - (topButton), (#background-color), (orange)
set_Property - (bottomButton), (#background-color), (red)
set_Property - (topButton), (#background-color), (blue)
set_Property - (bottomButton), (#background-color), (green)
Here, the background color for the 'topButton' would be "blue" when the program is finished running, as it is the last task, the topButton would be set to or it is the last thing that will run for the button.