Define a function roll() that takes no arguments, and returns a random integer from 1 to 6. Before proceeding further, we recommend you write a short main method to test it out and make sure it gives you the right values. Comment this main out after you are satisfied that roll() works.

Answers

Answer 1

Answer:

Follows are the code to this question:

#include <iostream>//defining a header file

using namespace std;

int roll()//defining a method roll

{

return 1+(rand() %5);//use return keyword that uses a rand method

}

int main()//defining main method

{

cout<<roll();//calling roll method that print is value

return 0;

}

Output:

4

Explanation:

In this code,  the "roll" method is defined, that uses the rand method with the return keyword, that returns the value between 1 to 6, and in the next step, the main method is declared, that uses the print method to calls the roll method.


Related Questions

A car dealership needs a program to store information about the cars for sale. For each car, they want to keep track of the following information number of doors (2 or 4), whether the car has air conditioning, and its average number of miles per gallon. Which of the following is the best design?
a. Use classes: Doors, Airconditioning, and MilesPerGallon, each with a subclass Car.
b. Use a class Car, with subclasses of Doors, Airconditioning, and MilesPerGallon.
c. Use a class Car with three subclasses: Doors, Airconditioning, and MilesPerGallon.
d. Use a class Car, with fields: numDoors, hasAir, and milesPerGallon.
e. Use four unrelated classes: Car, Doors, Airconditioning, and MilesPerGallon.

Answers

Answer:

The answer is "Choice d".

Explanation:

In this topic, the option d, which is "Use a class Car, with fields: numDoors, hasAir, and milesPerGallon" is right because the flag, if air-conditioned, of its numbers of doors, was its average kilometers per gallon, qualities of either an automobile, in which each one is a basic value so that they're being fields of a class of cars.

The best design for the given program will be;

D: Use a class Car, with fields: numDoors, hasAir, and milesPerGallon.

What is the best design for the program?

In this question, the best design for the program to keep track of the number of doors (2 or 4), whether the car has air conditioning, and its average number of miles per gallon is to "Use a class Car, with fields: numDoors, hasAir, and milesPerGallon"

That option is right because has classified the cars with the accurate parameters to be searched which are its numbers of doors, average miles per gallon, air condition.

Read more about programming at; https://brainly.com/question/22654163

The ABC box company makes square puzzle cubes that measure 4 inches along each edge. They shipped the cubes in a box 8 in x 12 in x 16 in. How many cubes can they ship in the box?

Answers

Answer: They can ship 32 puzzle cubes in the box.

Explanation: So the volume of each puzzle cubes = side³

=(4)³ cubic inches.

Then the volume of the box is= (8×12×16) cubic inches.

(8×12×16)/4^3= 32

g Write a program that reads a list of words, and a character. The output of the program is every word in the list of words that contains the character at least once. For coding simplicity, follow each output word by a comma, even the last one. Assume at least one word in the list will contain the given character. The number of input words is always less than and equal to 10. If the user enters more than 10 words before the character, the program will output Too many words and exit.

Answers

Answer:

Here you go, alter this as you see fit :)

Explanation:

array = []

cnt = 0

while cnt < 11:

   x = input("Enter a word: ")

   array.append(x)

   cnt += 1

   y = input("Add another word?(Y/n):  ")

   if y.lower() == "n":

       break

letter = input("\nChoose a letter: ")

if len(letter) != 1:

   print("Error: too many characters")

   quit()

for n in range(len(array)):

   if letter.lower() in array[n].lower():

       print(array[n], end= ",")

Write a program with the total change amount as an integer input, and output the change using the fewest coins, one coin type per line. The coin types are Dollars, Quarters, Dimes, Nickels, and Pennies. Use singular and plural coin names as appropriate, like 1 Penny vs. 2 Pennies. The input should be an integer, with the unit as "cents". For example, the input of 126 refers to 126 cents. 1 Dollar = 100 cents 1 Quarter = 25 cents 1 Dime = 10 cents 1 Nickel = 5 cents 1 Penny = 1 cent Ex: If the input is:

Answers

Answer:

In Python:

cents = int(input("Cents: "))

dollars = int(cents/100)

quarters = int((cents - 100*dollars)/25)

dimes = int((cents - 100*dollars- 25*quarters)/10)

