CS代写|程序设计作业代写algorithm Programming代考|PROBLEMS INVOLVING SELECTION

如果你也在 怎样代写程序设计algorithm Programming这个学科遇到相关的难题,请随时右上角联系我们的24/7代写客服。

程序设计是用于解决一个问题的程序或公式。它是基于进行一连串指定的行动,这些行动描述了如何做某事,而你的计算机每次都会以这种方式做。

statistics-lab™ 为您的留学生涯保驾护航 在代写程序设计algorithm Programming方面已经树立了自己的口碑, 保证靠谱, 高质且原创的统计Statistics代写服务。我们的专家在代写程序设计algorithm Programming代写方面经验极为丰富,各种代写程序设计algorithm Programming相关的作业也就用不着说。

我们提供的程序设计algorithm Programming及其相关学科的代写,服务范围广, 其中包括但不限于:

  • Statistical Inference 统计推断
  • Statistical Computing 统计计算
  • Advanced Probability Theory 高等概率论
  • Advanced Mathematical Statistics 高等数理统计学
  • (Generalized) Linear Models 广义线性模型
  • Statistical Machine Learning 统计机器学习
  • Longitudinal Data Analysis 纵向数据分析
  • Foundations of Data Science 数据科学基础
CS代写|程序设计作业代写algorithm Programming代考|PROBLEMS INVOLVING SELECTION

CS代写|程序设计作业代写algorithm Programming代考|This chapter deals with problems

This chapter deals with problems involving decision-making. This process of decision-making is implemented through a logic structure called selection. Here a predicate, also called a condition, is tested to see if it is true or false, If it is true, a course of action is specified for it; if it is found to be false, an alternative course of action is expressed. We can express this process using flowchart notation. Note that a course of action may involve one or more sequences of operations, and there should be a common meeting point to satisfy the single rule

pointed to by the connector containing the word “Exit.” A flowchart may contain any number of decision boxes depending on the processing requirements, and the boxes may appear in any sequence depending on the program logic decided. For example, a number of decision boxes may follow one another. The following flowcharts provide an explanation of the logic to clarify this concept.
Problem 2.1. Develop a flowchart to show how the profit or loss for a sale can be obtained.

Task Analysis. The profit or loss for a sale can be obtained if the cost price and sale price are known. However, there is a need to make a decision here. If the cost price is more than the sale price, then it indicates a loss in the process; otherwise, there will be either zero profit (no profit or a loss) or some profit.

CS代写|程序设计作业代写algorithm Programming代考|Task Analysis

Task Analysis. We need to calculate the sales tax first by taking one of the two given rates. For this purpose, we require two inputs: the sale price of the item under consideration and the origin of the item. Let us assume that we provide ” $\mathrm{N}$ ” or ” $\mathrm{F}$ ” as the input to indicate “national” or “foreign,” respectively.
The algorithm corresponding to Problem $2.4$ is shown below:
Step 1. INPUT TO SP
Step 2. INPUT TO CHOICE (“N” for national and “F” for foreign)
Step 3. IF CHOICE = “N”
THEN COMPUTE ST $\leftarrow$ SP* $.08$
ELSE
COMPUTE ST $\leftarrow \mathrm{SP} * .18$
END-IF
COMPUTE NP $\leftarrow \mathrm{NP}+\mathrm{ST}$
Step 4. PRINT NP
Step 5. STOP
Problem 2.5. An equation with the form $a x^{2}+b x+c=0$ is known as a quadratic equation. Draw a flowchart to show how to solve a quadratic equation.
Task Analysis. The values $a, b$, and $c$ in the equation represent constant values. So $4 x^{2}-17 x-15=0$ represents a quadratic equation where $a=4$, $b=-17$, and $c=-15$. The values of $x$ that satisfy a particular quadratic equation are known as the roots of the equation. The roots may be calculated by substituting the values of $a, b$, and $c$ into the following two formulas:
$$
\begin{aligned}
&x_{1}=\left(-b+\sqrt{b^{2}-4 a c}\right) / 2 a \
&x_{2}=\left(-b+\sqrt{b^{2}-4 a c}\right) / 2 a
\end{aligned}
$$
The expression $b^{2}-4 a c$ is called the determinant of the equation because it determines the nature of the roots of the equation. If the value of the determinant is less than zero, then the roots of the equation $x_{1}$ and $x_{2}$, are imaginary (complex) numbers. To solve a quadratic equation, we should allow the user to enter the values for $a, b$, and $c$. If the discriminant is less than zero, then a message should be displayed stating that the roots are imaginary; otherwise, the program should proceed to calculate and display the two roots of the equation.
The algorithm corresponding to Problem $2.5$ is as follows:
Step 1. INPUT TO A, B, C
Step 2. COMPUTE D $\leftarrow(\mathrm{B} * \mathrm{~B}-4 * \mathrm{~A} * \mathrm{C})$ (Calculate the value of the discriminant) and store in $D$

