Coursehelp
May 23, 2019

## (Solved) : Use Sandwich Theorem Problems 7 8 9 9 Lim Tan 10x 15x Q30789593 . . .

Use the Sandwich Theorem in problems #7,#8,#9 #9 lim tan (10x) 15x Show transcribed image text

. . .

Coursehelp

## (Solved) : Use Screenshots Clear Explanation Please Questions Soccer Video Games Hw 1 Come Two Intere Q29168505 . . .

use screenshots + clear explanation please.

questions about Soccer and Video games.

? HW#1: Come up with two interesting questions

2. Describe what data you would need and how you get them

3. Briefly explain how you think you can solve the question

. . .

Coursehelp

## (Solved) : Use Sample Code Write Program Calculate Compound Interest Comments Give Hints Code Need Q27336324 . . .

Write a program in C# that calculates compound interest The formula for compound interest is: A P+(r/m) Where ·A = Accrued Amount (principal plus interest) ·P-Principal Amount · r Annual interest rate (as decimal) · t = Number of years · Number of times interest is compounded per year Write the program using methods. Finish the method heading of two methods – WelcomeMessage0 and ExitProgram0 – by selecting the appropriate moditfiers and return types, and finish the header and method body of OutputResult0. Finally, implement two CalculateCompoundInterest0 methods which calculate the accrued amount – one which takes as parameters the principal, interest rate, and number of years accumulating interest, and assumes the number of times interest is compounded per year is daily (365), and another that allows the number of compounds per year to be specified Your code will be run by calling the two versions of the CalculateCompoundInterest0 method, OutputResult0 and ExitProgram0 methods directly. As a result, make sure you make these methods public. Show transcribed image text Write a program in C# that calculates compound interest The formula for compound interest is: A P+(r/m) Where ·A = Accrued Amount (principal plus interest) ·P-Principal Amount · r Annual interest rate (as decimal) · t = Number of years · Number of times interest is compounded per year Write the program using methods. Finish the method heading of two methods – WelcomeMessage0 and ExitProgram0 – by selecting the appropriate moditfiers and return types, and finish the header and method body of OutputResult0. Finally, implement two CalculateCompoundInterest0 methods which calculate the accrued amount – one which takes as parameters the principal, interest rate, and number of years accumulating interest, and assumes the number of times interest is compounded per year is daily (365), and another that allows the number of compounds per year to be specified Your code will be run by calling the two versions of the CalculateCompoundInterest0 method, OutputResult0 and ExitProgram0 methods directly. As a result, make sure you make these methods public.

. . .

Coursehelp

## (Solved) : Use Scanner Class Read Double Variables Print Result Four Basic Arithmetic Operations Addi Q31001760 . . .

Use the Scanner class to read them into double variables.Print out the result of the four basic arithmeticoperations (addition, subtraction, multiplication, anddivision) on the two numbers

. . .

Coursehelp

## (Solved) : Use Sage Explore Positive Integers N Decimal Expansion 1 N End Zeros Q32603732 . . .

? Use Sage to explore this.:

For what positive integers n does the decimal expansion for 1 nend in all zeros?

2. For what positive integers n does the decimal expansion for end in all zeros? Use Sage 100, and to explore this. I suggest making a chart of the decimal expansions for n then look for patterns. Show transcribed image text

. . .

Coursehelp

## (Solved) : Use Scanf Read Numbers Imagine Want Integer Four Digits Scanf Break Character Array Four E Q29471183 . . .

How to use scanf to read numbers only?

Imagine I want an integer with four digits from scanf, and thenbreak it into an character array with four elements.

I have

scanf(“%d”,&guess);

for (k = 3; k >=0; k–) {

guessArray[k] = (guess % 10)+’0′;

guess = guess / 10;}

to make integer 1234 into array[4]={‘1’, ‘2’, ‘3’, ‘4’};

If I want all invalid character (that is a character not between0 and 9) to be silently ignored

for example, when I type 1a2b3c4d as input, I can still get thecharacter array as array[4]={‘1’, ‘2’, ‘3’, ‘4’};

what should I do?

Many thanks!!!

. . .

Coursehelp

## (Solved) : Use Rules Inference Laws Propositional Logic Prove Argument Valid Number Line Argument Lab Q31072336 . . .

Use the rules of inference and the laws of propositional logicto prove that each argument is valid. Number each line of yourargument and label each line of your proof “Hypothesis” or with thename of the rule of inference used at that line. If a rule ofinference is used, then include the numbers of the previous linesto which the rule is applied.

(a)

p → q
q → r
¬r
∴ ¬p

(b)

p → (q ∧ r)
¬q
∴ ¬p

(c)

(p ∧ q) → r
¬r
q
∴ ¬p

(d)

(p ∨ q) → r
p
∴ r

(e)

p ∨ q
¬p ∨ r
¬q
∴ r

(f)

p → q
r → u
p ∧ r
∴ q ∧ u

. . .

Coursehelp

## (Solved) : Use School Table Create Query Lists Schools Either Located Urban Area Population Least 250 Q31043571 . . .

Use the School table tocreate a query that lists the schools that are either located in anurban area with a population of at least 250,000 (ULOCAL=11) or arecharter schools (CHARTR=1). Show the school name, phone, city,ULOCAL and CHARTR. Order the results by City. Name the query “Largeor Charter” (without the quotes). [11 points]

. . .

Coursehelp

## (Solved) : Use Rules Inference Show Ifvxp X V Q X Yt P X Q X R X True Vx R X P X Also True Domains Qu Q31154859 . . .