nickels = int((cents - 100*dollars- 25*quarters-10*dimes)/5)

pennies = cents - 100*dollars- 25*quarters-10*dimes-5*nickels

if not(dollars == 0):

   if dollars > 1:

       print(str(dollars)+" dollars")

   else:

       print(str(dollars)+" dollar")

if not(quarters == 0):

   if quarters > 1:

       print(str(quarters)+" quarters")

   else:

       print(str(quarters)+" quarter")

if not(dimes == 0):

   if dimes > 1:

       print(str(dimes)+" dimes")

   else:

       print(str(dimes)+" dime")

if not(nickels == 0):

   if nickels > 1:

       print(str(nickels)+" nickels")

   else:

       print(str(nickels)+" nickel")

if not(pennies == 0):

   if pennies > 1:

       print(str(pennies)+" pennies")

   else:

       print(str(pennies)+" penny")

   

Explanation:

A prompt to input amount in cents

cents = int(input("Cents: "))

Convert cents to dollars

dollars = int(cents/100)

Convert the remaining cents to quarters

quarters = int((cents - 100*dollars)/25)

Convert the remaining cents to dimes

dimes = int((cents - 100*dollars- 25*quarters)/10)

Convert the remaining cents to nickels

nickels = int((cents - 100*dollars- 25*quarters-10*dimes)/5)

Convert the remaining cents to pennies

pennies = cents - 100*dollars- 25*quarters-10*dimes-5*nickels

This checks if dollars is not 0

if not(dollars == 0):

If greater than 1, it prints dollars (plural)

   if dollars > 1:

       print(str(dollars)+" dollars")

Otherwise, prints dollar (singular)

   else:

       print(str(dollars)+" dollar")

This checks if quarters is not 0

if not(quarters == 0):

If greater than 1, it prints quarters (plural)

   if quarters > 1:

       print(str(quarters)+" quarters")

Otherwise, prints quarter (singular)

   else:

       print(str(quarters)+" quarter")

This checks if dimes is not 0

if not(dimes == 0):

If greater than 1, it prints dimes (plural)

   if dimes > 1:

       print(str(dimes)+" dimes")

Otherwise, prints dime (singular)

   else:

       print(str(dimes)+" dime")

This checks if nickels is not 0

if not(nickels == 0):

If greater than 1, it prints nickels (plural)

   if nickels > 1:

       print(str(nickels)+" nickels")

Otherwise, prints nickel (singular)

   else:

       print(str(nickels)+" nickel")

This checks if pennies is not 0

if not(pennies == 0):

If greater than 1, it prints pennies (plural)

   if pennies > 1:

       print(str(pennies)+" pennies")

Otherwise, prints penny (singular)

   else:

       print(str(pennies)+" penny")

   

Veronica is looking for a reliable website with information about how old you have to be to use social media. What should she look for?

Answers

Answer:

The URL of the website

Explanation:

Look for .gov and .edu as they are often reliable sources

A marketing plan includes a number of factors, including the marketing mix.
What is the marketing mix?
A. The variables of product, price, place, and promotion
B. Using names and symbols to ideny the company's products
C. How the company intends for customers to view its product
relative to the competition
D. A plan for spending money
SUBMIT

Answers

A marketing plan includes a number of factors, including the marketing mix.
What is the marketing mix?
A. The variables of product, price, place, and promotion

Write a C program that does the following: Creates a 100-element array, either statically or dynamically Fills the array with random integers between 1 and 100 inclusive Then, creates two more 100-element arrays, one holding odd values and the other holding even values (copied from the original array). These arrays might not be filled completely. Prints both of the new arrays to the console.

Answers

Answer:

Following are the code to this question:

#include <iostream>//header file

using namespace std;

int main()//main method

