SlideShare une entreprise Scribd logo
1  sur  8
ICT ASSIGNMENT
Flow Charts and Pseudo
Codes with Python
Happy Nezza B. Aranjuez
9 – Becquerel
1. A flowershop sells roses for Php 25 each and tulips for Php 40 each. Prepare a
flowchart, pseudocode, and python codethat determines how much Irene will
spend if she will buy R number of rose and T number of tulips.
FLOWCHART:
START Input T Input R
PSEUDOCODE:
TT = T x PR
RR = R x PT
Total = TT + RR
output irene will spend, Total pesos
PYTHON CODE:
2. Print your average grade if it is greater than 85.
FLOWCHART:
PT x T PR x T
(PT x T) +
(PR x T)
Irene will spend
total pesosEND
START Input grade
If grade > 85
PSEUDOCODE:
grade = input what is your grade
if grade > 85 then
output you passed your grade is, grade
else
output that’s alright
PYTHON CODE:
3. Accept and print positive numbers only.
FLOWCHART:
Input gradeInput grade
Output you passed your
grade is, grade
END
Output that’s alright
TRUE FALSE
START Input number
If number is
positive
A
PSEUDOCODE:
number = input "Input a number:"
while True:
if number > 0:
output the number of your choice is, number
break
else:
output invalid number
number = input “Input a number”
PYTHON CODE:
4. Input 3 numbers a, b, and c,
a. If a is equal to b, print c
b. If a is greater than b, then print their difference
c. If b is less than c, then print their sum, otherwise print their average
FLOWCHART:
Output invalid
number
Output
number
TRUE FALSE
END
A
START Input a
If
a = b
FALSE
Input c Input c
If
a > b
If
b < c
FALSE
PSEUDOCODE:
a = input"Input a number:"
b = input"Input a number:"
c = input "Inputa number:"
while True:
if a == b:
outputc
if b < c:
output b+c
break
else:
output (b+c)/2
break
elif a > b:
outputa-b
PYTHON CODE:
5. Print passed if the user
specified grade is at least 75, if otherwise print failed.
FLOWCHART:
Output cOutput
average
TRUE
END A
A
Average =
(b+c)/2
FALSE
Sum =
b + c
Dif =
a - b
TRUETRUE
Output
sum
Output
dif
A
START Input grade
If grade >= 75
TRUE FALSE
PSEUDOCODE:
grade = input "What is your grade?"
if grade >= 75:
output passed
else:
output failed
PYTHON CODE:
6. Convert the user’s weight from pounds to kilograms if the inputted value is positive.
Otherwise, print invalid data. (1kg = 2.2 lbs)
FLOWCHART:
Output FailedOutput Passed
END
START Input weight
If number is
positive
TRUE FALSE
PSEUDOCODE:
weight = input "How many pounds do you weigh?"
if weight > 0:
convert = weight/2.2
output convert
else:
output invalid data
PYTHON CODE:
7. Compute for the equivalent percentage grade of the given score using the format
score/100*60+40. Print a corresponding remark based on the following guidelines:
 90-100 excellent
 85-89 very good
 80-84 good
 75-79 fair
 74 below – needs improvement
FLOWCHART:
Output invalid
number
Output convert
Convert =
Weight/2.2
END
PSEUDOCODE: PYTHON CODE:
score = input"Whatis your score?"
grade =score/100*60+40
if 100>=grade>= 90:
output excellent
elif 89>=grade>= 85:
outputvery good
elif 84>=grade>= 80:
outputgood
elif 79>=grade>= 75:
outputfair
else:
outputneeds improvement

Contenu connexe

Tendances

Day 1 - Measures of Position - Quartiles - Percentiles - ZScores-BoxPlots 2.6...
Day 1 - Measures of Position - Quartiles - Percentiles - ZScores-BoxPlots 2.6...Day 1 - Measures of Position - Quartiles - Percentiles - ZScores-BoxPlots 2.6...
Day 1 - Measures of Position - Quartiles - Percentiles - ZScores-BoxPlots 2.6...
rich_26
 

