-
Write a program that prints the first 100 members of the sequence 2 , -3 , 4 , -5 , 6
-
Write a program that generates this sequence 0 , 5 , 10 , 15 , 20 , 25, ..., 80
-
Write a program that grades a student using this grading system :
Score Grade
80 – 100 A
60 – 79 B
50 – 59 C
35 – 49 D
0 – 34 F
- Create variables to store the following information about a user with the following detail : Gender : f
Age : 35
country of origin : Burundi
Covid Patient : No
Networth : 250,000
/*
*Description: Assignment to lesson 1 - 6.
*
*Author: Tajussirri Abdurrahman
*/
/* A program that prints the first 100
*/
for(let t = 2; t <= 100; t++) {
if(t%2 === 0){
console.log(t)
}else
console.log(-(t))
}
console.log("");
/* A program that generates this sequence 0,
*/
let z = 0
while(z <= 80){
console.log(z)
z += 5;
}
/*Write a program that grades a student
*/
let score = (prompt("Please Enter Score"));
if(score >= 80){
console.log("A")
}
else if(score >= 60){
console.log("B")
}
else if(score >= 50){
console.log("C")
}
else if(score >= 35){
console.log("D")
}
else if(score <= 34){
console.log("F")
}
/* Create variables to store the following
*/
let Gender = "F"
let Age = 35;
let Country_of_Origin = "Burundi";
let Covid_Patient = "No";
let Networth = 250000;