{

   int axb[100];//defining 1-array of 100 elements

   int odd_axb[100], even_axb[100];//defining two array that holds 100-elements

   int i,size=0,size1=0;

   for(i = 0; i < 100; i++)//defining for loop to assign value in array

   {

       axb[i] = rand() % 100 + 1;//using rand method to assign value with random numbers between 1 and 100

   }

   for(i = 0; i < 100; i++)//defining for loop that seprates array value in odd and even array

   {

       if(axb[i] % 2 == 0)//checking even condition  

       {

           even_axb[size++] = axb[i];//holding even number

       }

       else//else block

       {

           odd_axb[size1++] = axb[i];//holding Odd number

       }

   }

   //printing values

   cout << "Odd array: ";//print message  

   for(i = 0; i <size1; i++)//use for loop for print odd numbers

   {

   cout << odd_axb[i]<<" ";//printing values

   }

   

   cout <<"\n\n"<< "Even array: ";//print message

   for(i = 0; i <size; i++)//use for loop for print even_axb numbers

   {

       cout << even_axb[i] << " ";//printing values

   }

   return 0;

}

Output:

Odd array: 87 87 93 63 91 27 41 27 73 37 69 83 31 63 3 23 59 57 43 85 99 25 71 27 81 57 63 71 97 85 37 47 25 83 15 35 65 51 9 77 79 89 85 55 33 61 77 69 13 27 87 95  

Even array: 84 78 16 94 36 50 22 28 60 64 12 68 30 24 68 36 30 70 68 94 12 30 74 22 20 38 16 14 92 74 82 6 26 28 6 30 14 58 96 46 68 44 88 4 52 100 40 40

Explanation:

In the above-program, three arrays "axb, odd_axb, and even_axb" is defined, that holds 100 elements in each, in the next step, three integer variable "i, size, and size1" is defined, in which variable "i" used in the for a loop.

In the first for loop, a rand method is defined that holds 100 random numbers in the array, and in the next, for-loop a condition statement is used that separates even, odd number and store its respective array, and in the last for loop, it prints its store values  

Segmentation Faults Recall what causes segmentation fault and bus errors from lecture. Common cause is an invalid pointer or address that is being dereferenced by the C program. Use the program average.c from the assignment page for this exercise. The program is intended to find the average of all the numbers inputted by the user. Currently, it has a bus error if the input exceeds one number. Load average.c into gdb with all the appropriate information and run it. Gdb will trap on the segmentation fault and give you back the prompt. First find where the program execution ended by using backtrace (bt as shortcut) which will print out a stack trace. Find the exact line that caused the segmentation fault.
Q13. What line caused the segmentation fault?
Q14. How do you fix the line so it works properly?
You can recompile the code and run the program again. The program now reads all the input values but the average calculated is still incorrect. Use gdb to fix the program by looking at the output of read_values. To do this, either set a breakpoint using the line number or set a breakpoint in the read_values function. Then continue executing to the end of the function and view the values being returned. (To run until the end of the current function, use the finish command).
Q15. What is the bug? How do you fix it?
//average.c
#include
/*
Read a set of values from the user.
Store the sum in the sum variable and return the number of values
read.
*/
int read_values(double sum) {
int values=0,input=0;
sum = 0;
printf("Enter input values (enter 0 to finish):\n");
scanf("%d",&input);
while(input != 0) {
values++;
sum += input;
scanf("%d",input);
}
return values;
}
int main() {
double sum=0;
int values;
values = read_values(sum);
printf("Average: %g\n",sum/values);
return 0;
}

Answers

Answer:

See Explanation

Explanation:

Q13. Line that caused the segmentation fault?

The segmentation fault was caused by line 15 i.e. scanf("%d",input);

Q14. How the line was fixed?

The reason for the segmentation fault is that the instruction to get input from the user into the integer variable "input" was not done correctly.

The correction to this is to modify scanf("d",input) to scanf("%d",input);

Q15. The bug?

The bug is that the method needs to return two value; the sum of the inputted numbers and the count of the inputted numbers.

However. it only returns the count of the inputted number.

So, the average is calculated as: 0/count, which will always be 0

How it was fixed?

First, change the method definition to: void and also include an array as one of its parameters.