Tendances (16)

Nesting of if else statement & Else If Ladder
Nesting of if else statement & Else If Ladder Nesting of if else statement & Else If Ladder
Nesting of if else statement & Else If Ladder
 
Business math
Business mathBusiness math
Business math
 
Introduction to C Programming
Introduction to C ProgrammingIntroduction to C Programming
Introduction to C Programming
 
C pointer basics
C pointer basicsC pointer basics
C pointer basics
 
Computer graphics lab manual
Computer graphics lab manualComputer graphics lab manual
Computer graphics lab manual
 
Measures of Central Tendency: Ungrouped and Grouped
Measures of Central Tendency: Ungrouped and GroupedMeasures of Central Tendency: Ungrouped and Grouped
Measures of Central Tendency: Ungrouped and Grouped
 
Handling of character strings C programming
Handling of character strings C programmingHandling of character strings C programming
Handling of character strings C programming
 
Day 1 - Measures of Position - Quartiles - Percentiles - ZScores-BoxPlots 2.6...
Day 1 - Measures of Position - Quartiles - Percentiles - ZScores-BoxPlots 2.6...Day 1 - Measures of Position - Quartiles - Percentiles - ZScores-BoxPlots 2.6...
Day 1 - Measures of Position - Quartiles - Percentiles - ZScores-BoxPlots 2.6...
 
C++ Programming Language
C++ Programming Language C++ Programming Language
C++ Programming Language
 
PRE-CALCULUS (Lesson 1-Conic Sections and Circles).pptx
PRE-CALCULUS (Lesson 1-Conic Sections and Circles).pptxPRE-CALCULUS (Lesson 1-Conic Sections and Circles).pptx
PRE-CALCULUS (Lesson 1-Conic Sections and Circles).pptx
 
General Math Lesson 2
General Math Lesson 2General Math Lesson 2
General Math Lesson 2
 
Input Output Management In C Programming
Input Output Management In C ProgrammingInput Output Management In C Programming
Input Output Management In C Programming
 
pointers
pointerspointers
pointers
 
Abstract Reasoning Test Questions & Answers
Abstract Reasoning Test Questions & AnswersAbstract Reasoning Test Questions & Answers
Abstract Reasoning Test Questions & Answers
 
PERCENTILE RANK
PERCENTILE RANKPERCENTILE RANK
PERCENTILE RANK
 
Control structure
Control structureControl structure
Control structure
 

En vedette

Becoming a Total Leader through Authenticity, Integrity_Pdf Version
Becoming a Total Leader through Authenticity, Integrity_Pdf VersionBecoming a Total Leader through Authenticity, Integrity_Pdf Version
Becoming a Total Leader through Authenticity, Integrity_Pdf Version
Christopher Walker
 
Presentation rowena a. centeno
Presentation  rowena a. centenoPresentation  rowena a. centeno
Presentation rowena a. centeno
rowenaacenteno
 
Information system
Information systemInformation system
Information system
hiddensoul
 

En vedette (13)

Tipos de comida eviencia
Tipos de comida evienciaTipos de comida eviencia
Tipos de comida eviencia
 
Persuasive speech
Persuasive speechPersuasive speech
Persuasive speech
 
Le fame Propiedades
Le fame PropiedadesLe fame Propiedades
Le fame Propiedades
 
Becoming a Total Leader through Authenticity, Integrity_Pdf Version
Becoming a Total Leader through Authenticity, Integrity_Pdf VersionBecoming a Total Leader through Authenticity, Integrity_Pdf Version
Becoming a Total Leader through Authenticity, Integrity_Pdf Version
 
Mapa conceptual gerencia y ciclo de vida de proyectos
Mapa conceptual gerencia y ciclo de vida de proyectosMapa conceptual gerencia y ciclo de vida de proyectos
Mapa conceptual gerencia y ciclo de vida de proyectos
 
15 charlotte bh_andersen_hillerslev i thy
15 charlotte bh_andersen_hillerslev i thy15 charlotte bh_andersen_hillerslev i thy
15 charlotte bh_andersen_hillerslev i thy
 
