1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
hram777 [196]
4 years ago
11

Create the setStyles() function using the commands listed in the steps below. Christine wants one of five fancy style sheets to

be randomly used when the page is opened. Declare the styleNum variable equal to the value returned by the randInt() function, using 5 as the parameter value.
Computers and Technology
1 answer:
jolli1 [7]4 years ago
3 0

Answer:

Hi there! This can be implemented in a simple Python function which uses the "random" module to generate the number.

Explanation:

Using Python as the languge, we can write a the below code in a file called styles.py. The first line imports the randint function from the "random" module. The setStyles() function declares an array or 5 elements (here I have just used numbers but these could be string names of the stylesheets as well). Next, styleNum is assigned the random number and the associated stylesheet is selected from the array of stylesheets.

styles.py

from random import randint

def setStyles():

   stylesheets = [1,2,3,4,5];

   styleNum = randint(1,5);

   stylesheet = stylesheets[styleNum];

   print(stylesheet);

setStyles();

You might be interested in
Write a calling statement for the following code segment in Java: public static int sum(int num1, int num2, String name) { int r
Pachacha [2.7K]

Answer:

Following are the calling of the given question

public static void main(String[] args) // main function

{

int store; // variable declaration

store = sum(32,15,"san"); // Calling of sum()

System.out.println(" TheValue returned by sum() : "+store); // display

}

Explanation:

Following are the description of the above statement

  • Here is the name of function is sum() In the sum() function definition there are 3 parameter in there signature i.e  two "int" type and 1 is "string" type .
  • In the main function we declared the variable store i,e is used for storing the result of sum() it means it storing the result of value that is returning from the definition of sum() function .
  • After that calling the function by there name and passing three parameter under it  sum(32,15,"san"); and store in the "store" variable.
  • Finally print the value by using system.out.println ().
3 0
3 years ago
What are the correct steps to add the bill using the receipt capture feature in quick books online?
Gennadij [26K]

Answer:

How it Works

The Bill can be imported into QuickBooks in a verity of methods such as drag and drop, browse to upload, email and image upload from a mobile device. The imported data is processed by QuickBooks. In my testing this processing varied depending on the type of document sent but overall, the process was fast, and the Bill was ready to view and categorized within five minutes. There were several pieces of data already extracted from the document which were the data and dollar amount but all other details in my experience needed to be entered.

One thing to not is you can not expense by line items at this time. Instead you can only choose one expenses account per transaction. (if I were a betting girl, I would say this is in the works, but I have no official word on that) However, you can add Classes and Billable Customers.

How to Get Started:

1) From the QBO Navigation Bar choose Banking Center

2) Select the Receipts tab

3) Drag and drop, email or upload a mobile image of the document to QuickBooks (1 file at a time)

4) From the For Review section of the Receipts tab you can see when the document is ready for review

5) QuickBooks extracts, data including date and dollar amount

6) Click on Review in the Action column

7) Select Bill as Document Type (as shown highlighted in the 'red box')

8) Enter the remaining details:

- Enter Payee

- Approve Bill date and enter due date

- Select Account  

- Verify amount total

- Additional Fields (optional)

- Make expenses billable

- Select Customer

- Class

- Add reference number

9) Import into QuickBooks by Saving and Closing

Within, seconds your document is coded and published into QuickBooks as an Open Bill pending payment. Like I said for now all you can add is an account but if you published the document to QBO you could later open it and edit to add required items if necessary.

The last step in optimization is after you have posted the payment to the open bill you will be able to match the bank feeds in QBO if you have already imported your banking activity. This type of audit proofing your bookkeeping helps prevent fraud and assures accuracy.

Hope this helps!! Merry Christmas!! And Happy New Year!!

6 0
3 years ago
Task 2: Typing a School Speech
strojnjashka [21]

This is my school put you can change it up:

It has elementary and high school divisions. Wister Elementary School is a public school located in Wister, OK. It has 333 students in grades PK, K-8 with a student-teacher ratio of 14 to 1. According to state test scores, 14% of students are at least proficient in math and 23% in reading.

7 0
3 years ago
The fractional_part function divides the numerator by the denominator, and returns just the fractional part (a number between 0
7nadin3 [17]

Answer:

part a

Explanation:

7 0
4 years ago
How to write code that includes probability of a choice?
pentagon [3]

Answer:

if,then in scratch

Explanation:

Hope that helps :)

4 0
3 years ago
Other questions:
  • Which directive is used when defining 64-bit IEEE long reals?
    7·1 answer
  • The read/write heads of a hard disk gently rest on the hard disk platters in order to read and write the data.
    13·1 answer
  • A(n) _____ is a list at the beginning of a publication that shows the main topics in a book or report and provides page numbers
    9·2 answers
  • Can you please help me by sending a proposal onnanotechnology in networking applications
    8·1 answer
  • If you see someone harassing someone else online you should ​
    15·2 answers
  • -1
    13·1 answer
  • Create a variable total of type Double set to 0. Then loop through the dictionary, and add the value of each integer and double
    15·1 answer
  • Write an algorithm and flowchart to display H.C.F and L.C.M of given to numbers.​
    9·1 answer
  • 25 points select 3 options!!!!!!!!!!!!!!!!!!!!!!!!!
    8·1 answer
  • What is a counter? In typography
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!