void read_values(double sum, double arr []) {

Next:

assign sum to arr[0] and values to arr[1]

In the main method:

Declare an array variable: double arr [2];

Call the read_values function using: read_values(sum,arr);

Get the sum and values using:

sum = arr[0];

values = arr[1];

Lastly, calculate and print average:

printf("Average: %g\n",sum/values);

See attachment for complete modified program

What would a bar graph best be used for? State why and give 2-3 examples of things you could demonstrate with a bar graph.

Answers

Answer:

Reasons what bar graph is used for.

Explanation:

Bars are shown to compare and contrast data in a bar graph. For example, a data was collected through survey of average rainfall. It represents many unique categories by having many different groups. Those groups are plotted on the x-axis and on the y-axis, the measurements are plotted, like inches.

Hope this helps, thank you !!

Provide a status report to your classmates and instructor. Describe any modifications that you have made to the design or documentation, discuss whether you encountered any new challenges or risks, and describe the mitigation strategy you implemented for addressing each risk. Are you meeting the objectives identified in your system proposal?What hardware, software, virtual desktop resources, and so on will you need to design and implement your system?What adjustments have you made to your document based on peer feedback?How do system components and applications interface and share data?In response to your peers, provide constructive feedback on their system design document progress and suggestions that they can incorporate into their documentation or projects. Is a sufficient amount of detailed information being provided to enable implementation by any skilled IT practitioner? Do you see any potential obstacles that they might come up against? If so, what approach can they take to overcome these challenges?When preparing your status reports, be sure that they are clear and well written. Engage your classmates in discussions that mimic the team dynamics expected in professional, real-world information technology project environments.Refer to the Discussion Rubric for directions on completing these discussions.

Answers

Answer:

that's muddled up I can't make out the question

Wilma is looking for facts about social media for her research project. What fact should she use for her project?

1: Communicating with social media is hard
2: Social media is a great way to communicate.
3: Social media is fun and easy to use.
4:The minimum age for some social media sites is 13.

Answers

the fact she should use for her project is number 4 because that’s the only fact, the rest are opinions!

2. You are developing a new application that optimizes the processing of a warehouse’s operations. When the products arrive, they are stored on warehouse racks. To minimize the time it takes to retrieve an item, the items that arrive last are the first to go out. You need to represent the items that arrive and leave the warehouse in a data structure. Which data structure should you use to represent this situation?
a) array
b) linked list
c) stack
d) queue

Answers

Answer:

Option d) is correct

Explanation:

To optimize the processing of a warehouse’s operations, products are stored on warehouse racks when they arrive. The items that arrive last are the first to go out to minimize the time it takes to retrieve an item. The items that arrive need to be represented and the warehouse should be left in a data structure. The data structure which should you use to represent this situation is a queue.

Option d) is correct

Define the _make method, which takes one iterable argument (and no self argument: the purpose of _make is to make a new object; see how it is called below); it returns a new object whose fields (in the order they were specified) are bound to the values in the interable (in that same order). For example, if we called Point._make((0,1)) the result returned is a new Point object whose x attribute is bound to 0 and whose y attribute is bound to 1.

Answers

This picture will show you the answer and guide the way to victory

We can actually see that the _make method is known to be a function that creates named tuple type.

What is _make method?

_make method is seen in Python programming which is used to create a named tuple type instantly. It can be used for conversion of objects e.gtuple, list, etc. to named tuple.

Thus, we see the definition of _make method.

Learn more about Python on https://brainly.com/question/26497128

#SPJ2

This function finds the minimum number in a list. What should be replaced with in order for this function to operate as expected?

Answer choices:

A. numList[i] = min;
B. min = numList[i];
C. min = numList;
D. numList = min;

Answers

Answer: a

Explanation:

Just took the test

who likes tom holland as spiderman and his web shooter tippets when he swings off buildings in new york city midtown, Forest Hills and he is a superhero and I am his humongous fan of spiderman or peter parker the spider man

Answers

Answer:

YESSSS!!!!

Explanation:

Answer:

ayo no spikar english :u

whats this oh _____
what is it
A) jane
B) juan.
C)juan
D) horse

Answers

Answer:

juan duhhhhh hehehe

Explanation:

Package Newton’s method for approximating square roots (Case Study: Approximating Square Roots) in a function named newton. This function expects the input number as an argument and returns the estimate of its square root. The program should also include a main function that allows the user to compute the square roots of inputs from the user and python's estimate of its square roots until the enter/return key is pressed.An example of the program input and output is shown below:Enter a positive number or enter/return to quit: 2 The program's estimate is 1.4142135623746899 Python's estimate is 1.4142135623730951 Enter a positive number or enter/return to quit: 4 The program's estimate is 2.0000000929222947 Python's estimate is 2.0 Enter a positive number or enter/return to quit: 9 The program's estimate is 3.000000001396984 Python's estimate is 3.0 Enter a positive number or enter/return to quit