Lesson plan2
Lesson plan2Lesson plan2
Lesson plan2
 
Computer programming:Know How to Flowchart
Computer  programming:Know How to FlowchartComputer  programming:Know How to Flowchart
Computer programming:Know How to Flowchart
 
Presentation rowena a. centeno
Presentation  rowena a. centenoPresentation  rowena a. centeno
Presentation rowena a. centeno
 
Building Information Model
Building Information ModelBuilding Information Model
Building Information Model
 
Flowchart pseudocode-examples
Flowchart pseudocode-examplesFlowchart pseudocode-examples
Flowchart pseudocode-examples
 
Information system
Information systemInformation system
Information system
 
Thesis in IT Online Grade Encoding and Inquiry System via SMS Technology
Thesis in IT Online Grade Encoding and Inquiry System via SMS TechnologyThesis in IT Online Grade Encoding and Inquiry System via SMS Technology
Thesis in IT Online Grade Encoding and Inquiry System via SMS Technology
 

Similaire à ICT Flowchart and Pseudo codes

presentation_python_11_1569171345_375360.pptx
presentation_python_11_1569171345_375360.pptxpresentation_python_11_1569171345_375360.pptx
presentation_python_11_1569171345_375360.pptx
GAURAVRATHORE86
 
Here is the grading matrix where the TA will leave feedback. If you .docx
Here is the grading matrix where the TA will leave feedback. If you .docxHere is the grading matrix where the TA will leave feedback. If you .docx
Here is the grading matrix where the TA will leave feedback. If you .docx
trappiteboni
 
Sample Program file class 11.pdf
Sample Program file class 11.pdfSample Program file class 11.pdf
Sample Program file class 11.pdf
YashMirge2
 
E1 – FundamentalsPlease refer to announcements for details about.docx
E1 – FundamentalsPlease refer to announcements for details about.docxE1 – FundamentalsPlease refer to announcements for details about.docx
E1 – FundamentalsPlease refer to announcements for details about.docx
jacksnathalie
 
#OOP_D_ITS - 3rd - Migration From C To C++
#OOP_D_ITS - 3rd - Migration From C To C++#OOP_D_ITS - 3rd - Migration From C To C++
#OOP_D_ITS - 3rd - Migration From C To C++
Hadziq Fabroyir
 
C++ Programming Club-Lecture 2
C++ Programming Club-Lecture 2C++ Programming Club-Lecture 2
C++ Programming Club-Lecture 2
Ammara Javed
 

Similaire à ICT Flowchart and Pseudo codes (20)

C Programming
C ProgrammingC Programming
C Programming
 
presentation_python_11_1569171345_375360.pptx
presentation_python_11_1569171345_375360.pptxpresentation_python_11_1569171345_375360.pptx
presentation_python_11_1569171345_375360.pptx
 
Flow chart and pseudo code
Flow chart and pseudo code Flow chart and pseudo code
Flow chart and pseudo code
 
Best C Programming Solution
Best C Programming SolutionBest C Programming Solution
Best C Programming Solution
 
Here is the grading matrix where the TA will leave feedback. If you .docx
Here is the grading matrix where the TA will leave feedback. If you .docxHere is the grading matrix where the TA will leave feedback. If you .docx
Here is the grading matrix where the TA will leave feedback. If you .docx
 
Sample Program file class 11.pdf
Sample Program file class 11.pdfSample Program file class 11.pdf
Sample Program file class 11.pdf
 
E1 – FundamentalsPlease refer to announcements for details about.docx
E1 – FundamentalsPlease refer to announcements for details about.docxE1 – FundamentalsPlease refer to announcements for details about.docx
E1 – FundamentalsPlease refer to announcements for details about.docx
 
Pa1 flow chart
Pa1 flow chartPa1 flow chart
Pa1 flow chart
 
#OOP_D_ITS - 3rd - Migration From C To C++
#OOP_D_ITS - 3rd - Migration From C To C++#OOP_D_ITS - 3rd - Migration From C To C++
#OOP_D_ITS - 3rd - Migration From C To C++
 