CS代写|程序设计作业代写algorithm Programming代考|Construct flowcharts for the following problems

Construct flowcharts for the following problems:
(i) Print a currency conversion table for pounds, francs, marks, and lire to dollars.
(ii) Find whether a given year is a leap year.
Hint. A year is said to be a leap year if it is either divisible by 4 but not by 100 or divisible by 400 .
(iii) Validate a given year.
Hints. The year in the date must be greater than zero, the months must lie between 1 and 12 , and the days must lie between 1 and 31 , depending on the month numbers.
(iv) Show the time required by an advertising agency for its advertising program to run in Boston and on National Public Radio and to display the amount to be paid by the agency for its advertisement.

(v) Calculate the commission of a salesman when sales and the region of the sales are given as input. The commission is calculated with the rules as follows:
(a) No commission, if sales $<\$ 9,000$ in Region A (b) $5.5 \%$ of sales $<\$ 7,000$ in Region B and when sales $<\$ 13,000$ in Region A (c) $7.5 \%$ of sales when sales $>=\$ 14,000$ in Region A and when sales $>$ $=\$ 13,000$ in Region B.
(vi) Accept three integers representing the angles of a triangle in degrees to determine whether they form a valid set of angles of a triangle. If it is not a valid set, then generate a message and terminate the process. If it is a valid set, then the process determines whether it is equiangular (all three angles are the same). It also determines if the triangle is right angled (has one angle with 90 degrees), obtuse angled (one angle above $90)$, or acute angled (all three angles are below 90 degrees). Finally, it shows conclusion about the triangle.
(vii) Accept the lengths of the three sides of a triangle to validate whether they can be the sides of a triangle and then classify the triangle as equilateral (all three sides are equal), scalene (all three sides are different), or isosceles (exactly two sides are equal), and then to see whether it is a right angled triangle (the sum of the squares of two sides is equal to the square of the third side.)

Hint. Three numbers are valid as the sides of a triangle if each one is positive and the sum of every two numbers is greater than the third.

CS代写|程序设计作业代写algorithm Programming代考|PROBLEMS INVOLVING SELECTION

程序设计代写

CS代写|程序设计作业代写algorithm Programming代考|This chapter deals with problems

本章处理涉及决策的问题。这个决策过程是通过一种称为选择的逻辑结构来实现的。这里对谓词,也称为条件进行测试,看它是真还是假,如果是,则为其指定一个动作过程;如果发现它是错误的,则表示另一种行动方案。我们可以使用流程图符号来表达这个过程。请注意,一个行动过程可能涉及一个或多个操作序列,并且应该有一个共同的交汇点来满足单一规则

由包含单词“Exit”的连接器指向。根据处理要求,流程图可以包含任意数量的决策框,并且这些框可以根据所决定的程序逻辑以任何顺序出现。例如,多个决策框可能会一个接一个。以下流程图提供了逻辑的解释,以阐明这个概念。
问题 2.1。制定流程图以显示如何获得销售利润或损失。

任务分析。如果知道成本价和销售价,就可以获得销售的损益。但是,这里需要做出决定。如果成本价高于销售价,则说明过程中有亏损;否则,将有零利润(没有利润或亏损)或一些利润。

CS代写|程序设计作业代写algorithm Programming代考|Task Analysis