Answers

I’m confused what are you asking

The python program that calculates the volume and the square of the volume is as follows

radius = float(input("Radius: "))

volume = (4.0/3.0) * (22.0/7.0) * radius**3

sqrtVolume = volume**0.5

print(f'The volume is {volume} units cubed')

print(f'The square root of that number is {sqrtVolume}')

How to write the program?

The complete program written in Python where comments are used to explain each line is as follows

This gets the radius

radius = float(input("Radius: "))

#This calculates the volume

volume = (4.0/3.0) * (22.0/7.0) * radius**3

#This calculates the square root of the volume

sqrtVolume = volume**0.5

#This prints the volume

print(f'The volume is {volume} units cubed')

#This prints the square root of the volume

print(f'The square root of that number is {sqrtVolume}')

Therefore, The python program that calculates the volume and the square of the volume is as follows

radius = float(input("Radius: "))

volume = (4.0/3.0) * (22.0/7.0) * radius**3

sqrtVolume = volume**0.5

Read more about python programs at

brainly.com/question/26497128

#SPJ2

Create a program that writes a series of random numbers to a file, then reads the file to calculate the average of those numbers, as well as the highest and lowest numbers. Prompt the user for how many random numbers they want to add to file. If the number is less than 100, add at least 100 numbers. Each random number should be between 10 and 500, inclusive (at least 10, no more than 500). Create the file as YourName_randomnumbers.txt (where YourName is your actual name or initials...) Once the program creates the file, open and read in all numbers. Loop through the numbers and determine the highest number, the lowest number, count how many entries are in the file, and calculate the average of all numbers. Remember to use functions and comment as needed. Submit your .py file and your randomnumbers.txt file.

Answers

Answer:

In Python:

import random

def average(content):

sum = 0

for i in range(0, len(content)):  

 content[i] = int(content[i])

 sum = sum + content[i]

print("Average: "+str(round(sum/len(content),2)))

def maxList(content):

print("Highest: "+str(max(content)))

def minList(content):

print("Lowest: "+str(min(content)))

f = open("YourName_randomnumbers.txt", "w")

num = int(input("Random Numbers: "))

if num < 100:

num = 100

for i in range(1,num+1):

f.write(str(random.randint(10,500)))

f.write(" ")

f.close()

with open('YourName_randomnumbers.txt') as ff:

content = ff.read().split()

print("Entries: "+str(len(content)))

average(content)

maxList(content)

minList(content)

Explanation:

First, we import the random module

import random

The program uses functions. The first is the average function

def average(content):

This initializes sum to 0

sum = 0

This iterates through the list and adds up the list elements

for i in range(0, len(content)):

 content[i] = int(content[i])

 sum = sum + content[i]

This prints the average, rounded to 2 decimal places

print("Average: "+str(round(sum/len(content),2)))

The maxList function begins here

def maxList(content):

This gets and prints the highest of the list

print("Highest: "+str(max(content)))

The minList function begins here

def minList(content):

This gets and prints the lowest of the list

print("Lowest: "+str(min(content)))

The main begins here

This createa a file and prepares it for write operations

f = open("YourName_randomnumbers.txt", "w")

This prompts user for number of random numbers

num = int(input("Random Numbers: "))

If user input is less than 100

if num < 100:

It is set to 100

num = 100

The following iteration generates random numbers between 10 and 500 and inserts the random number to file

for i in range(1,num+1):

f.write(str(random.randint(10,500)))

f.write(" ")

Close file

f.close()

The following iteration reads the file content into a list

with open('YourName_randomnumbers.txt') as ff:

content = ff.read().split()

This prints the number of entries

print("Entries: "+str(len(content)))

The next three instructions calls the average, maxList and minList functions respectively

average(content)

maxList(content)

minList(content)

Which elements of text can be changed using automatic formatting? Check all that apply.
A) smart quotes
B) accidental usage of the Caps Lock key
C) fractions
D) the zoom percentage
E) the addition of special characters ​

Answers

A) smart quote and B) the zoom percentage and E) the addition of special characters

Answer:a, d, e

Explanation:

Changing the color of the text in your document is an example of