UNIT I - Algorithmic Problem Solving.pptx
UNIT I - Algorithmic Problem Solving.pptxUNIT I - Algorithmic Problem Solving.pptx
UNIT I - Algorithmic Problem Solving.pptx
 
C++ in 10 Hours.pdf.pdf
C++ in 10 Hours.pdf.pdfC++ in 10 Hours.pdf.pdf
C++ in 10 Hours.pdf.pdf
 
Computer studies form iv - practical - 2000 - 2 - answers
Computer studies    form iv - practical - 2000 - 2 - answersComputer studies    form iv - practical - 2000 - 2 - answers
Computer studies form iv - practical - 2000 - 2 - answers
 
C Programming
C ProgrammingC Programming
C Programming
 
operators.ppt
operators.pptoperators.ppt
operators.ppt
 
Python programs
Python programsPython programs
Python programs
 
C++ Programming Club-Lecture 2
C++ Programming Club-Lecture 2C++ Programming Club-Lecture 2
C++ Programming Club-Lecture 2
 
ALGORITHMS AND FLOWCHARTS
ALGORITHMS AND FLOWCHARTSALGORITHMS AND FLOWCHARTS
ALGORITHMS AND FLOWCHARTS
 
25422733 c-programming-and-data-structures-lab-manual
25422733 c-programming-and-data-structures-lab-manual25422733 c-programming-and-data-structures-lab-manual
25422733 c-programming-and-data-structures-lab-manual
 
02 Control Structures - Loops & Conditions
02 Control Structures - Loops & Conditions02 Control Structures - Loops & Conditions
02 Control Structures - Loops & Conditions
 
Chapter 1 Programming Fundamentals Assignment.docx
Chapter 1 Programming Fundamentals Assignment.docxChapter 1 Programming Fundamentals Assignment.docx
Chapter 1 Programming Fundamentals Assignment.docx
 

Plus de Happy Nezza Aranjuez

Plus de Happy Nezza Aranjuez (20)

Photoshop
PhotoshopPhotoshop
Photoshop
 
Photoshop
PhotoshopPhotoshop
Photoshop
 
Ucsp presentation
Ucsp presentationUcsp presentation
Ucsp presentation
 
UCSP: Social and Political Stratification
UCSP: Social and Political StratificationUCSP: Social and Political Stratification
UCSP: Social and Political Stratification
 
Exhibit 3 Earth Science: Effects of Human Activities to the Water Resources
Exhibit 3 Earth Science: Effects of Human Activities to the Water ResourcesExhibit 3 Earth Science: Effects of Human Activities to the Water Resources
Exhibit 3 Earth Science: Effects of Human Activities to the Water Resources
 
Convection Current
Convection CurrentConvection Current
Convection Current
 
Jupiter
JupiterJupiter
Jupiter
 
Pagbabago sa Wika sa kasalukyan
Pagbabago sa Wika sa kasalukyanPagbabago sa Wika sa kasalukyan
Pagbabago sa Wika sa kasalukyan
 
Calcium isotopes
Calcium isotopesCalcium isotopes
Calcium isotopes
 
Payong sa tuwing umuulan
Payong sa tuwing umuulanPayong sa tuwing umuulan
Payong sa tuwing umuulan
 
Photography and Image Image Manipulation Programs
Photography and Image Image Manipulation ProgramsPhotography and Image Image Manipulation Programs
Photography and Image Image Manipulation Programs
 
Visual basic menu
Visual basic menuVisual basic menu
Visual basic menu
 
By two project ict
By two project ictBy two project ict
By two project ict
 
Ict activities of Third Quarter
Ict activities of Third QuarterIct activities of Third Quarter
Ict activities of Third Quarter
 
The Hypothalamus and Pituitary Gland
The Hypothalamus and Pituitary GlandThe Hypothalamus and Pituitary Gland
The Hypothalamus and Pituitary Gland
 
The Hypothalamus and Pituitary Gland
The Hypothalamus and Pituitary GlandThe Hypothalamus and Pituitary Gland
The Hypothalamus and Pituitary Gland
 