任务分析。我们需要先采用两个给定税率之一来计算销售税。为此,我们需要两个输入:所考虑项目的销售价格和项目的原产地。让我们假设我们提供“ñ“ 或者 ”F”作为输入分别表示“国家”或“外国”。
问题对应的算法2.4如下所示:
Step 1. INPUT TO SP
Step 2. INPUT TO CHOICE(“N”代表本国,“F”代表外国)
Step 3. IF CHOICE = “N”
THEN COMPUTE ST←SP*.08
其他
计算←小号磷∗.18
END-IF
计算 NP←ñ磷+小号吨
步骤 4. 打印 NP
步骤 5. 停止
问题 2.5。具有形式的方程一种X2+bX+C=0被称为二次方程。画一个流程图来说明如何求解一个二次方程。
任务分析。价值一种,b, 和C在等式中代表常数值。所以4X2−17X−15=0表示一个二次方程,其中一种=4, b=−17, 和C=−15. 的价值观X满足特定二次方程的称为方程的根。根可以通过代入的值来计算一种,b, 和C转化为以下两个公式:

X1=(−b+b2−4一种C)/2一种 X2=(−b+b2−4一种C)/2一种
表达方式b2−4一种C被称为方程的行列式,因为它决定了方程的根的性质。如果行列式的值小于零,则方程的根X1和X2, 是虚数(复数)。为了求解二次方程,我们应该允许用户输入一种,b, 和C. 如果判别式小于零,则应显示一条消息,说明根是虚数;否则,程序应继续计算并显示方程的两个根。
问题对应的算法2.5如下:
Step 1. INPUT TO A, B, C
Step 2. COMPUTE D←(乙∗ 乙−4∗ 一种∗C)(计算判别式的值)并存储在D

CS代写|程序设计作业代写algorithm Programming代考|Construct flowcharts for the following problems

为下列问题构建流程图:
(i) 打印英镑、法郎、马克和里拉到美元的货币换算表。
(ii) 找出给定年份是否为闰年。
暗示。如果一年能被 4 整除但不能被 100 整除或能被 400 整除,则称该年为闰年。
(iii) 验证给定的年份。
提示。日期中的年份必须大于零,月份必须介于 1 和 12 之间,天数必须介于 1 和 31 之间,具体取决于月份数。
(iv) 显示广告代理商在波士顿和国家公共广播电台播放其广告节目所需的时间,并显示该代理商为其广告支付的金额。

(v) 当销售额和销售区域作为输入时,计算推销员的佣金。佣金的计算规则如下:
(a) 没有佣金,如果销售<$9,000在 A 区 (b)5.5%销售额<$7,000在 B 区和销售时<$13,000在 A 区 (c)7.5%销售时的销售>=$14,000在 A 区和销售时> =$13,000在区域 B 中。
(vi) 接受以度为单位表示三角形角度的三个整数,以确定它们是否构成三角形的一组有效角度。如果它不是有效集合,则生成一条消息并终止该过程。如果它是一个有效集合,则该过程确定它是否是等角的(所有三个角都相同)。它还确定三角形是直角(有一个角与 90 度角),钝角(一个角在上面90),或锐角(所有三个角度都低于 90 度)。最后,它显示了关于三角形的结论。
(vii) 接受三角形三边的长度以验证它们是否可以是三角形的边,然后将三角形分类为等边(三边相等)、不等边(三边都不同)或等腰三角形(正好两条边相等),然后看是否是直角三角形(两条边的平方和等于第三条边的平方。)

暗示。如果每个数字都是正数并且每两个数字的和大于第三个数字,则三个数字作为三角形的边是有效的。

CS代写|程序设计作业代写algorithm Programming代考 请认准statistics-lab™

统计代写请认准statistics-lab™. statistics-lab™为您的留学生涯保驾护航。

金融工程代写

金融工程是使用数学技术来解决金融问题。金融工程使用计算机科学、统计学、经济学和应用数学领域的工具和知识来解决当前的金融问题,以及设计新的和创新的金融产品。

非参数统计代写

非参数统计指的是一种统计方法,其中不假设数据来自于由少数参数决定的规定模型;这种模型的例子包括正态分布模型和线性回归模型。

广义线性模型代考

广义线性模型(GLM)归属统计学领域,是一种应用灵活的线性回归模型。该模型允许因变量的偏差分布有除了正态分布之外的其它分布。

术语 广义线性模型(GLM)通常是指给定连续和/或分类预测因素的连续响应变量的常规线性回归模型。它包括多元线性回归,以及方差分析和方差分析(仅含固定效应)。

有限元方法代写

有限元方法(FEM)是一种流行的方法,用于数值解决工程和数学建模中出现的微分方程。典型的问题领域包括结构分析、传热、流体流动、质量运输和电磁势等传统领域。