Answers

Answer:

???????????uhhh text change..?

Explanation:

Answer:

being creative

Explanation:

cause y not?

Use the drop-down menus to explain what happens when a manager assigns a task in Outlook.
1. Managers can assign tasks to other users within_______ .
2. Once the task is assigned, Outlook__________ the assignment to that user.
3. The user must_______ the task to have it placed in their_________ .

Answers

Answer:

1. an organization

2. emails

3. accept

4. to-do list

Explanation: edge

Answer:Use the drop-down menus to complete statements about assigning tasks in Outlook.

A Task Request form is an interactive way to assign tasks to

✔ Outlook users

and report updates on the status of an assigned task.

An assigned task sends

✔ an email

request for the user to accept or decline and sends

✔ an automated response message

to the assigner.

Explanation:

Please help ASAP!
A career can include classes, experiences, jobs, and:

A. fields.

B. training.

C. regions.

D. laws.

Answers

b. training is the correct answer

why was the 80s bad for Disney i know one example but ill tell you after you answer

Answers

Answer:

The dark stories behind it? i dont  know lol

Write VHDL code for the circuit corresponding to an 8-bit Carry Lookahead Adder (CLA) using structural VHDL (port maps). (To be completed before your lab session.)

Answers

Answer:

perdo si la pusiera es español te ayudo pero no esta en español

Write a class called Dragon. A Dragon should have a name, a level, and a boolean variable, canBreatheFire, indicating whether or not the dragon can breathe fire. The class should have getter methods for all of these variables - getName, getLevel, and isFireBreather, respectively.

Answers

Answer: A dragon name could be name Holls and at level 14 and can breathe fire

Explanation:

What’s the difference packet switching and message switching??

Answers

Im not sure but the person above is right x :)))


Explanation dudjdb

Play now? Play later?
You can become a millionaire! That's what the junk mail said. But then there was the fine print:

If you send in your entry before midnight tonight, then here are your chances:
0.1% that you win $1,000,000
75% that you win nothing
Otherwise, you must PAY $1,000

But wait, there's more! If you don't win the million AND you don't have to pay on your first attempt,
then you can choose to play one more time. If you choose to play again, then here are your chances:
2% that you win $100,000
20% that you win $500
Otherwise, you must PAY $2,000

What is your expected outcome for attempting this venture? Solve this problem using
a decision tree and clearly show all calculations and the expected monetary value at each node.
Use maximization of expected value as your decision criterion.

Answer these questions:
1) Should you play at all? (5%) If you play, what is your expected (net) monetary value? (15%)
2) If you play and don't win at all on the first try (but don't lose money), should you try again? (5%) Why? (10%)
3) Clearly show the decision tree (40%) and expected net monetary value at each node (25%)

Answers

Answer:

wow what a scam

Explanation:

Create a flowchart that assigns a counselor to a student.
You need to ask a student for the first letter of his/her last name. Assign a counselor based on the following criteria:
A through M are assigned to Ms. Jones
N through Z are assigned to Mr. Sanchez

Answers

Please Help! Unit 6: Lesson 1 - Coding Activity 2
Instructions: Hemachandra numbers (more commonly known as Fibonacci numbers) are found by starting with two numbers then finding the next number by adding the previous two numbers together. The most common starting numbers are 0 and 1 giving the numbers 0, 1, 1, 2, 3, 5...
The main method from this class contains code which is intended to fill an array of length 10 with these Hemachandra numbers, then print the value of the number in the array at the index entered by the user. For example if the user inputs 3 then the program should output 2, while if the user inputs 6 then the program should output 8. Debug this code so it works as intended.

The Code Given:

import java.util.Scanner;

public class U6_L1_Activity_Two{
public static void main(String[] args){
int[h] = new int[10];
0 = h[0];
1 = h[1];
h[2] = h[0] + h[1];
h[3] = h[1] + h[2];
h[4] = h[2] + h[3];
h[5] = h[3] + h[4];
h[6] = h[4] + h[5];
h[7] = h[5] + h[6];
h[8] = h[6] + h[7]
h[9] = h[7] + h[8];
h[10] = h[8] + h[9];
Scanner scan = new Scanner(System.in);
int i = scan.nextInt();
if (i >= 0 && i < 10)
System.out.println(h(i));
}
}