Microphone Bearer
Microphone BearerMicrophone Bearer
Microphone Bearer
 
Reaksiyon para sa pagtatangha na "May Pag-asa"
Reaksiyon para sa pagtatangha na "May Pag-asa"Reaksiyon para sa pagtatangha na "May Pag-asa"
Reaksiyon para sa pagtatangha na "May Pag-asa"
 
Filipino sanaysay
Filipino sanaysayFilipino sanaysay
Filipino sanaysay
 
Ict paired project (2nd Quarter)
Ict paired project (2nd Quarter)Ict paired project (2nd Quarter)
Ict paired project (2nd Quarter)
 

Dernier

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 

Dernier (20)

Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 

ICT Flowchart and Pseudo codes

  • 1. ICT ASSIGNMENT Flow Charts and Pseudo Codes with Python Happy Nezza B. Aranjuez 9 – Becquerel 1. A flowershop sells roses for Php 25 each and tulips for Php 40 each. Prepare a flowchart, pseudocode, and python codethat determines how much Irene will spend if she will buy R number of rose and T number of tulips. FLOWCHART: START Input T Input R
  • 2. PSEUDOCODE: TT = T x PR RR = R x PT Total = TT + RR output irene will spend, Total pesos PYTHON CODE: 2. Print your average grade if it is greater than 85. FLOWCHART: PT x T PR x T (PT x T) + (PR x T) Irene will spend total pesosEND START Input grade If grade > 85
  • 3. PSEUDOCODE: grade = input what is your grade if grade > 85 then output you passed your grade is, grade else output that’s alright PYTHON CODE: 3. Accept and print positive numbers only. FLOWCHART: Input gradeInput grade Output you passed your grade is, grade END Output that’s alright TRUE FALSE START Input number If number is positive A
  • 4. PSEUDOCODE: number = input "Input a number:" while True: if number > 0: output the number of your choice is, number break else: output invalid number number = input “Input a number” PYTHON CODE: 4. Input 3 numbers a, b, and c, a. If a is equal to b, print c b. If a is greater than b, then print their difference c. If b is less than c, then print their sum, otherwise print their average FLOWCHART: Output invalid number Output number TRUE FALSE END A START Input a If a = b FALSE Input c Input c If a > b If b < c FALSE
  • 5. PSEUDOCODE: a = input"Input a number:" b = input"Input a number:" c = input "Inputa number:" while True: if a == b: outputc if b < c: output b+c break else: output (b+c)/2 break elif a > b: outputa-b PYTHON CODE: 5. Print passed if the user specified grade is at least 75, if otherwise print failed. FLOWCHART: Output cOutput average TRUE END A A Average = (b+c)/2 FALSE Sum = b + c Dif = a - b TRUETRUE Output sum Output dif A START Input grade If grade >= 75 TRUE FALSE
  • 6. PSEUDOCODE: grade = input "What is your grade?" if grade >= 75: output passed else: output failed PYTHON CODE: 6. Convert the user’s weight from pounds to kilograms if the inputted value is positive. Otherwise, print invalid data. (1kg = 2.2 lbs) FLOWCHART: Output FailedOutput Passed END START Input weight If number is positive TRUE FALSE
  • 7. PSEUDOCODE: weight = input "How many pounds do you weigh?" if weight > 0: convert = weight/2.2 output convert else: output invalid data PYTHON CODE: 7. Compute for the equivalent percentage grade of the given score using the format score/100*60+40. Print a corresponding remark based on the following guidelines:  90-100 excellent  85-89 very good  80-84 good  75-79 fair  74 below – needs improvement FLOWCHART: Output invalid number Output convert Convert = Weight/2.2 END
  • 8. PSEUDOCODE: PYTHON CODE: score = input"Whatis your score?" grade =score/100*60+40 if 100>=grade>= 90: output excellent elif 89>=grade>= 85: outputvery good elif 84>=grade>= 80: outputgood elif 79>=grade>= 75: outputfair else: outputneeds improvement