有限元是一种通用的数值方法,用于解决两个或三个空间变量的偏微分方程(即一些边界值问题)。为了解决一个问题,有限元将一个大系统细分为更小、更简单的部分,称为有限元。这是通过在空间维度上的特定空间离散化来实现的,它是通过构建对象的网格来实现的:用于求解的数值域,它有有限数量的点。边界值问题的有限元方法表述最终导致一个代数方程组。该方法在域上对未知函数进行逼近。[1] 然后将模拟这些有限元的简单方程组合成一个更大的方程系统,以模拟整个问题。然后,有限元通过变化微积分使相关的误差函数最小化来逼近一个解决方案。

tatistics-lab作为专业的留学生服务机构,多年来已为美国、英国、加拿大、澳洲等留学热门地的学生提供专业的学术服务,包括但不限于Essay代写,Assignment代写,Dissertation代写,Report代写,小组作业代写,Proposal代写,Paper代写,Presentation代写,计算机作业代写,论文修改和润色,网课代做,exam代考等等。写作范围涵盖高中,本科,研究生等海外留学全阶段,辐射金融,经济学,会计学,审计学,管理学等全球99%专业科目。写作团队既有专业英语母语作者,也有海外名校硕博留学生,每位写作老师都拥有过硬的语言能力,专业的学科背景和学术写作经验。我们承诺100%原创,100%专业,100%准时,100%满意。

随机分析代写


随机微积分是数学的一个分支,对随机过程进行操作。它允许为随机过程的积分定义一个关于随机过程的一致的积分理论。这个领域是由日本数学家伊藤清在第二次世界大战期间创建并开始的。

时间序列分析代写

随机过程,是依赖于参数的一组随机变量的全体,参数通常是时间。 随机变量是随机现象的数量表现,其时间序列是一组按照时间发生先后顺序进行排列的数据点序列。通常一组时间序列的时间间隔为一恒定值(如1秒,5分钟,12小时,7天,1年),因此时间序列可以作为离散时间数据进行分析处理。研究时间序列数据的意义在于现实中,往往需要研究某个事物其随时间发展变化的规律。这就需要通过研究该事物过去发展的历史记录,以得到其自身发展的规律。

回归分析代写

多元回归分析渐进(Multiple Regression Analysis Asymptotics)属于计量经济学领域,主要是一种数学上的统计分析方法,可以分析复杂情况下各影响因素的数学关系,在自然科学、社会和经济学等多个领域内应用广泛。

MATLAB代写

MATLAB 是一种用于技术计算的高性能语言。它将计算、可视化和编程集成在一个易于使用的环境中,其中问题和解决方案以熟悉的数学符号表示。典型用途包括:数学和计算算法开发建模、仿真和原型制作数据分析、探索和可视化科学和工程图形应用程序开发,包括图形用户界面构建MATLAB 是一个交互式系统,其基本数据元素是一个不需要维度的数组。这使您可以解决许多技术计算问题,尤其是那些具有矩阵和向量公式的问题,而只需用 C 或 Fortran 等标量非交互式语言编写程序所需的时间的一小部分。MATLAB 名称代表矩阵实验室。MATLAB 最初的编写目的是提供对由 LINPACK 和 EISPACK 项目开发的矩阵软件的轻松访问,这两个项目共同代表了矩阵计算软件的最新技术。MATLAB 经过多年的发展,得到了许多用户的投入。在大学环境中,它是数学、工程和科学入门和高级课程的标准教学工具。在工业领域,MATLAB 是高效研究、开发和分析的首选工具。MATLAB 具有一系列称为工具箱的特定于应用程序的解决方案。对于大多数 MATLAB 用户来说非常重要,工具箱允许您学习应用专业技术。工具箱是 MATLAB 函数(M 文件)的综合集合,可扩展 MATLAB 环境以解决特定类别的问题。可用工具箱的领域包括信号处理、控制系统、神经网络、模糊逻辑、小波、仿真等。

R语言代写问卷设计与分析代写
PYTHON代写回归分析与线性模型代写
MATLAB代写方差分析与试验设计代写
STATA代写机器学习/统计学习代写
SPSS代写计量经济学代写
EVIEWS代写时间序列分析代写
EXCEL代写深度学习代写
SQL代写各种数据建模与可视化代写

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注