Which heading size fits for the word headings​

Answers

Answer:

Explanation:

h1 i think

It took her 9 more months but Marina has managed to save the full $725 plus more to cover fees to pay off the pay-day loan company. However, she forgot to account for the interest that had been compounding over time. Consider it is now 275 days later, the remaining loan was $725 and the APR is 47% compounded daily.

What is the total amount that Marina must now pay in order to pay off her the loan, accounting for interest?

What is the total amount of interest paid (not including fees)?

Answers

Answer:

she loaned 750 dollars.

it took her 9 months to repay it.

it was 275 days since she took out the loan.

the interest rate was 47% per year compounded daily.

the daily interest rate would be 47% / 365 / 100 = .0012876712 per day.

this assumes 365 days in a year, which is the standard assumption that i know of.

the future value of 750 for 275 days would be based on the formula of f = p * (1 + r) ^ n

f is the future value

p is the present value

r is the interest rate per time period (days in this case)

 

n is the number of time periods (days in this case).

the formula becomes:

f = 750 * (1 + .0012876712) ^ 275

solve for f to get:

f = 1068.440089.

that's the future value of the loan.

it's what she owes.

the interest rate on the loan is that value minus 750 = 318.440089.

that's how much extra she needs to pay in addition to whatever fees she was charged.

Other Questions
what is the probability of rolling a 3 Please help me solve this problem. Light energy travels as - A: compressional waves B: primary waves C: surface waves D: transverse waves Why wouldn't a case involving the piracy of a merchant vessel be tried in the court of international trade? say you have a good friend or family member that you love, and they are a heavy smoker. Describe in your post how you might convince them to quit. Be sure to provide evidence, which might include some examples of diseases caused by smoking. Which was not an issue John Adams faced?A. Thomas Jeffersons planB. Alexander Hamiltons planC. XYZ AffairD. Sedition act Identify the function of the underlined verbal in the sentence below.Lalon took a gardening class.Direct ObjectAdverbPredicate Nominative Adjective Procrastination is not usually a cause of stress and anxiety true or false A project has been assigned a discount rate of 12 percent. If the project starts immediately, it will have an initial cost of $480 and cash inflows of $350 a year for three years. If the start is delayed one year, the initial cost will rise to $520 and the cash flows will increase to $385 a year for three years. What is the value of the option to wait Review an1. Without computing, state whether thesign is positive or negative in each of thefollowing cases:32 * (-12); 4.75 (-2.4) < 3;(-2.15) * (-14.6); (-2) (-3) (-7);10.5*(-2)*(-3.5); (-3.7)*(-2.6)*(-0.7)x4 Question: The table shows pairs of random digits. The pairs in each group simulate the 5 shots taken by the opponent.The paired digits 00 to 99 represent 100 shots.Let 00 to 72 = a shot that is saved. Which digits represent a goal scored? Explain. First determine the integers the x-coordinate and the y-coordinate are between. Then look at each to decide which integer the x- or y-value is closer to, and approximate the coordinate value to the tenths place. Maria must give her dog 3 ml of ear drops medicine once per day in one ear for 3 days. The bottle contains 2 oz of medication Express in milliliters how much of a medication will be left after the dogs treatment is complete round your final answer to two decimal points khanya builders are paid R480 for 8 hours of work,whiles rex builders are paid R660 for 12 hours of work.which company is paid the higher rate Please help me with my Spanish please help i have 1 hour to compleate Which type of fire should never be put out with water?clothing firegrease firepaper firewood fire Perform an online or offline search, and choose a technology firm near your location. You must then call and speak to someone from the firm's Human Resources department (preferably the HR manager) and conduct a brief (15- to 20-minute) interview with them. During the interview, you need to ask questions about the company's core functions, the different types of jobs available in the company, a list of qualities that the company expects from its employees, and so on. In other words, your questions should cover the points that the HR department would include in the company's Code of Conduct Manual. You should keep a record of all the answers and write a summary of what you have learned. Alternatively, if you do not find a technology firm near your location, or if the HR manager is unwilling to have a sit-down interview, you could find a company online and correspond with the manager through email with the help of a questionnaire. The Age of Enlightenment What might you look for in another place on Earth to know if its surface pieces are moving towards each other?