Use rules of inference to show that ifvxP(x) v Q(x)) and yt( P(x) л Q(x)) → R(x)) are true, then Vx( R(x) → P(x)) is also true, where the domains of all quantifiers are the same. Show transcribed image text

. . .

Coursehelp

## (Solved) : Use Selection Sort Classes Fill Rate Ascending Order Source Code Include Include Include I Q30569178 . . .

How I use the selection sort to classes by fill rate inascending order for this source code

#include<iostream>

#include<string>

#include<fstream>

#include<iomanip>

#define MAX 100

using namespace std;

int getdata(ifstream& infile,string crn[],stringclassname[],int cenrollment[],int maxenrollment[],intwaitlist[]);

void output(string crn[],string classname[],intcenrollment[],int maxenrollment[],int waitlist[],doublefillrate[],int size);

void calculateAverageFillRate(double fillrate[],int size,intmaxenrollment[],int cenrollment[]);

void sortselection(string crn[],string classname[],intcenrollment[],int maxenrollment[],int waitlist[],doublefillrate[],int size);

int main()

{

ifstream infile;

string classname[MAX];

string crn[MAX];

int cenrollment[MAX],maxenrollment[MAX],waitlist[MAX];

double fillrate[MAX];

int size,totalCount;

infile.open(“Lab7FillRates.txt”);

if(!infile)

{

cout << “No such file!” << endl;

}

size=getdata(infile,crn,classname,cenrollment,maxenrollment,waitlist);

calculateAverageFillRate(fillrate,size,maxenrollment,cenrollment);

output(crn,classname,cenrollment,maxenrollment,waitlist,fillrate,size);

sortselection(crn,classname,cenrollment,maxenrollment,waitlist,fillrate,size);

return 0;

}

/////////////////////////////////////////

{

ofstream f;

f.open(“Lab 7 output.txt”);

f << “CRN” << setw(15) << “Course” <<setw(25) << “CurrentEnrollment” << setw(25) <<“MaxEnrollment” << setw(25) << “Number of WaitList”<< setw(15) << “FillRate” << endl;

f.close();

cout << “CRN” << setw(15) << “Course” <<setw(25) << “CurrentEnrollment” << setw(25) <<“MaxEnrollment” << setw(25) << “Number of WaitList”<< setw(15) << “FillRate” << endl;

}

/////////////////////////////////////////

int getdata(ifstream& infile,string crn[],stringclassname[],int cenrollment[],int maxenrollment[],intwaitlist[])

{

/*

Pre: infile – reference to the datafile

crn[] – array of CRN

classname[] – array of ClassName

cenrollment[] – array of CurrentEnrollment for the class

maxenrollment[] – array of MaxEnrollment for the class

waitlist[] – array of Number of students on waiting list for theclass

Post: Fill Rate on CIS department in DE ANZA

Purpose: To input the information from data file

*/

int count = 0;

while ( count < MAX && !infile.eof())

{

string s;

string m,n;

int o,p,q;

infile >> s >> m >> n >> o >> p>> q;

crn[count] = s;

classname[count] = m+” “+n;

cenrollment[count] = o;

maxenrollment[count] = p;

waitlist[count] = q;

count++;

}

return count;

}

////////////////////////////////////////////////

void calculateAverageFillRate(double fillrate[],int size,intmaxenrollment[],int cenrollment[])

{

/*

Pre: fillrate[] – array of Fill Rates

cenrollment[] – array of CurrentEnrollment for the class

maxenrollment[] – array of MaxEnrollment for the class

size –

Post:

Purpose:

*/

double a=0;

for(int i=0; i<size; i++)

{

float max = (float)maxenrollment[i];

float st = (float)cenrollment[i];

double b = (st/max)*100;

fillrate[i] = b;

}

}

////////////////////////////////////////////////

void sortselection(string crn[],string classname[],intcenrollment[],int maxenrollment[],int waitlist[],doublefillrate[],int size)

{

for (int i=0; i < size; i++)

{

for (int j; j< size-i;j++)

{

if (fillrate[j] > fillrate[j+1])

{

int temp=fillrate[j];

fillrate[j]=fillrate[j+1];

fillrate[j+1]=temp;

}

}

}

return ;

}

///////////////////////////////////////////////

void output(string crn[],string classname[],intcenrollment[],int maxenrollment[],int waitlist[],doublefillrate[],int size)

{

/*

Pre: infile – reference to the datafile

crn[] – array of CRN

classname[] – array of ClassName

cenrollment[] – array of CurrentEnrollment for the class

maxenrollment[] – array of MaxEnrollment for the class

waitlist[] – array of Number of students on waiting list for theclass

fillrate[] – array of FillRate about the class

size – size of our class

Post: nothing

Purpose: To input the information to screen

*/

ofstream f;

f.open(“Lab 7 output.txt”,ios::app);

for (int i=0; i < size-1; i++)

{

f << crn[i] << setw(17) << classname[i]<< setw(13) << cenrollment[i] << setw(27)<< maxenrollment[i] << setw(23) << waitlist[i]<< setw(20) << fillrate[i] << endl;

}

f.close();

for (int i=0; i < size-1; i++)

{

cout << crn[i] << setw(17) << classname[i]<< setw(13) << cenrollment[i] << setw(27)<< maxenrollment[i] << setw(23) << waitlist[i]<< setw(20) << fillrate[i] << endl;

}

return;

}