Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 1 : 4 1 4 9 cit 1 2 9 _ hw 2 _ ch 3 _ SP 2 4 Denverapre: The Document file

11:41
49
cit129_hw2_ch3_SP24
Denverapre:
The Document file (.DOCX) with your pseudocode - Name your file using the fr.mont. firstNameLastNameCIT129_hw2.DOCX. Note that I will also accept 2 of 2r PDF files for this question on writing a pseudocode.
Under the Resources link in your Canvas course, there is a PDF file next to the item: "A note on Algorithms 1". According to this document, should a programmer just start with writing code in a programming language or always start with writing the pseudocode?
CIT129- Assignment 2- Chapter 3
Page 1
2. Under the resources link, there is a video on "how to write a pseudocode". Towards the end of that video, there are 4 fundamental concepts associated with programming. Name them and provide an example for each.
3. A recipe to make donuts requires the following ingredients to make 20 of these delicious donuts.
2.5 cups of sugar
5 cups of butter
1.8 cups of flour
1 cup of salt
Write a pseudocode (NOT a computer code) for a program to ask the user for the number of donuts we like to make. Display the number of cups of each ingredient needed to make the specified number of donuts. Don't forget to create descriptive variable names and number your steps. Think about the Input, processing and output steps needed to solve this problem.
HINT: If the user wants to make 50 donuts, she will need 5020**2.5 cups of sugar. Similar calculations apply to the other ingredients. I hope the "Math" is not too difficult!
Write a pseudocode for the following problem. The area of a circle is approximated as 3.14 radius. The volume of the sphere is 4/3radiusradius. Ask the user for the required information and calculate and display the area of the circle and the volume of the sphere. Choose descriptive variable names.
Write a pseudocode for the following problem. Prompt for a salesperson's sales (e.g., $1000) for a day and their commission rate as a percentage (e.g.,12%). Calculate and output their amount of commission for that day. Here is an example that should help with the calculation:
sales =2500
commissionRate =8
commission =2500**(8100)=200
CIT129- Assignment 2- Chapter 3
Page 2
[]
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2017 Skopje Macedonia September 18 22 2017 Proceedings Part 3 Lnai 10536

Authors: Yasemin Altun ,Kamalika Das ,Taneli Mielikainen ,Donato Malerba ,Jerzy Stefanowski ,Jesse Read ,Marinka Zitnik ,Michelangelo Ceci ,Saso Dzeroski

1st Edition

3319712721, 978-3319712727

More Books

Students also viewed these Databases questions

Question

4. Explain the strengths and weaknesses of each approach.

Answered: 1 week ago

Question

3. Identify the methods used within each of the three approaches.

Answered: 1 week ago